Debian Bug report logs -
#1011480
libxsettings-client: reproducible-builds: embedded build paths
Reported by: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Mon, 23 May 2022 20:27:01 UTC
Severity: normal
Tags: patch
Fixed in version 0.17-11
Done: Vagrant Cascadian <vagrant@reproducible-builds.org>
Bug is archived. No further changes may be made.
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, reproducible-bugs@lists.alioth.debian.org, Debian QA Group <packages@qa.debian.org>:
Bug#1011480; Package src:libxsettings-client.
(Mon, 23 May 2022 20:27:03 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 20:27:03 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Source: libxsettings-client
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/libXsettings-client.so.0.0.0:
https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/diffoscope-results/libxsettings-client.html
/build/1st/libxsettings-client-0.17/xsettings-client.c:340
vs.
/build/2/libxsettings-client-0.17/2nd/xsettings-client.c:340
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, libxsettings-client 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 d6c7a37cac9771a19cb4131d92970f5812e1cdce Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Mon, 23 May 2022 20:18:03 +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 69c4f21..2ae7593 100755
--- a/debian/rules
+++ b/debian/rules
@@ -22,6 +22,9 @@ else
CFLAGS += -O2
endif
+# Avoid embedding build path
+CFLAGS += -ffile-prefix-map=$(CURDIR)=.
+
# shared library versions, option 1
version=1.0.0
major=1
--
2.36.1
[signature.asc (application/pgp-signature, inline)]
Reply sent
to Vagrant Cascadian <vagrant@reproducible-builds.org>:
You have taken responsibility.
(Sun, 13 Nov 2022 07:18:03 GMT) (full text, mbox, link).
Notification sent
to Vagrant Cascadian <vagrant@reproducible-builds.org>:
Bug acknowledged by developer.
(Sun, 13 Nov 2022 07:18:03 GMT) (full text, mbox, link).
Message #10 received at 1011480-done@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Version: 0.17-11
On 2022-05-23, Vagrant Cascadian wrote:
> The build path is embedded in /usr/lib/libXsettings-client.so.0.0.0:
...
> 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.
This was fixed by the switch to dh/debhelper-compat v13:
libxsettings-client (0.17-11) unstable; urgency=medium
* QA upload.
* debian/: Apply wrap-and-sort -abst.
* debian/control:
+ Bump Standards-Version to 4.6.1.
+ Update Vcs-* fields.
+ Bump debhelper compat to v13.
* debian/rules: Convert to dh sequencer.
* debian/copyright: Rewrite in machine-readable format.
* debian/patches: Add patch for .pc file to use correct libdir.
-- Boyuan Yang <byang@debian.org> Mon, 10 Oct 2022 16:53:27 -0400
live well,
vagrant
[signature.asc (application/pgp-signature, inline)]
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Sun, 11 Dec 2022 07:27:55 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:55 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.