Debian Bug report logs -
#1021452
libdv: reproducible-builds: build path embedded in libdv.so.4.0.3
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#1021452; Package src:libdv.
(Sat, 08 Oct 2022 20:51: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>.
(Sat, 08 Oct 2022 20:51: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: libdv
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
/usr/lib/x86_64-linux-gnu/libdv.so.4.0.3:
https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/diffoscope-results/libdv.html
/build/1st/libdv-1.0.0/libdv/vlc_x86_64.S:9
vs.
/build/2/libdv-1.0.0/2nd/libdv/vlc_x86_64.S:9
The attached patch to debian/rules fixes this by adding
--debug-prefix-map to CFLAGS.
According to my local tests, with this patch applied, libdv should build
reproducibly on tests.reproducible-builds.org!
Thanks for maintaining libdv!
live well,
vagrant
[0001-debian-rules-Add-debug-prefix-map-to-CFLAGS-to-avoid.patch (text/x-diff, inline)]
From c2990be4998a537a2865e7eb33bc80bfeca3357b Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Sat, 8 Oct 2022 20:43:19 +0000
Subject: [PATCH] debian/rules: Add --debug-prefix-map to CFLAGS to avoid
embedding build paths when building assembly files.
https://tests.reproducible-builds.org/debian/issues/unstable/build_path_captured_in_assembly_objects_issue.html
---
debian/rules | 3 +++
1 file changed, 3 insertions(+)
diff --git a/debian/rules b/debian/rules
index 7cd69b0..f682536 100755
--- a/debian/rules
+++ b/debian/rules
@@ -12,6 +12,9 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all
#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
# package maintainers to append LDFLAGS
+# Avoid embedding build path when compiling assembly files
+export DEB_CFLAGS_MAINT_APPEND = --debug-prefix-map=$(CURDIR)=.
+
include /usr/share/dpkg/default.mk
%:
--
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 12:44:22 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.