Source: nmh
Version: 1.7.1-6
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: hostname
X-Debbugs-Cc: [email protected]

Hi,

Whilst working on the Reproducible Builds effort [0] we noticed that
nmh could not be built reproducibly.

Patch attached that also normalises the hostname. I note that you have
included my previous patches in "11-repro", but I provide this as a separate
patch file to this bug report so it's more obvious what the proposed
change is.

If you have not already considered doing so, we would appreciate it if
you could forward all of these changes upstream.

 [0] https://reproducible-builds.org/


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      [email protected] / chris-lamb.co.uk
       `-
--- a/debian/patches/16-repro2  1970-01-01 01:00:00.000000000 +0100
--- b/debian/patches/16-repro2  2020-08-04 10:44:00.537110331 +0100
@@ -0,0 +1,16 @@
+Description: Make the build reproducible
+Author: Chris Lamb <[email protected]>
+Last-Update: 2020-08-04
+
+--- nmh-1.7.1.orig/config/version.sh
++++ nmh-1.7.1/config/version.sh
+@@ -7,6 +7,9 @@ set -e
+ 
+ version=${1?}
+ host=`uname -n`
++if [ "${SOURCE_DATE_EPOCH}" != "" ]; then
++    host="`dpkg-vendor --query Vendor`"
++fi
+ if test -d "$srcdir/.git"; then
+     git=" `git -C $srcdir describe --long --dirty`"
+ else
--- a/debian/patches/series     2020-08-04 10:36:03.340060054 +0100
--- b/debian/patches/series     2020-08-04 10:43:59.689109178 +0100
@@ -10,3 +10,4 @@
 13-oauth
 14-legacycreds
 15-bcc-pipe
+16-repro2

Reply via email to