Description: Enforce usage of gethostname
 All architectures and kernels on which Debian builds support that.
 .
 Otherwise the buildsystem hostname is determined at build time and
 then hardcoded in the built binary.
 .
 To be sure that even if the latter still happens unexpectedly,
 statically hardcode all those places with "debian" as hostname.
Author: Axel Beckert <abe@debian.org>

Index: filter/Configure
===================================================================
--- filter.orig/Configure	2016-02-20 23:31:40.162633888 +0100
+++ filter/Configure	2016-02-20 23:31:40.158633900 +0100
@@ -156,7 +156,7 @@
 includepath=''
 d_useembed=''
 d_utimbuf=''
-hostname=''
+hostname='debian'
 phostname=''
 mydomain=''
 autohostname=''
Index: filter/filter.c
===================================================================
--- filter.orig/filter.c	2016-02-20 23:31:40.162633888 +0100
+++ filter/filter.c	2016-02-20 23:31:40.158633900 +0100
@@ -197,11 +197,7 @@
 	outfname[0] = filterfile[0] = '\0';
 	
 	
-#ifdef HOSTCOMPILED
-	stringcopy(hostname, HOSTNAME, sizeof(hostname));
-#else
 	gethostname(hostname, sizeof(hostname));
-#endif
 	
 	/* now parse the starting arguments... */
 
Index: filter/config.h
===================================================================
--- filter.orig/config.h	2016-02-20 23:31:40.162633888 +0100
+++ filter/config.h	2016-02-20 23:31:40.158633900 +0100
@@ -257,7 +257,7 @@
  *	the program.  If the host name is derived from PHOSTNAME, the domain
  *	may or may not already be there, and the program should check.
  */
-#define HOSTNAME "vore"		 
+#define HOSTNAME "debian"		 
 #define MYDOMAIN ""		 
 
 /* I_MEMORY:
Index: filter/config.h.SH
===================================================================
--- filter.orig/config.h.SH	2016-02-20 23:31:40.162633888 +0100
+++ filter/config.h.SH	2016-02-20 23:31:40.158633900 +0100
@@ -271,7 +271,7 @@
  *	the program.  If the host name is derived from PHOSTNAME, the domain
  *	may or may not already be there, and the program should check.
  */
-#define HOSTNAME "$hostname"		 
+#define HOSTNAME "debian"		 
 #define MYDOMAIN "$mydomain"		 
 
 /* I_MEMORY:
Index: filter/config.sh
===================================================================
--- filter.orig/config.sh	2016-02-20 23:31:40.086634118 +0100
+++ filter/config.sh	2016-02-20 23:32:27.154491779 +0100
@@ -153,7 +153,7 @@
 d_strstr=''
 d_useembed='define'
 d_utimbuf='define'
-hostname='speedy'
+hostname='debian'
 phostname='hostname'
 mydomain=''
 autohostname='define'
