Source: tcpreen
Version: 1.4.4-2
Severity: wishlist
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-builds@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
     `. `'`      la...@debian.org / chris-lamb.co.uk
       `-
--- 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 <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.])
--- 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
_______________________________________________
Reproducible-builds mailing list
Reproducible-builds@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds

Reply via email to