Source: ifmail
Version: 2.14tx8.10-22
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 ifmail 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/reproducible_build 1970-01-01 02:00:00.000000000 +0200
--- b/debian/patches/reproducible_build 2016-07-17 23:27:04.165183303 +0200
@@ -0,0 +1,31 @@
+Author: Chris Lamb <la...@debian.org>
+Last-Update: 2016-07-17
+
+--- ifmail-2.14tx8.10.orig/ifcico/Makefile
++++ ifmail-2.14tx8.10/ifcico/Makefile
+@@ -168,7 +168,11 @@ config:
+ version.c:    ${SRCS} ${HDRS} flaglex.l flagexp.y lastmtime ../CONFIG
+       echo 'char *version=${VERSION};' >version.c
+       echo 'char *copyright=${COPYRIGHT};' >>version.c
++ifdef SOURCE_DATE_EPOCH
++      echo "char *reldate=\"$(shell LC_ALL=C date --utc 
--date="@$(SOURCE_DATE_EPOCH)" +%c)\";" >>version.c
++else
+       echo "char *reldate=\"`./lastmtime ${SRCS} ${HDRS} flaglex.l 
flagexp.y`\";" >>version.c
++endif
+ 
+ depend:       version.c
+       @mv -f Makefile Makefile.bak; \
+--- ifmail-2.14tx8.10.orig/ifgate/Makefile
++++ ifmail-2.14tx8.10/ifgate/Makefile
+@@ -126,7 +126,11 @@ config:
+ version.c:    ${SRCS} ${HDRS} lastmtime ../CONFIG
+       echo 'char *version=${VERSION};' >version.c
+       echo 'char *copyright=${COPYRIGHT};' >>version.c
++ifdef SOURCE_DATE_EPOCH
++      echo "char *reldate=\"$(shell LC_ALL=C date --utc 
--date="@$(SOURCE_DATE_EPOCH)" +%c)\";" >>version.c
++else
+       echo "char *reldate=\"`./lastmtime ${SRCS} ${HDRS}`\";" >>version.c
++endif
+ 
+ depend:       version.c
+       @rm -f Makefile.bak; \
--- a/debian/patches/series     2016-07-17 23:17:37.194427110 +0200
--- b/debian/patches/series     2016-07-17 23:26:53.397118350 +0200
@@ -35,3 +35,4 @@
 fix_format_err
 fix_bsyname
 md_scripts
+reproducible_build
_______________________________________________
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