Source: gdome2 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/libgdome.so.0.8.1: https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/diffoscope-results/gdome2.html /build/1st/gdome2-0.8.1+debian/libgdome/gdome.c:65 vs. /build/2/gdome2-0.8.1+debian/2nd/libgdome/gdome.c:65 The attached patch to debian/rules fixes this by passing -ffile-prefix-map in CFLAGS and ensuring CFLAGS is passed to configure. Alternately, updating the packaging to use dh/debhelper at a recent compat level would also likely fix this. With this patch applied, gdome2 should build reproducibly on tests.reproducible-builds.org! live well, vagrant
From 65c23dfcbf5fd3a59d4a3141430247225e4d4413 Mon Sep 17 00:00:00 2001 From: Vagrant Cascadian <vagr...@reproducible-builds.org> Date: Mon, 9 May 2022 23:06:56 +0000 Subject: [PATCH] debian/rules: add -ffile-prefix-map to CFLAGS and ensure CFLAGS are passed in the configure phase. --- debian/rules | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/debian/rules b/debian/rules index 5e25754..ae361d7 100755 --- a/debian/rules +++ b/debian/rules @@ -11,13 +11,15 @@ ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) INSTALL_PROGRAM += -s endif +CFLAGS += -ffile-prefix-map=$(CURDIR)=. + configure: configure-stamp configure-stamp: dh_testdir cp /usr/share/misc/config.sub /usr/share/misc/config.guess . libtoolize -c -f autoreconf -f -i - ./configure --prefix=/usr \ + CFLAGS="$(CFLAGS)" ./configure --prefix=/usr \ --mandir=\$${prefix}/share/man \ --infodir=\$${prefix}/share/info \ --with-html-dir=\$${prefix}/share/doc/libgdome2-dev -- 2.36.0
signature.asc
Description: PGP signature