Source: shapetools 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/include/sttk.h: https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/diffoscope-results/shapetools.html #define·ST_ENV_DEFAULT» "/build/1st/shapetools-1.4pl6/debian/tmp/usr" vs. #define·ST_ENV_DEFAULT» "/build/2/shapetools-1.4pl6/2nd/debian/tmp/usr" The attached patch fixes this in debian/rules by removing the build path and debian/tmp from sttk.h. It is unclear to me if it would be better to replace it with a placeholder value, or to leave the debian/tmp part; it really depends how this define is used. With this patch applied shapetools should build reproducibly on tests.reproducible-builds.org! Thanks for maintaining shapetools! live well, vagrant
From 57526fa7f4a3f45661247021c4cceb6a919de4b7 Mon Sep 17 00:00:00 2001 From: Vagrant Cascadian <vagr...@reproducible-builds.org> Date: Mon, 26 Sep 2022 00:11:40 +0000 Subject: [PATCH 1/2] debian/rules: Remove build path from sttk.h. https://reproducible-builds.org/docs/build-path/ --- debian/rules | 2 ++ 1 file changed, 2 insertions(+) diff --git a/debian/rules b/debian/rules index f7df25f..268b2e1 100755 --- a/debian/rules +++ b/debian/rules @@ -363,6 +363,8 @@ binary-arch: build install dh_installchangelogs -p$(p_atfs) CHANGES-1.4 dh_strip -a -X.a dh_compress -a + # Remove build path for reproducible builds + sed -i -e "s,$(CURDIR)/debian/tmp,,g" debian/atfs-dev/usr/include/sttk.h dh_fixperms -a LD_LIBRARY_PATH=$(d_atfslib)/usr/lib:$$LD_LIBRARY_PATH \ dh_makeshlibs -V -p$(p_atfslib) -- 2.30.2
signature.asc
Description: PGP signature