Source: libid3tag
Severity: normal
Tags: patch
User: reproducible-bui...@lists.alioth.debian.org
Usertags: buildpath
X-Debbugs-Cc: reproducible-b...@lists.alioth.debian.org

The build path is embedded in
/usr/lib/x86_64-linux-gnu/libid3tag.so.0.3.0:

  
https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/diffoscope-results/libid3tag.html

  /build/1st/libid3tag-0.15.1b/ucs4.c:43
  vs.
  /build/2/libid3tag-0.15.1b/2nd/ucs4.c:43

The attached patch fixes this in debian/rules by adding
-ffile-prefix-map to CFLAGS passed to configure.

With this patch applied libid3tag should build reproducibly on
tests.reproducible-builds.org!

Thanks for maintaining libid3tag!

live well,
  vagrant
From 582ecc8d8a2f0f2d82aaba864c2452ffcc018b8a Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagr...@reproducible-builds.org>
Date: Sat, 24 Sep 2022 22:42:12 +0000
Subject: [PATCH] debian/rules: Pass -ffile-prefix-map in CFLAGS via
 DEB_CONFIGURE_EXTRA_FLAGS.

https://reproducible-builds.org/docs/build-path/
---
 debian/rules | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/rules b/debian/rules
index ffbf0b1..c5dae62 100755
--- a/debian/rules
+++ b/debian/rules
@@ -10,7 +10,7 @@ include /usr/share/cdbs/1/rules/debhelper.mk
 include /usr/share/cdbs/1/rules/autoreconf.mk
 include /usr/share/cdbs/1/class/autotools.mk
 
-DEB_CONFIGURE_EXTRA_FLAGS=--enable-shared --libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH)
+DEB_CONFIGURE_EXTRA_FLAGS=--enable-shared --libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH) CFLAGS="-ffile-prefix-map=$(CURDIR)=."
 
 install/libid3tag0-dev:: debian/id3tag.pc
 	mkdir -p debian/$(cdbs_curpkg)/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig
-- 
2.37.2

Attachment: signature.asc
Description: PGP signature

Reply via email to