Source: sword
Version: 1.7.4+dfsg-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 sword could not be built reproducibly.
This is because of the absolute build paths used in the wrapper
scripts generated by ltmain.sh (or similar).
Patch attached.
[0] https://reproducible-builds.org/
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` [email protected] / chris-lamb.co.uk
`-
--- a/debian/rules 2018-10-28 10:11:11.286574742 -0400
--- b/debian/rules 2018-10-28 13:00:44.701280387 -0400
@@ -26,6 +26,9 @@
-chrpath -d debian/tmp/usr/lib/*so*
-chrpath -d debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/*so*
dh_install --list-missing
+ # Don't embed absolute build path in wrapper scripts
+ sed -i '/# Add our own library path TO LD_LIBRARY_PATH/d'
debian/*/usr/bin/*
+ sed -i '/LD_LIBRARY_PATH="\//d' debian/*/usr/bin/*
# Fixes FTBFS if running binary-arch target only
-chmod -x debian/libsword-common/usr/share/sword/locales.d/*
# Remove empty directory: usr/share/sword/modules