Your message dated Thu, 21 Mar 2024 10:37:50 +0000
with message-id <[email protected]>
and subject line Bug#1058681: fixed in python-multipletau 0.3.3+ds-6
has caused the Debian Bug report #1058681,
regarding python-multipletau: please make the build reproducible
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
1058681: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1058681
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: python-multipletau
Version: 0.3.3+ds-5
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: timestamps
X-Debbugs-Cc: [email protected]
Hi,
Whilst working on the Reproducible Builds effort [0], we noticed that
python-multipletau could not be built reproducibly.
This is because the code to work out its "own" version number uses
the current build date. (It does attempt to use the creation time of
the source files, but I think pybuild is essentially resetting this
to the current time by copying it to its temporary build directories.)
Patch attached that uses SOURCE_DATE_EPOCH if available.
[0] https://reproducible-builds.org/
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` [email protected] / chris-lamb.co.uk
`-
--- a/debian/patches/reproducible-build.patch 1970-01-01 01:00:00.000000000
+0100
--- b/debian/patches/reproducible-build.patch 2023-12-14 12:33:24.343253202
+0000
@@ -0,0 +1,23 @@
+Description: Make the build reproducible
+Author: Chris Lamb <[email protected]>
+Last-Update: 2023-12-14
+
+--- python-multipletau-0.3.3+ds.orig/multipletau/_version.py
++++ python-multipletau-0.3.3+ds/multipletau/_version.py
+@@ -121,7 +121,15 @@ if True: # pragma: no cover
+ # Get the version from the previously generated `_version_save.py`
+ longversion = load_version(versionfile)
+
+- # 3. last resort: date
++ # 3. SOURCE_DATE_EPOCH
++ if longversion == "":
++ longversion = time.strftime(
++ "%Y.%m.%d-%H-%M-%S",
++ time.gmtime(int(os.environ.get('SOURCE_DATE_EPOCH', time.time())))
++ )
++ print("Using SOURCE_DATE_EPOCH time as version:
{}".format(longversion))
++
++ # 4. last resort: date
+ if longversion == "":
+ print("Could not determine version. Reason:")
+ print(traceback.format_exc())
--- a/debian/patches/series 2023-12-14 10:22:18.989780489 +0000
--- b/debian/patches/series 2023-12-14 12:33:23.379240195 +0000
@@ -1,3 +1,4 @@
examples_location.patch
packaged-mathjax.patch
python3.12.patch
+reproducible-build.patch
--- End Message ---
--- Begin Message ---
Source: python-multipletau
Source-Version: 0.3.3+ds-6
Done: Timo Röhling <[email protected]>
We believe that the bug you reported is fixed in the latest version of
python-multipletau, 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 [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Timo Röhling <[email protected]> (supplier of updated python-multipletau
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 [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Thu, 21 Mar 2024 11:27:40 +0100
Source: python-multipletau
Architecture: source
Version: 0.3.3+ds-6
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <[email protected]>
Changed-By: Timo Röhling <[email protected]>
Closes: 1058681 1067143
Changes:
python-multipletau (0.3.3+ds-6) unstable; urgency=medium
.
* Team upload.
.
[ Alexandre Mestiashvili ]
* Include d/patches/reproducible-build.patch (Closes: #1058681)
.
[ Timo Röhling ]
* Make autopkgtest depend on python3-all (Closes: #1067143)
Checksums-Sha1:
38a18763ade3e8fee3d93ffca2bab8d62a43a3a3 2344 python-multipletau_0.3.3+ds-6.dsc
9f2627635c1b2ec685dbd6ae275d9799b142d3d2 5460
python-multipletau_0.3.3+ds-6.debian.tar.xz
Checksums-Sha256:
f228890b90d3eb155517704a9c5cf59eb866e7bb0d1b5cef3472ebc0e82f2df4 2344
python-multipletau_0.3.3+ds-6.dsc
79d9ceb9d46d8ce4f985bfd6efe92413a5ebbd73653db93425215f3fa6956dbd 5460
python-multipletau_0.3.3+ds-6.debian.tar.xz
Files:
c97c641c6b5987cfc73a051b0ae7cb11 2344 python optional
python-multipletau_0.3.3+ds-6.dsc
9d5980fa6b53a13b05985e2dd413e63e 5460 python optional
python-multipletau_0.3.3+ds-6.debian.tar.xz
-----BEGIN PGP SIGNATURE-----
iQHIBAEBCgAyFiEEJvtDgpxjkjCIVtam+C8H+466LVkFAmX8DOQUHHJvZWhsaW5n
QGRlYmlhbi5vcmcACgkQ+C8H+466LVlqgwv8DHMui8URzf87/50maV0RG+dSwQr7
/kJbqLYE+ehPAexli1vp/w9a0d00WMgdr9aK8AuPBOxIBl/f4MUTCCbr1YL9alnE
F3oSbs1bcECroSeSptq8i7/aLon+X2WadRuZ1OjsIlAhrOEev/I+3sFYgHhs2bpW
b3K+NeqiCGWiiXnM+7pBpMyyTdw2YZFABKJhrDHKRNojH09HLHdejx+Pk9WsLCmp
tnjqztetH+Ravn8xnrsOYyhlhAYSgBH9jzM6YVGtke8+amFgS33yupQB+dygUID6
3awgfkSEzdy46DcfePiQE5mis7/I7ek1ROnuLChABtk3PM9Nc+DMJQ03bk7vHZK+
NqDWLZByC8OScX0yJVSFn6R5+MyJXGFnYGAtZyxMGtnU0NQLr+7kbZLSs2zjHYfJ
UFbjPzPbc00OoITxRd9xXr2A5Pu288WUeYEmGEEopN5Jj4B7T/Nmzb6BwZiwzwBm
Uyo9bu48xUcVZ3XDRY4iN50YUYjvq4nMGBOz
=mVWM
-----END PGP SIGNATURE-----
pgpVOj3g1x7a1.pgp
Description: PGP signature
--- End Message ---