Debian Bug report logs -
#1020806
perl-byacc: reproducible-builds: differing buildid in in /usr/bin/pbyacc
Reply or subscribe to this bug.
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, reproducible-bugs@lists.alioth.debian.org, Debian QA Group <packages@qa.debian.org>:
Bug#1020806; Package src:perl-byacc.
(Tue, 27 Sep 2022 00: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, Debian QA Group <packages@qa.debian.org>.
(Tue, 27 Sep 2022 00: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: perl-byacc
Severity: normal
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: buildpath
X-Debbugs-Cc: reproducible-bugs@lists.alioth.debian.org
The buildid differs in /usr/bin/pbyacc when built with a different build
path:
https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/diffoscope-results/perl-byacc.html
The attached patch fixes this in the upstream Makefile by adding
-ffile-prefix-map to CFLAGS.
According to my local tests, with this patch applied perl-byacc should
build reproducibly on tests.reproducible-builds.org!
Thanks for maintaining perl-byacc!
live well,
vagrant
[0001-Makefile-Add-ffile-prefix-map-to-CFLAGS-to-avoid-emb.patch (text/x-diff, inline)]
From 1002dd61fdf333b0266ce59cd3053e6812905727 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Mon, 26 Sep 2022 23:55:37 +0000
Subject: [PATCH] Makefile: Add -ffile-prefix-map to CFLAGS to avoid embedding
build path.
https://reproducible-builds.org/docs/build-path/
---
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 077e9ea..1dd3c07 100644
--- a/Makefile
+++ b/Makefile
@@ -26,7 +26,7 @@ SIG_TYPE = void
CPPFLAGS = $(RINDEX) -DPROGRAM=\"$(PROGRAM)\" -DSIG_TYPE=$(SIG_TYPE)
-CFLAGS = -O2 -g $(CPPFLAGS)
+CFLAGS = -O2 -g -ffile-prefix-map=$(CURDIR)=. $(CPPFLAGS)
CC = gcc -Wall
CPP = /lib/cpp
--
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:28:43 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.