[Reproducible-builds] Bug#831585: tcpreen: please make the build reproducible

Chris Lamb lamby at debian.org
Sun Jul 17 13:56:24 UTC 2016


Source: tcpreen
Version: 1.4.4-2
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-builds at lists.alioth.debian.org

Hi,

Whilst working on the "reproducible builds" effort [0], we noticed
that tcpreen could not be built reproducibly.

Patch attached.

 [0] https://wiki.debian.org/ReproducibleBuilds


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
--- a/debian/control	2016-07-17 15:33:42.230317809 +0200
--- b/debian/control	2016-07-17 15:42:56.008740595 +0200
@@ -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/
 
--- a/debian/patches/reproducible_build.patch	1970-01-01 02:00:00.000000000 +0200
--- b/debian/patches/reproducible_build.patch	2016-07-17 15:39:09.782131181 +0200
@@ -0,0 +1,14 @@
+Author: Chris Lamb <lamby at 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.])
--- a/debian/patches/series	1970-01-01 02:00:00.000000000 +0200
--- b/debian/patches/series	2016-07-17 15:39:01.842039245 +0200
@@ -0,0 +1 @@
+reproducible_build.patch
--- a/debian/rules	2016-07-17 15:33:42.230317809 +0200
--- b/debian/rules	2016-07-17 15:47:01.055608566 +0200
@@ -1,3 +1,3 @@
 #!/usr/bin/make -f
 %:
-	dh $@
+	dh $@ --with autoreconf


More information about the Reproducible-builds mailing list