Debian Bug report logs -
#1024292
swift-im: reproducible builds: Embeds build date in /usr/bin/swiften-config
Reported by: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Thu, 17 Nov 2022 04:48:02 UTC
Severity: normal
Tags: patch
Fixed in version swift-im/5.0~alpha2.145.g12d031cf8+dfsg-3
Done: Tobias Frost <tobi@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 XMPP Maintainers <pkg-xmpp-devel@alioth-lists.debian.net>:
Bug#1024292; Package src:swift-im.
(Thu, 17 Nov 2022 04:48: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 XMPP Maintainers <pkg-xmpp-devel@alioth-lists.debian.net>.
(Thu, 17 Nov 2022 04:48: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: swift-im
Severity: normal
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-bugs@lists.alioth.debian.org
The build date is embedded in /usr/bin/swiften-config:
https://tests.reproducible-builds.org/debian/rb-pkg/bookworm/amd64/diffoscope-results/swift-im.html
20221108
vs.
20231213
The attached patch to debian/rules fixes this by creating a
VERSION.swift file with the upstream version before running the build,
which is read to get the version information so that it does not fall
back to a date for a version string.
According to my local tests, With this patch applied swift-im should
build reproducibly on tests.reproducible-builds.org!
Thanks for maintaining swift-im!
live well,
vagrant
[0001-debian-rules-Create-VERSION.swift-file-before-runnin.patch (text/x-diff, inline)]
From 0b955265cd44036d6b878446512f57fa0a2b70b7 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Thu, 17 Nov 2022 04:39:25 +0000
Subject: [PATCH] debian/rules: Create VERSION.swift file before running build.
Without this, the date of the build is embedded as a version.
---
debian/rules | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/debian/rules b/debian/rules
index b76bc1a..e26a67d 100755
--- a/debian/rules
+++ b/debian/rules
@@ -30,8 +30,12 @@ endif
override_dh_auto_build:
mkdir -p $(HOME)
+ echo $(DEB_UPSTREAM_VERSION) > VERSION.swift
scons --jobs=$(shell nproc) $(SCONS_FLAGS) Swiften
override_dh_auto_install:
scons $(SCONS_FLAGS) $(SCONS_INSTALL_FLAGS) $(SCONS_INSTALL_BASE) Swiften
+override_dh_auto_clean:
+ rm -f VERSION.swift
+ dh_auto_clean
--
2.38.1
[signature.asc (application/pgp-signature, inline)]
Message sent on
to Vagrant Cascadian <vagrant@reproducible-builds.org>:
Bug#1024292.
(Sat, 04 Feb 2023 09:45:09 GMT) (full text, mbox, link).
Message #8 received at 1024292-submitter@bugs.debian.org (full text, mbox, reply):
Control: tag -1 pending
Hello,
Bug #1024292 in swift-im reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:
https://salsa.debian.org/xmpp-team/swift-im/-/commit/9713738685f7cfc3909a18e0512232a80d254e62
------------------------------------------------------------------------
Make build reproducible by pre-generating VERSION.swift.
Thanks to Vagrant for proposing a fix! Closes: #1024292
------------------------------------------------------------------------
(this message was generated automatically)
--
Greetings
https://bugs.debian.org/1024292
Added tag(s) pending.
Request was from Tobias Frost <noreply@salsa.debian.org>
to 1024292-submitter@bugs.debian.org.
(Sat, 04 Feb 2023 09:45:09 GMT) (full text, mbox, link).
Reply sent
to Tobias Frost <tobi@debian.org>:
You have taken responsibility.
(Sat, 04 Feb 2023 13:24:06 GMT) (full text, mbox, link).
Notification sent
to Vagrant Cascadian <vagrant@reproducible-builds.org>:
Bug acknowledged by developer.
(Sat, 04 Feb 2023 13:24:06 GMT) (full text, mbox, link).
Message #15 received at 1024292-close@bugs.debian.org (full text, mbox, reply):
Source: swift-im
Source-Version: 5.0~alpha2.145.g12d031cf8+dfsg-3
Done: Tobias Frost <tobi@debian.org>
We believe that the bug you reported is fixed in the latest version of
swift-im, 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 1024292@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Tobias Frost <tobi@debian.org> (supplier of updated swift-im 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: Sat, 04 Feb 2023 14:02:27 +0100
Source: swift-im
Architecture: source
Version: 5.0~alpha2.145.g12d031cf8+dfsg-3
Distribution: unstable
Urgency: medium
Maintainer: Debian XMPP Maintainers <pkg-xmpp-devel@alioth-lists.debian.net>
Changed-By: Tobias Frost <tobi@debian.org>
Closes: 1024292 1024553
Changes:
swift-im (5.0~alpha2.145.g12d031cf8+dfsg-3) unstable; urgency=medium
.
* Make build reproducible by pre-generating VERSION.swift. Thanks
to Vagrant for proposing a fix! (Closes: #1024292)
* Fix generated version.h, see patch fix-version-h.patch and d/rules.
(Closes: #1024553)
* Bump S-V to 4.6.2, no changes.
* Bump d/copyright years.
Checksums-Sha1:
0f30b69ca2ee1a543fa97cece6f60e358a958ee5 2669 swift-im_5.0~alpha2.145.g12d031cf8+dfsg-3.dsc
47201ddab6df58aad545f103b718d1e59efd1940 11244 swift-im_5.0~alpha2.145.g12d031cf8+dfsg-3.debian.tar.xz
6624b4a2ae05cd45ce413e2b85f19bba3a2a8254 15839 swift-im_5.0~alpha2.145.g12d031cf8+dfsg-3_amd64.buildinfo
Checksums-Sha256:
d86d6f6cb7be208bb665054cccb87ad8e6485fac41f17177ad76e96b1a357b3c 2669 swift-im_5.0~alpha2.145.g12d031cf8+dfsg-3.dsc
d61a7b42143eee9bd4b3bf5cfccf5780f2d0a5268120a067e81edb1b9e899f5f 11244 swift-im_5.0~alpha2.145.g12d031cf8+dfsg-3.debian.tar.xz
0faa8719b1feacfb0cb163f1bf27b6941b1d32f9a71f136c4c8179c9283d903d 15839 swift-im_5.0~alpha2.145.g12d031cf8+dfsg-3_amd64.buildinfo
Files:
a61c7001ca16e690329486f08b0b0f09 2669 net optional swift-im_5.0~alpha2.145.g12d031cf8+dfsg-3.dsc
b065739bb3f37f6fed9c00d207a28317 11244 net optional swift-im_5.0~alpha2.145.g12d031cf8+dfsg-3.debian.tar.xz
1ff24839f1d8679568b2587297b58611 15839 net optional swift-im_5.0~alpha2.145.g12d031cf8+dfsg-3_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCAAdFiEE/d0M/zhkJ3YwohhskWT6HRe9XTYFAmPeWCoACgkQkWT6HRe9
XTa2ThAAsH2PlMftDheK+oOLg97E9OUXOhSDToZmsnBW9MCl9R1K8wG8h2vyAFW4
m4oeFo20XYyOktz/FO2Kkmb3ym1TSOp2gFwGRLSbxxFpXJxGorSPcTmE6lFDXhcZ
LXn64aSJQ5oYWuTd0QnhmSw22v5iXIiagfZqWFLrGzwQHVcq9lJp+IEZoBdzYEZh
2XwAD3Jmyab7uIhSk7MsJPorCQODddhKHki19EIz9mzuBm6lHZmteWem4qXxXv3A
uvOozmehdWivpIodI1Y/8MSWZo3WBQDzXO5oG6wYAes0+RZptCPuHL+RAR82uVq5
gJUOwQ/h3iOoa5ddGaWT+wcVWzBlnDrfp0Req5KIInID93xwW4VljFXApw7+nwqX
INDEoPHrKQRiYnwL17BVxzHXfHufSi1w0/wepuyoL/rZ7MQEiGmmf6wE/3bbf7GB
ZsJdRq2xrqXnoMIcSD2PrPGGljMZ169sr78bTaiMAyXOMjFXUYqnn5kY6urmBRJX
YrPwGRmp4wU5QdA9XYpvOPbapMFPxtjnqfocDvJWwpsNxpagBvu9C5j1pQytiZGP
ECYrm11s8DQJ9OyjD8xmsMSKciFM73MemSq53s4+OjoidBdc0Ysfa8u0z8nx25Z6
bAIlFRZtsilvP4m4nL+pt5u+nm3vHFnmGEm5Hx7M49hpw0hEfqg=
=YzTr
-----END PGP SIGNATURE-----
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Thu, 09 Mar 2023 07:34:10 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:31:40 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.