Source: chemeq
Version: 2.13-1
Severity: wishlist
Tags: patch
User: reproducible-bui...@lists.alioth.debian.org
Usertags: buildpath
X-Debbugs-Cc: reproducible-b...@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
     `. `'`      la...@debian.org / chris-lamb.co.uk
       `-
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

Reply via email to