[Reproducible-builds] Bug#833818: dnssec-trigger: please make the build reproducible
Chris Lamb
lamby at debian.org
Mon Aug 8 22:35:16 UTC 2016
Source: dnssec-trigger
Version: 0.13~svn685-5
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 dnssec-trigger 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 01:00:00.000000000 +0100
--- b/debian/patches/reproducible-build.patch 2016-08-08 23:33:50.479553264 +0100
@@ -0,0 +1,23 @@
+Description: Make the build reproducible
+Author: Chris Lamb <lamby at debian.org>
+Last-Update: 2016-08-08
+
+--- dnssec-trigger-0.13~svn685.orig/Makefile.in
++++ dnssec-trigger-0.13~svn685/Makefile.in
+@@ -54,7 +54,7 @@ pidfile=@pidfile@
+ login_command=@login_command@
+ login_location=@login_location@
+ unbound_control_path=@unbound_control_path@
+-DATE=$(shell date +%F -r $(srcdir)/Changelog)
++DATE=$(shell date -u +%F -r $(srcdir)/Changelog)
+
+ do_subst = sed -e 's,[@]SHELL[@],$(SHELL),g' \
+ -e 's,[@]PACKAGE[@],$(PACKAGE),g' \
+@@ -96,7 +96,6 @@ LIBOBJS=@LIBOBJS@
+ RUNTIME_PATH=@RUNTIME_PATH@
+ DEPFLAG=@DEPFLAG@
+ EXPORT_DYNAMIC=@EXPORT_DYNAMIC@
+-DATE=$(shell date +%Y%m%d)
+ BUILD=build/
+
+ WINDRES=@WINDRES@
--- a/debian/patches/series 2016-08-08 23:09:05.211264776 +0100
--- b/debian/patches/series 2016-08-08 23:22:49.654088164 +0100
@@ -4,3 +4,4 @@
strip-version-number-from-config.patch
fix-desktop-file-dirs.patch
dnssec-trigger-nm-1.1.90.patch
+reproducible-build.patch
--- a/debian/rules 2016-08-08 23:09:05.211264776 +0100
--- b/debian/rules 2016-08-08 23:34:02.875655750 +0100
@@ -9,6 +9,8 @@
export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic -g -pipe $(if $(findstring noopt,$(DEB_BUILD_OPTIONS)),-O0,-O2)
export DEB_LDFLAGS_MAINT_APPEND = -Wl,-z,defs -Wl,--as-needed
+export SHELL = /bin/sh
+
%:
dh $@ --with autoreconf,systemd,python2
More information about the Reproducible-builds
mailing list