Source: perl-byacc Severity: normal Tags: patch User: reproducible-bui...@lists.alioth.debian.org Usertags: buildpath X-Debbugs-Cc: reproducible-b...@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
From 1002dd61fdf333b0266ce59cd3053e6812905727 Mon Sep 17 00:00:00 2001 From: Vagrant Cascadian <vagr...@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
Description: PGP signature