[Reproducible-builds] Bug#834016: ddd: please make the build reproducible
Chris Lamb
lamby at debian.org
Thu Aug 11 13:04:46 UTC 2016
Source: ddd
Version: 1:3.3.12-5.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 ddd 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/007_reproducible_build.diff 1970-01-01 01:00:00.000000000 +0100
--- b/debian/patches/007_reproducible_build.diff 2016-08-11 13:57:26.400420657 +0100
@@ -0,0 +1,17 @@
+Description: Make the build reproducible
+Author: Chris Lamb <lamby at debian.org>
+Last-Update: 2016-08-11
+
+--- ddd-3.3.12.orig/ddd/config-info
++++ ddd-3.3.12/ddd/config-info
+@@ -59,6 +59,10 @@ esac
+ month=`date '+%m'`
+ day=`date '+%d'`
+ date=${year}-${month}-${day}
++if [ -n "${SOURCE_DATE_EPOCH}" ]
++then
++ date=`date --utc --date="@${SOURCE_DATE_EPOCH}" '+%Y-%m-%d'`
++fi
+ (
+ echo "@(#)Built $date by $userinfo"
+ if $features; then
--- a/debian/patches/series 2016-08-11 13:37:26.914722545 +0100
--- b/debian/patches/series 2016-08-11 13:57:24.500396161 +0100
@@ -7,3 +7,4 @@
machine_code_window_fix.diff
tinfo_support.diff
remove_broken_ICE_MOTIF_DIALOGS_OWN_SELECTION_LIST.diff
+007_reproducible_build.diff
More information about the Reproducible-builds
mailing list