Debian Bug report logs - #1011479
fstrcmp: reproducible-builds: embedded build paths

version graph

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

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

Date: Mon, 23 May 2022 19:45:02 UTC

Severity: normal

Tags: patch

Fixed in version fstrcmp/0.7.D001-3

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

Bug is archived. No further changes may be made.

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#1011479; Package src:fstrcmp. (Mon, 23 May 2022 19: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, Debian QA Group <packages@qa.debian.org>. (Mon, 23 May 2022 19: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: fstrcmp: reproducible-builds: embedded build paths
Date: Mon, 23 May 2022 12:43:01 -0700
[Message part 1 (text/plain, inline)]
Source: fstrcmp
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 debug symbols:

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

  ./usr/lib/debug/usr/bin/fstrcmp

  0»      (line_strp)»   (offset:·0x0):·/build/1st/fstrcmp-0.7.D001
  vs.
  0»      (line_strp)»   (offset:·0xf):·/build/2/fstrcmp-0.7.D001/2nd

The attached patch fixes this by setting -ffile-prefix-map in CFLAGS in
debian/rules, which avoids embedding the absolute build path.


Alternately, switching to use a newer debhelper compat level and the dh
build system would likely also fix this, as it includes -ffile-prefix-map
by default.


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


live well,
  vagrant
[0001-debian-rules-Pass-ffile-prefix-map-via-CFLAGS.patch (text/x-diff, inline)]
From 2427b3099e9ab739f9a9e6e1395fb978fd394e62 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Mon, 23 May 2022 19:36:47 +0000
Subject: [PATCH] debian/rules: Pass -ffile-prefix-map via CFLAGS.

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

diff --git a/debian/rules b/debian/rules
index 9c76c56..9ffe622 100755
--- a/debian/rules
+++ b/debian/rules
@@ -10,6 +10,9 @@ else
 CFLAGS += -O2
 endif
 
+# Avoid embedding the build path
+CFLAGS += -ffile-prefix-map=$(CURDIR)=.
+
 config.status: configure
 	dh_testdir
 	dh_autotools-dev_updateconfig
-- 
2.36.1

[signature.asc (application/pgp-signature, inline)]

Reply sent to Vagrant Cascadian <vagrant@reproducible-builds.org>:
You have taken responsibility. (Mon, 11 Jul 2022 00:51:05 GMT) (full text, mbox, link).


Notification sent to Vagrant Cascadian <vagrant@reproducible-builds.org>:
Bug acknowledged by developer. (Mon, 11 Jul 2022 00:51:05 GMT) (full text, mbox, link).


Message #10 received at 1011479-close@bugs.debian.org (full text, mbox, reply):

From: Debian FTP Masters <ftpmaster@ftp-master.debian.org>
To: 1011479-close@bugs.debian.org
Subject: Bug#1011479: fixed in fstrcmp 0.7.D001-3
Date: Mon, 11 Jul 2022 00:49:00 +0000
Source: fstrcmp
Source-Version: 0.7.D001-3
Done: Vagrant Cascadian <vagrant@reproducible-builds.org>

We believe that the bug you reported is fixed in the latest version of
fstrcmp, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1011479@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Vagrant Cascadian <vagrant@reproducible-builds.org> (supplier of updated fstrcmp package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Sun, 10 Jul 2022 17:23:23 -0700
Source: fstrcmp
Architecture: source
Version: 0.7.D001-3
Distribution: unstable
Urgency: medium
Maintainer: Debian QA Group <packages@qa.debian.org>
Changed-By: Vagrant Cascadian <vagrant@reproducible-builds.org>
Closes: 1007519 1011479
Changes:
 fstrcmp (0.7.D001-3) unstable; urgency=medium
 .
   * QA upload.
   * Switch to source format "3.0 (quilt)". (Closes: #1007519)
   * debian/control: Remove obsolete "DM-Upload-Allowed" field.
   * Remove obsolete libfstrcmp0-dbg package.
   * Convert to "dh" and debhelper-compat 13. (Closes: #1011479)
   * Install pkgconfig file in multi-arch dir.
   * debian/control: Set Rules-Requires-Root to "no".
Checksums-Sha1:
 bb2f67341d64e5f86a4cdbe13bfa72c11638e897 1500 fstrcmp_0.7.D001-3.dsc
 013c965b28a5d4a27f67838a35e5fff341c71206 4568 fstrcmp_0.7.D001-3.debian.tar.xz
Checksums-Sha256:
 81c6a721599f9075e6b2bb367672ed17bd072c4180e7af287051121446e5a99d 1500 fstrcmp_0.7.D001-3.dsc
 c6a175d070c23b51672b88fb87d2bcfbfa66e1278fee82d8e5355fda9df06cbe 4568 fstrcmp_0.7.D001-3.debian.tar.xz
Files:
 ab2a8f9a8ff104f0af54468f6a38b682 1500 devel optional fstrcmp_0.7.D001-3.dsc
 70e8a478c975a94d6da146693a0c6260 4568 devel optional fstrcmp_0.7.D001-3.debian.tar.xz

-----BEGIN PGP SIGNATURE-----

iJYEARYKAD4WIQRlgHNhO/zFx+LkXUXcUY/If5cWqgUCYstvUCAcdmFncmFudEBy
ZXByb2R1Y2libGUtYnVpbGRzLm9yZwAKCRDcUY/If5cWqk/QAPsFieXMakUxEGRv
oUzbawUGFa2fw8tv31uzUzEHN/Xb/wD7BFA0O2T/GiFpAtvRhI5tg/nQSGP05aRj
jkTtbAKsrQE=
=Vi4v
-----END PGP SIGNATURE-----




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Sat, 13 Aug 2022 07:28:08 GMT) (full text, mbox, link).


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:07 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.