[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#795441: aprx: please make the build reproducible



Source: aprx
Version: 2.08.svn593-1
Severity: wishlist
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-builds@lists.alioth.debian.org

Hi,

While working on the "reproducible builds" effort [1], we have noticed
that aprx could not be built reproducibly.

The attached patch removes timezone-varying timestamps from the
generated
manpages Once applied, aprx can be built reproducibly in our
reproducible
toolchain.


 [1]: https://wiki.debian.org/ReproducibleBuilds


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby@debian.org / chris-lamb.co.uk
       `-
diff --no-dereference -urNad aprx.orig/aprx-2.08.svn593/debian/patches/02-reproducible-build.patch aprx/aprx-2.08.svn593/debian/patches/02-reproducible-build.patch
--- aprx.orig/aprx-2.08.svn593/debian/patches/02-reproducible-build.patch	1970-01-01 01:00:00.000000000 +0100
+++ aprx/aprx-2.08.svn593/debian/patches/02-reproducible-build.patch	2015-08-14 01:54:06.223288942 +0200
@@ -0,0 +1,13 @@
+--- aprx-2.08.svn593.orig/Makefile.in
++++ aprx-2.08.svn593/Makefile.in
+@@ -56,8 +56,8 @@ versionupdate := $(shell if [ "$(PKG_REV
+ # SVNVERSION_CMD:=$(shell which svnversion)
+ # SVNVERSION:=$(shell if ${SVNVERSION_CMD} > /dev/null 2>&1  \&\& test -x ${SVNVERSION_CMD} -a \( -d .svn -o -d ../.svn -o -d ../../.svn \)  ; then ${SVNVERSION_CMD} | tee SVNVERSION ; else cat SVNVERSION; fi)
+ 
+-DATE:=$(shell date +"%Y %B %d")
+-RFCDATE:=$(shell date +"%a, %d %b %Y %H:%M:%S %z")
++DATE:=$(shell LC_ALL=C date --utc --date="@$(SOURCE_DATE_EPOCH)" +"%Y %B %d")
++RFCDATE:=$(shell LC_ALL=C date --utc --date="@$(SOURCE_DATE_EPOCH)" +"%a, %d %b %Y %H:%M:%S %z")
+ 
+ DEFS=	-DAPRXVERSION="\"@VERSION_STRING@r$(SVNVERSION)\"" \
+ 	-DVARRUN="\"$(VARRUN)\"" -DVARLOG="\"$(VARLOG)\"" \
diff --no-dereference -urNad aprx.orig/aprx-2.08.svn593/debian/patches/series aprx/aprx-2.08.svn593/debian/patches/series
--- aprx.orig/aprx-2.08.svn593/debian/patches/series	2015-08-14 01:44:15.367158322 +0200
+++ aprx/aprx-2.08.svn593/debian/patches/series	2015-08-14 01:54:02.323257600 +0200
@@ -1 +1,2 @@
 01-man-page.patch
+02-reproducible-build.patch

Reply to: