I have uploaded an NMU fixing this issue:

diff -Nru tcpreen-1.4.4/debian/changelog tcpreen-1.4.4/debian/changelog
--- tcpreen-1.4.4/debian/changelog      2012-01-11 10:06:17.000000000 -0800
+++ tcpreen-1.4.4/debian/changelog      2022-11-10 13:00:17.000000000 -0800
@@ -1,3 +1,13 @@
+tcpreen (1.4.4-2.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+
+  [ Chris Lamb ]
+  * reproducible builds: Use lsb_release short description instead of
+    hostname (Closes: #831585)
+
+ -- Vagrant Cascadian <vagr...@debian.org>  Thu, 10 Nov 2022 13:00:17 -0800
+
 tcpreen (1.4.4-2) unstable; urgency=low
 
   * Enable hardened build flags. Closes: #655250.
diff -Nru tcpreen-1.4.4/debian/control tcpreen-1.4.4/debian/control
--- tcpreen-1.4.4/debian/control        2012-01-11 18:22:36.000000000 -0800
+++ tcpreen-1.4.4/debian/control        2022-11-10 13:00:17.000000000 -0800
@@ -6,7 +6,9 @@
 Build-Depends: 
  debhelper (>= 9), 
  gettext, 
- autotools-dev
+ autotools-dev,
+ lsb-release,
+ dh-autoreconf
 Standards-Version: 3.9.2
 Homepage: http://www.remlab.net/tcpreen/
 
diff -Nru tcpreen-1.4.4/debian/patches/reproducible_build.patch 
tcpreen-1.4.4/debian/patches/reproducible_build.patch
--- tcpreen-1.4.4/debian/patches/reproducible_build.patch       1969-12-31 
16:00:00.000000000 -0800
+++ tcpreen-1.4.4/debian/patches/reproducible_build.patch       2022-11-10 
13:00:17.000000000 -0800
@@ -0,0 +1,14 @@
+Author: Chris Lamb <la...@debian.org>
+Last-Update: 2016-07-17
+
+--- tcpreen-1.4.4.orig/m4/hostname.m4
++++ tcpreen-1.4.4/m4/hostname.m4
+@@ -5,7 +5,7 @@ dnl From Remi Denis-Courmont
+ AC_DEFUN([RDC_BUILD_HOSTNAME],
+ [AC_CACHE_CHECK([for build hostname],
+ rdc_cv_build_hostname,
+-[rdc_cv_build_hostname=`hostname -f 2>/dev/null || uname -n 2>/dev/null || 
hostname 2>/dev/null || echo "unknown"`
++[rdc_cv_build_hostname=`lsb_release --short --description`
+ ])
+ AC_DEFINE_UNQUOTED(PACKAGE_BUILD_HOSTNAME, "$rdc_cv_build_hostname",
+               [Define to the hostname of the host who builds the package.])
diff -Nru tcpreen-1.4.4/debian/patches/series 
tcpreen-1.4.4/debian/patches/series
--- tcpreen-1.4.4/debian/patches/series 1969-12-31 16:00:00.000000000 -0800
+++ tcpreen-1.4.4/debian/patches/series 2022-11-10 13:00:17.000000000 -0800
@@ -0,0 +1 @@
+reproducible_build.patch
diff -Nru tcpreen-1.4.4/debian/rules tcpreen-1.4.4/debian/rules
--- tcpreen-1.4.4/debian/rules  2010-08-27 06:49:10.000000000 -0700
+++ tcpreen-1.4.4/debian/rules  2022-11-10 13:00:17.000000000 -0800
@@ -1,3 +1,3 @@
 #!/usr/bin/make -f
 %:
-       dh $@
+       dh $@ --with autoreconf

Attachment: signature.asc
Description: PGP signature



Reply via email to