Bug#854111: aprx: please make the build reproducible

Chris Lamb lamby at debian.org
Sat Feb 4 08:37:52 UTC 2017


Source: aprx
Version: 2.9.0+dfsg-1
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org

Hi,

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

Patch attached.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
--- a/debian/patches/02-reproducible-builds.patch	1970-01-01 12:00:00.000000000 +1200
--- b/debian/patches/02-reproducible-builds.patch	2017-02-04 21:34:53.343659563 +1300
@@ -0,0 +1,24 @@
+Description: Make the build reproducible
+Author: Chris Lamb <lamby at debian.org>
+Last-Update: 2017-02-04
+
+--- aprx-2.9.0+dfsg.orig/Makefile.in
++++ aprx-2.9.0+dfsg/Makefile.in
+@@ -50,8 +50,15 @@ MANDIR:=$(strip $(MANDIR))
+ 
+ VERSION	= $(shell echo @VERSION_STRING@ | cut -b 2-)
+ 
+-DATE:=$(shell date +"%Y %B %d")
+-RFCDATE:=$(shell date +"%a, %d %b %Y %H:%M:%S %z")
++DATE_FMT=	"%Y %B %d"
++RFCDATE_FMT=	"%a, %d %b %Y %H:%M:%S %z"
++ifdef SOURCE_DATE_EPOCH
++DATE=		$(shell LC_ALL=C date -u -d "@$(SOURCE_DATE_EPOCH)" "+$(DATE_FMT)" 2>/dev/null || LC_ALL=C date -u -r "$(SOURCE_DATE_EPOCH)" "+$(DATE_FMT)" 2>/dev/null || LC_ALL=C date -u "+$(DATE_FMT)")
++RFCDATE=	$(shell LC_ALL=C date -u -d "@$(SOURCE_DATE_EPOCH)" "+$(RFCDATE_FMT)" 2>/dev/null || date LC_ALL=C -u -r "$(SOURCE_DATE_EPOCH)" "+$(RFCDATE_FMT)" 2>/dev/null || LC_ALL=C date -u "+$(RFCDATE_FMT)")
++else
++DATE=		$(shell date "+$(DATE_FMT)")
++RFCDATE=	$(shell date "+$(RFCDATE_FMT)")
++endif
+ 
+ DEFS=	-DAPRXVERSION="\"$(VERSION)\"" \
+ 	-DVARRUN="\"$(VARRUN)\"" -DVARLOG="\"$(VARLOG)\"" \
--- a/debian/patches/series	2017-02-04 20:52:52.229969976 +1300
--- b/debian/patches/series	2017-02-04 21:28:58.273291825 +1300
@@ -1 +1,2 @@
 01-man-page.patch
+02-reproducible-builds.patch


More information about the Reproducible-bugs mailing list