[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1021452: libdv: reproducible-builds: build path embedded in libdv.so.4.0.3



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
 
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

Attachment: signature.asc
Description: PGP signature


Reply to: