Debian Bug report logs -
#1029800
aribas: reproducible-builds: build id differences in /usr/bin/aribas
Reply or subscribe to this bug.
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, reproducible-bugs@lists.alioth.debian.org, Ralf Treinen <treinen@debian.org>:
Bug#1029800; Package src:aribas.
(Fri, 27 Jan 2023 22:21: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, Ralf Treinen <treinen@debian.org>.
(Fri, 27 Jan 2023 22:21: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: aribas
Severity: normal
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: buildpath
X-Debbugs-Cc: reproducible-bugs@lists.alioth.debian.org
Building from a different directory results in a different build id
embedded in /usr/bin/aribas:
https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/diffoscope-results/aribas.html
Build·ID:·7652115b45271e393b31873efede354e1cb36769
vs.
Build·ID:·49cfcb42aa13407e5d7e5ce6e50352610d448a78
The attached patch to the upstream src/Makefile fixes this by adding the
-ffile-prefix-map argument in CFLAGS, removing the build path before the
buildid is calculated.
According to my local tests, with this patch applied aribas should build
reproducibly on tests.reproducible-builds.org!
Thanks for maintaining aribas!
live well,
vagrant
[0001-src-Makefile-Avoid-build-path-changing-the-build.patch (text/x-diff, inline)]
From a5495a44f199c31eb6f8b9ca50c4790b241b0c6d Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Fri, 27 Jan 2023 22:04:51 +0000
Subject: [PATCH] src/Makefile: Avoid build path changing the build id.
https://reproducible-builds.org/docs/build-path/
https://tests.reproducible-builds.org/debian/issues/unstable/build_id_differences_only_issue.html
---
src/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/Makefile b/src/Makefile
index 9441456..c26eda1 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -12,7 +12,7 @@
# the next two lines.
CC = gcc
-CFLAGS = -DUNiX -DPROTO -O -v -g
+CFLAGS = -DUNiX -DPROTO -O -v -g -ffile-prefix-map=$(CURDIR)=.
MEMFLAG1 = -DMEM=16
# MEM may be set to any integer value from 1 to 32.
--
2.39.1
[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 10:59:16 2023;
Machine Name:
bembo
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.