Debian Bug report logs -
#1029807
borgbackup2: reproducible-builds: date in manpages
Reported by: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Sat, 28 Jan 2023 01:09:02 UTC
Severity: normal
Tags: patch
Fixed in version borgbackup2/2.0.0b5-1
Done: Helmut Grohne <helmut@subdivi.de>
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, Freexian Packaging Team <team+freexian@tracker.debian.org>:
Bug#1029807; Package src:borgbackup2.
(Sat, 28 Jan 2023 01:09: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, Freexian Packaging Team <team+freexian@tracker.debian.org>.
(Sat, 28 Jan 2023 01:09: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: borgbackup2
Severity: normal
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-bugs@lists.alioth.debian.org
The date is embedded in various manpages:
https://tests.reproducible-builds.org/debian/rb-pkg/bookworm/amd64/diffoscope-results/borgbackup2.html
/usr/share/man/man1/borg2-benchmark-cpu.1.gz
.TH·"BORG-BENCHMARK-CPU"·1·"2023-01-27"·""·"borg·backup·tool"
vs.
.TH·"BORG-BENCHMARK-CPU"·1·"2024-02-29"·""·"borg·backup·tool"
The attached patch fixes this by modifying setup_docs.py to use
SOURCE_DATE_EPOCH for a deterministic timestamp.
According to my local tests, with these patches applied borgbackup2 should
build reproducibly on tests.reproducible-builds.org!
Thanks for maintaining borgbackup2!
live well,
vagrant
[manpages-use-deterministic-timestamp.patch (text/x-diff, inline)]
Use deterministic timestamp if SOURCE_DATE_EPOCH is set, falling back
to current time.
https://reproducible-builds.org/docs/source-date-epoch/
Index: borgbackup2/setup_docs.py
===================================================================
--- borgbackup2.orig/setup_docs.py
+++ borgbackup2/setup_docs.py
@@ -7,6 +7,7 @@ import sys
import textwrap
from collections import OrderedDict
from datetime import datetime
+import time
from setuptools import Command
@@ -470,7 +471,9 @@ class build_man(Command):
self.write_heading(write, description, double_sided=True)
# man page metadata
write(":Author: The Borg Collective")
- write(":Date:", datetime.utcnow().date().isoformat())
+ write(":Date:", datetime.utcfromtimestamp(
+ int(os.environ.get('SOURCE_DATE_EPOCH',
+ time.time()))).date().isoformat())
write(":Manual section: 1")
write(":Manual group: borg backup tool")
write()
[signature.asc (application/pgp-signature, inline)]
Reply sent
to Helmut Grohne <helmut@subdivi.de>:
You have taken responsibility.
(Wed, 01 Mar 2023 12:06:13 GMT) (full text, mbox, link).
Notification sent
to Vagrant Cascadian <vagrant@reproducible-builds.org>:
Bug acknowledged by developer.
(Wed, 01 Mar 2023 12:06:13 GMT) (full text, mbox, link).
Message #10 received at 1029807-close@bugs.debian.org (full text, mbox, reply):
Source: borgbackup2
Source-Version: 2.0.0b5-1
Done: Helmut Grohne <helmut@subdivi.de>
We believe that the bug you reported is fixed in the latest version of
borgbackup2, 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 1029807@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Helmut Grohne <helmut@subdivi.de> (supplier of updated borgbackup2 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: Wed, 01 Mar 2023 12:24:53 +0100
Source: borgbackup2
Architecture: source
Version: 2.0.0b5-1
Distribution: unstable
Urgency: medium
Maintainer: Freexian Packaging Team <team+freexian@tracker.debian.org>
Changed-By: Helmut Grohne <helmut@subdivi.de>
Closes: 1029807
Changes:
borgbackup2 (2.0.0b5-1) unstable; urgency=medium
.
[ Helmut Grohne ]
* Prominently explain that we package a beta release
* New upstream version 2.0.0b5
+ Drop patches fixdocs.patch and bash-completion-update.patch
+ Rebase patches
+ Require python3-platformdirs (>= 2.6)
.
[ Vagrant Cascadian ]
* Make the build reproducible (Closes: #1029807)
.
[ Helmut Grohne ]
* Only run some of the tests under fakeroot to avoid flakiness
Checksums-Sha1:
42533f9d4aa9f0fe15dfa8a6aae2ad36a4b510e7 3142 borgbackup2_2.0.0b5-1.dsc
0f6c65d0f017ccb161bce329367f3bbbd7e820ec 2914794 borgbackup2_2.0.0b5.orig.tar.gz
4a47d2bbb3f1a7c4c544c2908495455d120089f7 862 borgbackup2_2.0.0b5.orig.tar.gz.asc
9896facf4794507d6eb9ee5100512269ba30bfbb 25180 borgbackup2_2.0.0b5-1.debian.tar.xz
Checksums-Sha256:
96b7c3f87e6ddada49a6a6dbef7e43b4af8524102e5ba8746fee79791b77c02b 3142 borgbackup2_2.0.0b5-1.dsc
4b06edcb147de232f1624a5a785387ed4a4f6a47f7235b081dcf92c8ad21a537 2914794 borgbackup2_2.0.0b5.orig.tar.gz
9181375de6e45f02bc5a0d50465a375ff6e1620de5bb81c7351a45ff1aee7fff 862 borgbackup2_2.0.0b5.orig.tar.gz.asc
fb320faa21c210c0ec6977cdb5224330ae6edfa4f413ccd7a98a2e01614d61c5 25180 borgbackup2_2.0.0b5-1.debian.tar.xz
Files:
4342c3db3ecbd773d184bc891b726108 3142 admin optional borgbackup2_2.0.0b5-1.dsc
cdc877ff7a1b8ce798f553c6a2ceb4d1 2914794 admin optional borgbackup2_2.0.0b5.orig.tar.gz
79d92af5cd74642d2ba4cf9e0e57f5d3 862 admin optional borgbackup2_2.0.0b5.orig.tar.gz.asc
39d01d24cb48399630eb62678d0d109b 25180 admin optional borgbackup2_2.0.0b5-1.debian.tar.xz
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEETMLS2QqNFlTb+HOqLRqqzyREREIFAmP/ObMACgkQLRqqzyRE
REI6zw/+I1hJiXf+u4wbxk+EEd/nUk07t1rebYBcfObSMlLZj62gqlns0255bfrM
tQTnw2FKWpxNPxXzMjVV6RRNkByUPpTDyN0V95UckJQk/HEkU6s1WVDqDaHakSnB
NozyJ3x8mYC0FiXmpY+8OYG7+KIhIdjduoNEyhUdkasrAQQ0+ITIU9rDsC1ISg9+
P/dwHnPEtMXd3JFfCVRb60Cw+Ln+vdln4+SBkwjH6tdWQApxPvZs/jKTYl3NxtyY
cIEIPNe1Oo249i6YuOLGUUsdaGWVWeb9T3+hfiDcwku3VbmAH0yr5/DQhFqOetfJ
5M7/kicPVTFhrtWPsCbLD4ShU6JhjJIYzuwmWBOv4jP0oQ38zk46QlCCc3S/JA55
KepAVdCc0lAWX5vCteHi+38hdvi0gVRhjr2geHHGnrIEpFl0xX5hyU7KWYeV3c7w
wfwObSN5QBSkv/zPbQWgxQp5g3wj66JOAnBuFbBDL9GB0Z9PV7A1CJQIBcyunhY+
pDLbjxQ17fq/FXEuMblNlWzNpkpFOeq8bYg83yk4YzbKeDBmjgLbXrtC0Efr3HMK
jB5kfeDHXEaNe/upP56GjdwYn7+1g/aMCwwQGxgu1nYL1b8rXCpO6jEXoO8U9Roz
vW3Sm8Zb7WVTRUmGkFZkomGz7NHrbh0NCuv+42mz+jT55Y2Mqyw=
=fz4O
-----END PGP SIGNATURE-----
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Sat, 08 Apr 2023 07:25: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 10:58:38 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.