Debian Bug report logs -
#995745
kannel: reproducible-builds: Build path embedded in /usr/bin/gw-config
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, reproducible-bugs@lists.alioth.debian.org, Chris Hofstaedtler <zeha@debian.org>:
Bug#995745; Package src:kannel.
(Mon, 04 Oct 2021 22:42: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, Chris Hofstaedtler <zeha@debian.org>.
(Mon, 04 Oct 2021 22:42:04 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Source: kannel
Severity: normal
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: buildpath
X-Debbugs-Cc: reproducible-bugs@lists.alioth.debian.org
The file /usr/bin/gw-config embeds the build path, as it embeds CFLAGS
which often contains the build path passed via -ffile-prefix-map or
-fdebug-prefix-map:
https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/diffoscope-results/kannel.html
-I/usr/include/kannel·-g·-O2·-ffile-prefix-map=/build/1st/kannel-1.4.5=.
vs.
-I/usr/include/kannel·-g·-O2·-ffile-prefix-map=/build/2/kannel-1.4.5/2nd=.
The attached patch strips the build path from gw-config in
debian/rules after the files are installed to debian/tmp.
With this patch applied, kannel should become reproducible on
tests.reproducible-builds.org.
Thanks for maintaining kannel!
live well,
vagrant
[0001-debian-rules-Strip-out-the-build-directory-from-gw-c.patch (text/x-diff, inline)]
From b5c0ed49d67db5834514b93a09309a661d9065c5 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Mon, 4 Oct 2021 22:26:48 +0000
Subject: [PATCH] debian/rules: Strip out the build directory from gw-config.
The build directory is often passed via CFLAGS with the
-fdebug-prefix-map or -ffile-prefix-map, which will often vary between
two different builds.
https://tests.reproducible-builds.org/debian/issues/unstable/records_build_flags_issue.html
---
debian/rules | 3 +++
1 file changed, 3 insertions(+)
diff --git a/debian/rules b/debian/rules
index 6f3acfe..918ec52 100755
--- a/debian/rules
+++ b/debian/rules
@@ -46,3 +46,6 @@ override_dh_auto_configure:
override_dh_auto_install:
make -j1 install install-contrib install-checks install-docs install-test DESTDIR=$(CURDIR)/debian/tmp AM_UPDATE_INFO_DIR=no
+ # Replace the build directory so that the build is
+ # reproducible regardless of build path
+ sed -i -e "s,$(CURDIR),BUILDDIR,g" debian/tmp/usr/bin/gw-config
--
2.30.2
[signature.asc (application/pgp-signature, inline)]
Reply sent
to Chris Hofstaedtler <zeha@debian.org>:
You have taken responsibility.
(Tue, 05 Oct 2021 08:54:03 GMT) (full text, mbox, link).
Notification sent
to Vagrant Cascadian <vagrant@reproducible-builds.org>:
Bug acknowledged by developer.
(Tue, 05 Oct 2021 08:54:03 GMT) (full text, mbox, link).
Message #10 received at 995745-close@bugs.debian.org (full text, mbox, reply):
Source: kannel
Source-Version: 1.4.5-10
Done: Chris Hofstaedtler <zeha@debian.org>
We believe that the bug you reported is fixed in the latest version of
kannel, 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 995745@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Chris Hofstaedtler <zeha@debian.org> (supplier of updated kannel 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: SHA256
Format: 1.8
Date: Tue, 05 Oct 2021 08:26:39 +0000
Source: kannel
Architecture: source
Version: 1.4.5-10
Distribution: unstable
Urgency: medium
Maintainer: Chris Hofstaedtler <zeha@debian.org>
Changed-By: Chris Hofstaedtler <zeha@debian.org>
Closes: 995745
Changes:
kannel (1.4.5-10) unstable; urgency=medium
.
[ Vagrant Cascadian ]
* debian/rules: Strip out the build directory from gw-config
(Closes: #995745)
Checksums-Sha1:
a8dc80460d95af754edfd0c815a405c10ab50469 2253 kannel_1.4.5-10.dsc
bde8a0e1f88498e6cc5f61fc58dd9789dec122a2 26380 kannel_1.4.5-10.debian.tar.xz
32ccc53d1781155f177510b0e828443d3c7b5843 6755 kannel_1.4.5-10_source.buildinfo
Checksums-Sha256:
320780f137f4f755fd0e03aed26d9568beea308a85f86d075e026112b821604e 2253 kannel_1.4.5-10.dsc
9694f9ef9461eaaabb9b0b4a065d3cdf9c557bd6f5005ac69d106cc0fa9a47b0 26380 kannel_1.4.5-10.debian.tar.xz
3efa7ea9e2031bf3019bd214b0f16f04355ecc15848e8c31869f1fa535caaaba 6755 kannel_1.4.5-10_source.buildinfo
Files:
a18ddf49234ea08a2b94a72962e70a1f 2253 net optional kannel_1.4.5-10.dsc
f94262f23ecd05906b90cccd444308e2 26380 net optional kannel_1.4.5-10.debian.tar.xz
dec12eac8dd7925347a454520a77306e 6755 net optional kannel_1.4.5-10_source.buildinfo
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCAAdFiEEfRrP+tnggGycTNOSXBPW25MFLgMFAmFcDnAACgkQXBPW25MF
LgOWHw/+OXzrvWc4GNuua2qwuAe4ndruUgOHvHWD2jEQdEcW2XaXZ7vUp4okc0ko
7utuXj6A8w+xqPI1cVws5vOjhi1UETnmPbiCyetqFklWxQGoOI1AteR00NjpqIWa
gcPPW7U0VudVMgGR1C5Yyv9O3YycW7l7Tjhpgw757Z9m8YyKMOyYw0Uk42LWK72M
stdSurVBie0YX6szTvU4YU7t8/f72td7ZietAOUJBMELwq+D+AeLMYFpcjl9+2jL
f0nDlt5Gg5rfrgd/5Nt5EVUj9Hp6n6/gjU4FTJzkPYV+GCV0X4uYHO0B9mMx/Wv8
Pesv/0cXnCynNC1vUnB5ZCdCWyZno9Gltg5ipq+HyWUlSPPzkgLWJwtwleewk5mI
9CfvwJhUAQVThilIHmEbGgRDKprJXssY9fEXEmqHAk+QQsyz2QBOMUS35zxnkrfR
1/t3L3yK+N9bDV8pCMDuVJA8Wjc6ogWQ2NBQL5xy6twARflhcsO3JDcUN4HK1nlu
ANK3jXdwijYRjfRKMTAwOP9ZSwrbRuaWqLsM9+CHOnmRhRubHXhtSn0AZjZQ8DLi
/kDqrRNoaZKoxT1N9JhlDJP4M59NB40w3KpEdPvryLnkntPnA05Ws46fLctDrHDC
K97a6z58jD1oP3I9plwNU//2hrzMubf+qXH7ZaUPoKSbwDS49Ok=
=G7hC
-----END PGP SIGNATURE-----
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Wed, 24 Nov 2021 07:27:04 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:59:41 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.