Source: nulib2
Version: 3.1.0-2
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
nulib2 could not be built reproducibly.
This is because it embedded the build flags into the generated binary
which then included the absolute build path via the -ffile-prefix-map
GCC argument.
Patch attached that overwrites this from debian/rules via the
DEB_CPPFLAGS_MAINT_APPEND mechanism and sets it to an empty string but
it may be nicer to replace this with something like "Debian" or
something.
[0] https://reproducible-builds.org/
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` [email protected] / chris-lamb.co.uk
`- --- a/debian/rules 2020-05-19 10:51:28.911713243 +0100
--- b/debian/rules 2020-05-19 11:04:56.013555748 +0100
@@ -1,6 +1,7 @@
#!/usr/bin/make -f
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+export DEB_CPPFLAGS_MAINT_APPEND = -DOPTFLAGSTR=\"\"
%:
dh $@