Debian Bug report logs -
#1020881
kafs-client: reproducible-builds: Embedded build paths in binaries
Reply or subscribe to this bug.
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, reproducible-bugs@lists.alioth.debian.org, Bill MacAllister <bill@ca-zephyr.org>:
Bug#1020881; Package src:kafs-client.
(Tue, 27 Sep 2022 21:45: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, Bill MacAllister <bill@ca-zephyr.org>.
(Tue, 27 Sep 2022 21:45: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: kafs-client
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 various binaries or triggers differences
in buildid:
https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/diffoscope-results/kafs-client.html
/usr/libexec/kafs-dns
/build/1st/kafs-client-0.5/src/dns_main.c:221
vs.
/build/2/kafs-client-0.5/2nd/src/dns_main.c:221
The attached patch to the upstream Makefile fixes this by adding
-ffile-prefix-map to CFLAGS.
According to my local tests, with this patch applied kafs-client should
build reproducibly on tests.reproducible-builds.org!
Thanks for maintaining kafs-client!
live well,
vagrant
[0001-Makefile-Add-ffile-prefix-map-to-CFLAGS-to-avoid-emb.patch (text/x-diff, inline)]
From eecef6a737037f42c241d4ffe3a814cdfe94ae08 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Tue, 27 Sep 2022 21:37:47 +0000
Subject: [PATCH] Makefile: Add -ffile-prefix-map to CFLAGS to avoid embedding
build paths.
https://reproducible-builds.org/docs/build-path/
---
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 00fe618..2c28567 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-CFLAGS = -g -O2 -Wall -Wsign-compare
+CFLAGS = -g -O2 -Wall -Wsign-compare -ffile-prefix-map=$(CURDIR)=.
MKDIR = mkdir
INSTALL = install
DESTDIR =
--
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:17 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.