Source: libsdl-console Severity: normal Tags: patch User: [email protected] Usertags: buildpath usrmerge X-Debbugs-Cc: [email protected]
The build path and various binary paths are embedded in /usr/share/doc/libsdl-console-dev/examples/Makefile.gz: https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/diffoscope-results/libsdl-console.html ACLOCAL·=·${SHELL}·'/build/1st/libsdl-console-2.1/missing'·aclocal-1.16 vs. ACLOCAL·=·${SHELL}·'/build/2/libsdl-console-2.1/2nd/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 running system. If removing the example Makefile is not viable, it might be possible to sanitize the build paths, and add relevent arguments to configure (e.g. EGREP='/bin/grep -e') to use the specified paths. According to my local tests, with this patch applied libsdl-console should build reproducibly on tests.reproducible-builds.org! Thanks for maintaining libsdl-console! live well, vagrant
From 8389df3f4cbb071a90b94f5984b8d15ae9dafda9 Mon Sep 17 00:00:00 2001 From: Vagrant Cascadian <[email protected]> Date: Thu, 8 Jun 2023 16:29:23 -0700 Subject: [PATCH] debian/rules: Remove example Makefiles in dh_installexamples override. The Makefiles include hard-coded build paths and binary paths. https://reproducible-builds.org/docs/build-path/ https://tests.reproducible-builds.org/debian/issues/unstable/paths_vary_due_to_usrmerge_issue.html --- debian/rules | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/debian/rules b/debian/rules index 955689c..1fa3104 100755 --- a/debian/rules +++ b/debian/rules @@ -9,3 +9,9 @@ export DEB_LDFLAGS_MAINT_APPEND := -Wl,--no-undefined -Wl,--as-needed %: dh $@ + +override_dh_installexamples: + dh_installexamples + # Remove for reproducible builds, contains build paths and binary paths + rm -vf debian/libsdl-console-dev/usr/share/doc/libsdl-console-dev/examples/Makefile + rm -vf debian/libsdl-console-dev/usr/share/doc/libsdl-console-dev/examples/Makefile.in -- 2.39.2
signature.asc
Description: PGP signature

