Source: sa-exim
Version: 4.2.1-14
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 sa-exim 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.patch   1970-01-01 02:00:00.000000000 
+0200
--- b/debian/patches/reproducible-build.patch   2016-07-18 09:29:56.652195186 
+0200
@@ -0,0 +1,17 @@
+Author: Chris Lamb <la...@debian.org>
+Last-Update: 2016-07-18
+
+--- sa-exim-4.2.1.orig/Makefile
++++ sa-exim-4.2.1/Makefile
+@@ -63,7 +63,11 @@ sa-exim_short.conf: sa-exim.conf
+       @cat sa-exim.conf | grep -v "^#" | tr '\012' 'ÿ' | sed "s/ÿÿÿ*/ÿÿ/g" | 
tr 'ÿ' '\012' >> sa-exim_short.conf
+ 
+ sa-exim.h: sa-exim.c version
++ifdef SOURCE_DATE_EPOCH
++      echo "char *version=\"`cat version` (built `LC_ALL=C date --utc -R 
--date=@$${SOURCE_DATE_EPOCH}`)\";" > sa-exim.h
++else
+       echo "char *version=\"`cat version` (built `date -R 2>/dev/null || 
date`)\";" > sa-exim.h
++endif
+ 
+ clean:        
+       @-rm -rf $(OBJECTS) $(DOCS) $(OTHERTARGETS) build-stamp configure-stamp 
debian/sa-exim debian/sa-exim.postrm.debhelper debian/sa-exim.substvars 
debian/files 2>/dev/null
--- a/debian/patches/series     2016-07-18 09:23:26.697983064 +0200
--- b/debian/patches/series     2016-07-18 09:29:46.560038268 +0200
@@ -6,3 +6,4 @@
 improved-default-conf.patch
 spamd-not-nobody.patch
 readme.patch
+reproducible-build.patch
_______________________________________________
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