Bug#1069709: dpb: please make the build reproducible
Chris Lamb
lamby at debian.org
Tue Apr 23 10:12:50 BST 2024
Source: dpb
Version: 0.0~git20240401+4c3057874
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
dpb could not be built reproducibly.
This is because it embedded timestamps in .pdf files and in "generated
on.." comments in various scripts. (Ideally the latter could be
removed entirely.)
Patch attached.
[0] https://reproducible-builds.org/
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` lamby at debian.org / chris-lamb.co.uk
`-
-------------- next part --------------
--- a/create-buildscript.sh 2024-04-23 09:54:18.460456472 +0100
--- b/create-buildscript.sh 2024-04-23 10:03:12.374039772 +0100
@@ -11,7 +11,7 @@
"
cat Title.nw Part1.nw Part2.nw Part3.nw Part4.nw Part5.nw Part6.nw > BuildWithGBPg.nw
-t=`date +%c`
+t=$(date --utc --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" -R)
function build_script()
{
--- a/debian/rules 2024-04-23 09:54:18.460456472 +0100
--- b/debian/rules 2024-04-23 09:59:42.766516568 +0100
@@ -5,6 +5,7 @@
export DH_VERBOSE=1
export DH_OPTIONS=-v
+export FORCE_SOURCE_DATE=1
%:
dh $@
More information about the Reproducible-bugs
mailing list