Source: libsx Severity: normal Tags: patch User: reproducible-bui...@lists.alioth.debian.org Usertags: buildpath usrmerge X-Debbugs-Cc: reproducible-b...@lists.alioth.debian.org
The build path and binary paths are embedded in /usr/share/doc/libsx-dev/examples/freq/Makefile: https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/diffoscope-results/libsx.html ACLOCAL·=·${SHELL}·'/build/1st/libsx-2.08/m4/missing'·aclocal-1.16 vs. ACLOCAL·=·${SHELL}·'/build/2/libsx-2.08/2nd/m4/missing'·aclocal-1.16 EGREP·=·/bin/grep·-E vs. EGREP·=·/usr/bin/grep·-E The attached patch fixes this by removing the example Makefile, which would have to be regenerated anyways to match the system to run it on. If removing the example Makefile is not viable, it might be possible to sanitize the build paths, and all relevent arguments to configure (e.g. EGREP='/bin/grep -e') to use the specified paths. According to my local tests, With this patch applied libsx should build reproducibly on tests.reproducible-builds.org! Thanks for maintaining libsx! live well, vagrant
From 51971752a7bdaafbd43e55525cb40fcdb7d13a0a Mon Sep 17 00:00:00 2001 From: Vagrant Cascadian <vagr...@reproducible-builds.org> Date: Sun, 16 Oct 2022 05:47:51 +0000 Subject: [PATCH] debian/rules: Remove example Makefile for reproducible builds. The Makefile contains build paths and usrmerge paths, and would have to be regenerated from Makefile.am/Makefile.in in order to match the system on which it is being run. --- debian/rules | 2 ++ 1 file changed, 2 insertions(+) diff --git a/debian/rules b/debian/rules index 370d8f9..e490e74 100755 --- a/debian/rules +++ b/debian/rules @@ -18,6 +18,8 @@ CFLAGS += `dpkg-buildflags --get CPPFLAGS` override_dh_installexamples: $(MAKE) clean dh_installexamples -Xlibsx.h + # Remove example Makefile for reproducible builds + rm -vf debian/libsx-dev/usr/share/doc/libsx-dev/examples/freq/Makefile override_dh_auto_test: @echo Disabled to avoid building examples -- 2.30.2
signature.asc
Description: PGP signature