Source: ygl 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/lib/libYgl.so.4.2: https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/diffoscope-results/ygl.html /build/1st/ygl-4.2e/ygl.c:525 vs. /build/2/ygl-4.2e/2nd/ygl.c:525 The attached patch fixes this by passing a variable to dh_auto_build in debian/rules with the -ffile-prefix-map compiler flag to avoid embedding the build path. With this patch applied, ygl should build reproducibly on tests.reproducible-builds.org! live well, vagrant
From 0bec442f2213e5bb27b8dfbbfb115df9dbf2a9d5 Mon Sep 17 00:00:00 2001 From: Vagrant Cascadian <vagr...@reproducible-builds.org> Date: Thu, 7 Jul 2022 21:31:18 +0000 Subject: [PATCH] debian/rules: Pass variable to dh_auto_build to avoid embedding build path. Use the PROJECT_DEFINES variable to pass -ffile-prefix-map to avoid embedding the build path for reproducible builds. https://reproducible-builds.org/docs/build-path/ --- debian/rules | 3 +++ 1 file changed, 3 insertions(+) diff --git a/debian/rules b/debian/rules index a2d7d11..4093d56 100755 --- a/debian/rules +++ b/debian/rules @@ -13,3 +13,6 @@ override_dh_auto_configure: override_dh_installexamples: cd examples && $(MAKE) clean && rm -f Makefile dh_installexamples + +override_dh_auto_build: + dh_auto_build -- PROJECT_DEFINES="-ffile-prefix-map=$(CURDIR)=." -- 2.36.1
signature.asc
Description: PGP signature