[Reproducible-builds] Bug#831630: idjc: please make the build reproducible
Chris Lamb
lamby at debian.org
Sun Jul 17 21:35:21 UTC 2016
Source: idjc
Version: 0.8.16-1
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 idjc 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-17 23:34:10.504082438 +0200
@@ -0,0 +1,18 @@
+Author: Chris Lamb <lamby at debian.org>
+Last-Update: 2016-07-17
+
+--- idjc-0.8.16.orig/Makefile.am
++++ idjc-0.8.16/Makefile.am
+@@ -43,7 +43,11 @@ if GIT_VERSION_CONTROL
+ else
+ rm buildinfo
+ endif
+- echo Build date: $$(date -R) >> buildinfo
++ if test -n "$$SOURCE_DATE_EPOCH"; then \
++ echo Build date: $$(date --utc --date="@$${SOURCE_DATE_EPOCH}" -R) >> buildinfo; \
++ else \
++ echo Build date: $$(date -R) >> buildinfo; \
++ fi
+
+ clean-local:
+ rm -f buildinfo ChangeLog.gz README.gz NEWS.gz AUTHORS.gz ${PACKAGE_NAME}.desktop ${PACKAGE_NAME}.appdata.xml ${PACKAGE_NAME}
--- a/debian/patches/series 2016-07-17 23:17:28.222233879 +0200
--- b/debian/patches/series 2016-07-17 23:31:29.038910996 +0200
@@ -1,2 +1,3 @@
desktop.patch
man.patch
+reproducible-build.patch
More information about the Reproducible-builds
mailing list