Debian Bug report logs - #1006858
libao: reproducible-builds: build path embedded in various libraries

Package: src:libao; Maintainer for src:libao is Ron Lee <ron@debian.org>;

Reported by: Vagrant Cascadian <vagrant@reproducible-builds.org>

Date: Sun, 6 Mar 2022 22:45:02 UTC

Severity: normal

Tags: patch

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, reproducible-bugs@lists.alioth.debian.org, Ron Lee <ron@debian.org>:
Bug#1006858; Package src:libao. (Sun, 06 Mar 2022 22: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, Ron Lee <ron@debian.org>. (Sun, 06 Mar 2022 22:45:04 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Vagrant Cascadian <vagrant@reproducible-builds.org>
To: submit@bugs.debian.org
Subject: libao: reproducible-builds: build path embedded in various libraries
Date: Sun, 06 Mar 2022 14:40:36 -0800
[Message part 1 (text/plain, inline)]
Source: libao
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 and resulting Build ID for various libraries is embedded:

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

  /usr/lib/x86_64-linux-gnu/ao/plugins-4/libalsa.so

  /build/1st/libao-1.2.2+20180113/src/plugins/alsa/ao_alsa.c:301
  vs.
  /build/2/libao-1.2.2+20180113/2nd/src/plugins/alsa/ao_alsa.c:30


The attached patch to debian/rules fixes this by passing
-ffile-prefix-map via CFLAGS in the dh_auto_configure override.


Alternately, updating to use the CFLAGS passed via dh/debhelper would
also likely fix this.


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


live well,
  vagrant
[0001-debian-rules-Pass-ffile-prefix-map-via-CFLAGS-in-dh_.patch (text/x-diff, inline)]
From 5dd9ec965d3a6e299a74759966ba1d21e973d8a8 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Sun, 6 Mar 2022 22:30:02 +0000
Subject: [PATCH] debian/rules: Pass -ffile-prefix-map via CFLAGS in
 dh_auto_configure override.

This prevents embedding the build path in various binaries.

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 ef63c1c..b37c513 100755
--- a/debian/rules
+++ b/debian/rules
@@ -16,7 +16,7 @@ override_dh_makeshlibs:
 override_dh_auto_configure:
 	ln -sf /usr/share/misc/config.sub .
 	ln -sf /usr/share/misc/config.guess .
-	dh_auto_configure -- CFLAGS='-g -Wall'
+	dh_auto_configure -- CFLAGS="-g -Wall -ffile-prefix-map=$(CURDIR)=."
 
 override_dh_auto_clean:
 	dh_auto_clean
-- 
2.35.1

[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:24:11 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.