Bug#901763: chemeq: please make the build reproducible
Chris Lamb
lamby at debian.org
Mon Jun 18 07:54:09 BST 2018
Source: chemeq
Version: 2.13-1
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: buildpath
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org
Hi,
Whilst working on the Reproducible Builds effort [0], we noticed
that chemeq could not be built reproducibly.
This is because it embeds the version number in the final binary /but/
this version number is calculated from the build directory (ie.
"prefix-ver"). We do not guarantee this in Debian.
Patch attached.
[0] https://reproducible-builds.org/
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` lamby at debian.org / chris-lamb.co.uk
`-
-------------- next part --------------
diff --git a/debian/rules b/debian/rules
index 955dd78..73e1993 100755
--- a/debian/rules
+++ b/debian/rules
@@ -9,5 +9,12 @@
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
+include /usr/share/dpkg/pkg-info.mk
+
%:
dh $@
+
+override_dh_auto_configure:
+ dh_auto_configure
+ $(MAKE) src/chemeq.h
+ sed -i -e 's/VERSION.*/VERSION "'$(DEB_VERSION_UPSTREAM)'"/' src/chemeq.h
More information about the Reproducible-bugs
mailing list