Debian Bug report logs -
#1003997
libksba: reproducible-builds: build path embedded in w64/ming32 build
Reported by: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Wed, 19 Jan 2022 03:54:01 UTC
Severity: normal
Tags: patch
Fixed in version libksba/1.6.0-3
Done: Andreas Metzler <ametzler@debian.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 GnuTLS Maintainers <pkg-gnutls-maint@lists.alioth.debian.org>:
Bug#1003997; Package src:libksba.
(Wed, 19 Jan 2022 03:54: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 GnuTLS Maintainers <pkg-gnutls-maint@lists.alioth.debian.org>.
(Wed, 19 Jan 2022 03:54: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: libksba
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 of is embedded in libksba:
https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/libksba.html
vs.
l.c./build/1st/l l.c./build/2/lib
ibksba-1.6.0/bui ksba-1.6.0/2nd/b
ld-i686-w64-ming uild-i686-w64-mi
This is because the default CFLAGS from dpkg-buildpackage are not
applied to the w64-ming32 builds.
The attached patch to debian/rules adds
"CFLAGS=... -ffile-prefix-map=$(CURDIR)=." to the WIN_FLAGS variable.
With this patch applied, libksba should build reproducibly on
tests.reproducible-builds.org!
Thanks for maintaining libksba!
live well,
vagrant
[0001-debian-rules-Pass-ffile-prefix-map-via-CFLAGS-in-WIN.patch (text/x-diff, inline)]
From 78df538fa2877502c3381496ac82acb595217fa1 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Wed, 19 Jan 2022 03:36:50 +0000
Subject: [PATCH] debian/rules: Pass -ffile-prefix-map via CFLAGS in WIN_FLAGS.
WIN_FLAGS does not include the standard CFLAGS from dpkg-buildflags,
which includes -ffile-prefix-map to avoid embedding the build paths in
the binaries. Adding it makes the package build reproducibly
regardless of build path.
---
debian/rules | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/debian/rules b/debian/rules
index 21ed9a5..f7f311f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -15,7 +15,7 @@ override_dh_auto_configure:
### "arch-independent" Windows builds: ###
-WIN_FLAGS=LDFLAGS="-Xlinker --no-insert-timestamp" CFLAGS="-g -Os" CPPFLAGS=
+WIN_FLAGS=LDFLAGS="-Xlinker --no-insert-timestamp" CFLAGS="-g -Os -ffile-prefix-map=$(CURDIR)=." CPPFLAGS=
override_dh_auto_build-indep:
for cpu in i686 x86_64; do \
--
2.34.1
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian GnuTLS Maintainers <pkg-gnutls-maint@lists.alioth.debian.org>:
Bug#1003997; Package src:libksba.
(Thu, 20 Jan 2022 17:15:03 GMT) (full text, mbox, link).
Acknowledgement sent
to Andreas Metzler <ametzler@bebt.de>:
Extra info received and forwarded to list. Copy sent to Debian GnuTLS Maintainers <pkg-gnutls-maint@lists.alioth.debian.org>.
(Thu, 20 Jan 2022 17:15:03 GMT) (full text, mbox, link).
Message #10 received at 1003997@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Control: tags -1 pending
On 2022-01-19 Vagrant Cascadian <vagrant@reproducible-builds.org> wrote:
[...]
> The build path of is embedded in libksba:
[...]
> The attached patch to debian/rules adds
> "CFLAGS=... -ffile-prefix-map=$(CURDIR)=." to the WIN_FLAGS variable.
[...]
Thank you, applied in GIT.
cu Andreas
--
`What a good friend you are to him, Dr. Maturin. His other friends are
so grateful to you.'
`I sew his ears on from time to time, sure'
[signature.asc (application/pgp-signature, inline)]
Added tag(s) pending.
Request was from Andreas Metzler <ametzler@bebt.de>
to 1003997-submit@bugs.debian.org.
(Thu, 20 Jan 2022 17:15:03 GMT) (full text, mbox, link).
Reply sent
to Andreas Metzler <ametzler@debian.org>:
You have taken responsibility.
(Tue, 12 Jul 2022 13:06:05 GMT) (full text, mbox, link).
Notification sent
to Vagrant Cascadian <vagrant@reproducible-builds.org>:
Bug acknowledged by developer.
(Tue, 12 Jul 2022 13:06:05 GMT) (full text, mbox, link).
Message #17 received at 1003997-close@bugs.debian.org (full text, mbox, reply):
Source: libksba
Source-Version: 1.6.0-3
Done: Andreas Metzler <ametzler@debian.org>
We believe that the bug you reported is fixed in the latest version of
libksba, 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 1003997@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Andreas Metzler <ametzler@debian.org> (supplier of updated libksba 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: Tue, 12 Jul 2022 14:42:35 +0200
Source: libksba
Architecture: source
Version: 1.6.0-3
Distribution: unstable
Urgency: medium
Maintainer: Debian GnuTLS Maintainers <pkg-gnutls-maint@lists.alioth.debian.org>
Changed-By: Andreas Metzler <ametzler@debian.org>
Closes: 1003997 1014149
Changes:
libksba (1.6.0-3) unstable; urgency=medium
.
* Also build mingw with -ffile-prefix-map=$(CURDIR)=. for reproducibility.
(Thanks, Vagrant Cascadian!) Closes: #1003997
* Run "wrap-and-sort -ast".
* 25_norevisionfromgit.diff: Stop trying to pull version info from GIT when
autoconf is run, resulting in a "-unknown" version suffix.
Closes: #1014149
* Update lintian override.
Checksums-Sha1:
40049671b40ab3955cb0f9df76426d5041e5b659 2472 libksba_1.6.0-3.dsc
faab60f4dc94440718a1118f646001672eaf8bea 15004 libksba_1.6.0-3.debian.tar.xz
Checksums-Sha256:
de87d32fced6fe9593815552043eec226aafc7e6a7f6b258c0f1dcf96adb0da5 2472 libksba_1.6.0-3.dsc
17f8f9679d0dcaaa46d9f4974d2090e23d538206c37014177146b6a5201cf414 15004 libksba_1.6.0-3.debian.tar.xz
Files:
98768284b8d33260dd794c4f998b22d2 2472 libs optional libksba_1.6.0-3.dsc
e47d39f0b84aa7a77626861445a7c023 15004 libs optional libksba_1.6.0-3.debian.tar.xz
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEE0uCSA5741Jbt9PpepU8BhUOCFIQFAmLNbQMACgkQpU8BhUOC
FITE2Q/+Nt+Gsh9hS7YZDKowyQcrsQUXQeeySj2nobnOsevcrz5C0If6YZTL56s9
4qcJD1bU7o2sOE+JYrSEWgD7C6nXBkm06PyRgFPKgvBmH/SYJSwaDkvBwrEgLbJk
QFhhi4mnGaUEmOZM+fnXcHuaKrUpDV6Et+gUfxd5YggSrNEXEne/TAJJFawf3Qjl
9hbwyOu3ZOOyCjlNzAicCFXCZzJmmPCe3cIDX+RDxOlqzdbmetyuEsrzk8T4bqsL
kWdGQSbZMU3cQdW0Qv10ms+T96XUftFdP8hEINA45nztpY2TapaLb+wj2SV5Yvus
+OMka6YNEV9CxJM4NSrPhRJVRacjubqNlPeRrv0sMM/0lB4IzFVq54b1rgqoOfV5
HSvzexUge2w9r6EaiYdtghZK3Mhitd8nhXMCrXj5Gqa6J3TFBroq+kF1n1bBelyf
aartYAsRlSu5V/VNaDoa2NAUmTPqjFs8Otoc/gYAshxgYgH2SN0jIrC2JTiUgyAT
9uoNu3B9YeNY5FLmq1brPMzAb2JagdlcY5FxTpkX7BjtiSHTFbeXYE7tv5tX1d0d
ov3HuqcQ8MY1bj8ysYCwHZb2q0yXFNtDu8dpoc9L/WurJnYTlaCILA8/55lbBGcA
l0ffHrtA3TUIMU9kEgSBTeSrS98TNCuU2ELTZl7N1WRdSNdXyeE=
=kT6P
-----END PGP SIGNATURE-----
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Sun, 14 Aug 2022 07:33:37 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 11:02:32 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.