[pkg-crosswire-devel] Bug#912161: sword: please make the build reproducible

Chris Lamb lamby at debian.org
Sun Oct 28 17:24:26 GMT 2018


Source: sword
Version: 1.7.4+dfsg-1
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: buildpath
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org

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
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
--- 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


More information about the pkg-crosswire-devel mailing list