Source: papi
Version: 5.6.0+git99-gd5a1a9ae2-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 papi could not be built reproducibly.
This is because it encodes the build path when "helpfully" writing
the build CFLAGS to the example Makefiles:
-CFLAGS = -g -O2
-ffile-prefix-map=/build/1st/papi-5.6.0+git99-gd5a1a9ae2=.
+CFLAGS = -g -O2
-ffile-prefix-map=/build/papi-5.6.0+git99-gd5a1a9ae2/2nd=.
Patch attached.
[0] https://reproducible-builds.org/
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` [email protected] / chris-lamb.co.uk
`-
--- a/debian/rules 2019-01-27 08:45:27.555424719 +0100
--- b/debian/rules 2019-01-27 09:57:22.306656581 +0100
@@ -42,6 +42,8 @@
# delete example binaries
find debian/tmp/usr/share/papi -perm -100 -type f -delete
find debian/tmp/usr/share/papi -name \*.a -type f -delete
+ find debian/tmp/usr/share/papi -name Makefile -type f -print0 | \
+ xargs -0r sed -i -e 's@ [^ ]*-f\(file\|debug\)-prefix-map=[^
]*@@g'
override_dh_makeshlibs:
dh_makeshlibs -a -- -c4