[Reproducible-builds] Bug#831649: sa-exim: please make the build reproducible

Chris Lamb lamby at debian.org
Mon Jul 18 07:37:16 UTC 2016


Source: sa-exim
Version: 4.2.1-14
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-builds at 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
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
--- 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 <lamby at 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


More information about the Reproducible-builds mailing list