Source: nmh
Version: 1.6-11
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 nmh 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/patches/11-repro   2016-07-15 22:35:09.137520083 +0200
--- b/debian/patches/11-repro   2016-07-15 22:40:32.859756578 +0200
@@ -7,3 +7,14 @@
 -echo "char *version_str = \"nmh-$VERSION [compiled on $HOSTNAME at `date`]\";"
 +echo "char *version_str = \"nmh-$VERSION\";"
  echo "char *version_num = \"nmh-$VERSION\";"
+--- nmh-1.6.orig/man/mh-chart-gen.sh
++++ nmh-1.6/man/mh-chart-gen.sh
+@@ -9,7 +9,7 @@ nmhmandir=`dirname $0`
+ # from the local build environment when building distribution packages.
+ LC_TIME=C; export LC_TIME
+ unset LANG
+-datestamp=`date '+%B %d, %Y'`
++datestamp="$(date --utc --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" '+%B %d, 
%Y')"
+ 
+ cat <<__HOOPY_FROOD
+ .TH MH-CHART %manext7% "${datestamp}" "%nmhversion%"
_______________________________________________
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