Debian Bug report logs -
#1020876
yaskkserv: reproducible-builds: buildid differences in various 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, KURASHIKI Satoru <lurdan@gmail.com>:
Bug#1020876; Package src:yaskkserv.
(Tue, 27 Sep 2022 20:24: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, KURASHIKI Satoru <lurdan@gmail.com>.
(Tue, 27 Sep 2022 20:24: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: yaskkserv
Severity: normal
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: buildpath
X-Debbugs-Cc: reproducible-bugs@lists.alioth.debian.org
When the build path differs it results in a different buildid in various
binaries in /usr/bin/yaskkserv*:
https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/diffoscope-results/yaskkserv.html
The attached patch to debian/rules fixes this by adding
--debug-prefix-map to CXXFLAGS.
According to my local tests, with this patch applied yaskkserv should
build reproducibly on tests.reproducible-builds.org!
Thanks for maintaining yaskkserv!
live well,
vagrant
[0001-debian-rules-Add-debug-prefix-map-to-CXXFLAGS-to-avo.patch (text/x-diff, inline)]
From 12f5f5b3dd56129044bdb2b270d69302c1d04ed1 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Tue, 27 Sep 2022 20:17:16 +0000
Subject: [PATCH] debian/rules: Add --debug-prefix-map to CXXFLAGS to avoid
embedding build paths.
https://tests.reproducible-builds.org/debian/issues/unstable/build_path_captured_in_assembly_objects_issue.html
---
debian/rules | 1 +
1 file changed, 1 insertion(+)
diff --git a/debian/rules b/debian/rules
index 0696cbb..4f515f8 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,6 +4,7 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all
DPKG_EXPORT_BUILDFLAGS = 1
export DEB_LDFLAGS_MAINT_APPEND = -defs
+export DEB_CXXFLAGS_MAINT_APPEND = --debug-prefix-map=$(CURDIR)=.
# Uncomment this to turn on verbose mode.
export DH_VERBOSE=1
--
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:42 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.