Source: snapper Severity: normal Tags: patch User: reproducible-bui...@lists.alioth.debian.org Usertags: buildpath X-Debbugs-Cc: reproducible-b...@lists.alioth.debian.org
The build path is embedded in /usr/share/doc/libsnapper-dev/examples/Makefile: https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/diffoscope-results/snapper.html ACLOCAL·=·${SHELL}·'/build/1st/snapper-0.10.2/missing'·aclocal-1.16 vs. ACLOCAL·=·${SHELL}·'/build/2/snapper-0.10.2/2nd/missing'·aclocal-1.16 The attached patch fixes this in debian/rules by removing the Makefile in a dh_installexamples override. Removing the Makefile seems better than sanitizing the build path, as in order to use it, one would have to regenerate it from the provided Makefile.in or Makefile.am to match the running system. With this patch applied (and another recently submitted to fix usrmerge issues) snapper should build reproducibly on tests.reproducible-builds.org! Thanks for maintaining snapper! live well, vagrant
From bfce7a9e7d00177d4ff7c3b5e4e9a12457d49149 Mon Sep 17 00:00:00 2001 From: Vagrant Cascadian <vagr...@reproducible-builds.org> Date: Sun, 25 Sep 2022 19:37:56 +0000 Subject: [PATCH 2/2] debian/rules: Add dh_installexamples override to remove an example Makefile containing build paths. This file may need to be regenerated from Makefile.am or Makefile.in to match the system on which it is being run. https://reproducible-builds.org/docs/build-path/ --- debian/rules | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/debian/rules b/debian/rules index 241b9bb..161bad8 100755 --- a/debian/rules +++ b/debian/rules @@ -36,6 +36,11 @@ override_dh_auto_install: # Cleanup examples make -C examples clean +override_dh_installexamples: + dh_installexamples + # Remove example Makefile which contains build path for reproducible builds + rm -f debian/libsnapper-dev/usr/share/doc/libsnapper-dev/examples/Makefile + override_dh_compress: dh_compress -X.c -X.cc -X.h -X.hpp -X.am -- 2.37.2
signature.asc
Description: PGP signature