Debian Bug report logs - #1011493
freecdb: reproducible-builds: embedded build paths in various binaries

Package: src:freecdb; Maintainer for src:freecdb is Debian QA Group <packages@qa.debian.org>;

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

Date: Mon, 23 May 2022 22:36: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, Debian QA Group <packages@qa.debian.org>:
Bug#1011493; Package src:freecdb. (Mon, 23 May 2022 22:36: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>. (Mon, 23 May 2022 22:36: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: freecdb: reproducible-builds: embedded build paths in various binaries
Date: Mon, 23 May 2022 15:33:52 -0700
[Message part 1 (text/plain, inline)]
Source: freecdb
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 various binaries in /usr/bin:

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

  /usr/bin/cdbdump

  /build/1st/freecdb-0.76/cdbdump.c:45
  vs.
  /build/2/freecdb-0.76/2nd/cdbdump.c:45

The attached patch fixes this by explicitly passing CFLAGS to a
dh_auto_build override in debian/rules, which includes the
-ffile-prefix-map argument used to avoid embedding build paths.


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


live well,
  vagrant
[0001-debian-rules-Explicitly-pass-CFLAGS-to-dh_auto_build.patch (text/x-diff, inline)]
From 614861c71f34eea174ed917d3a03b23f771008f3 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Mon, 23 May 2022 22:28:57 +0000
Subject: [PATCH] debian/rules: Explicitly pass CFLAGS to dh_auto_build.

---
 debian/rules | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/debian/rules b/debian/rules
index 2d33f6a..ae015cc 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,3 +2,6 @@
 
 %:
 	dh $@
+
+override_dh_auto_build:
+	dh_auto_build -- CFLAGS="$(CFLAGS)"
-- 
2.36.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 12:38:41 2023; Machine Name: bembo

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.