Source: unifrac-tools
Version: 1.2-1
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: buildpath
X-Debbugs-Cc: [email protected]
Hi,
Whilst working on the Reproducible Builds effort [0] we noticed that
unifrac-tools could not be built reproducibly.
This is because upstream's Makefile does not use the contents of
CFLAGS from dpkg-buildflags so it misses the reproducibility-related
compiler flags (and likely others).
Proof of concept patch attached.
[0] https://reproducible-builds.org/
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` [email protected] / chris-lamb.co.uk
`-
--- a/debian/rules 2023-01-06 10:46:40.635033129 +0000
--- b/debian/rules 2023-01-06 10:55:34.858553266 +0000
@@ -4,7 +4,8 @@
export DEB_BUILD_MAINT_OPTIONS=hardening=+all
export PYBUILD_NAME=unifrac
-export DEB_BUILD_MAINT_OPTIONS=hardening=+all
+export CPPFLAGS := $(CFLAGS) $(CPPFLAGS)
+
%:
dh $@ --no-parallel