Debian Bug report logs -
#1020653
pal: reproducible-builds: Embedded build path in /usr/bin/pal
Reply or subscribe to this bug.
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, reproducible-bugs@lists.alioth.debian.org, Carsten Hey <carsten@debian.org>:
Bug#1020653; Package src:pal.
(Sat, 24 Sep 2022 21:03:04 GMT) (full text, mbox, link).
Acknowledgement sent
to Vagrant Cascadian <vagrant@reproducible-builds.org>:
New Bug report received and forwarded. Copy sent to reproducible-bugs@lists.alioth.debian.org, Carsten Hey <carsten@debian.org>.
(Sat, 24 Sep 2022 21:03:04 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Source: pal
Severity: normal
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: buildpath
X-Debbugs-Cc: reproducible-bugs@lists.alioth.debian.org
The build path is embedded in /usr/bin/pal:
https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/diffoscope-results/pal.html
/build/1st/pal-0.4.3/src/main.c:704
vs.
/build/2/pal-0.4.3/2nd/src/main.c:704
The attached patch fixes this by passing the -ffile-prefix-map argument
via CFLAGS in debian/rules.
Another option that *might* fix this and other issues would be to switch
to dh and a recent debhelper compat level.
With this patch applied pal should build reproducibly on
tests.reproducible-builds.org!
Thanks for maintaining pal!
live well,
vagrant
[0001-debian-rules-Pass-ffile-prefix-map-via-CFLAGS.patch (text/x-diff, inline)]
From 521957ae75c17b5be7a97ecf78f1a8528e097a53 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Sat, 24 Sep 2022 20:55:50 +0000
Subject: [PATCH] debian/rules: Pass -ffile-prefix-map via CFLAGS.
https://reproducible-builds.org/docs/build-path/
---
debian/rules | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/debian/rules b/debian/rules
index 1d8260c..311ac0a 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,7 +7,7 @@
include /usr/share/quilt/quilt.make
-CFLAGS = -Wall -g
+CFLAGS = -Wall -g -ffile-prefix-map=$(CURDIR)=.
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
CFLAGS += -O0
--
2.37.2
[signature.asc (application/pgp-signature, inline)]
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Wed May 17 13:29:15 2023;
Machine Name:
buxtehude
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.