Debian Bug report logs -
#974911
debian-policy: Date in documentation varies with timezone
Reported by: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Mon, 16 Nov 2020 12:06:01 UTC
Severity: normal
Tags: patch
Found in version debian-policy/4.5.0.3
Fixed in version debian-policy/4.5.1.0
Done: Sean Whitton <spwhitton@spwhitton.name>
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 Policy Editors <debian-policy@lists.debian.org>:
Bug#974911; Package debian-policy.
(Mon, 16 Nov 2020 12:06: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 Policy Editors <debian-policy@lists.debian.org>.
(Mon, 16 Nov 2020 12:06:04 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Package: debian-policy
Version: 4.5.0.3
Severity: normal
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: timezone
X-Debbugs-Cc: reproducible-bugs@lists.alioth.debian.org
While the Makefile gets a consistent timestamp from debian/changelog,
the date may vary depending on timezone:
43 <p>This·is·Debian·Policy·version·4.5.0.3,·released·on·2020-08-19.</p> 43 <p>This·is·Debian·Policy·version·4.5.0.3,·released·on·2020-08-20.</p>
The attached patch passes the --utc argument to date, to ensure a
consistent date regardless of the timezone of the build process.
Thanks for maintaining debian-policy!
live well,
vagrant
[0001-Makefile-Always-use-UTC-date.patch (text/x-diff, inline)]
From 80b4be1a6eeb53ca1e66603efd4c110cbc59d5e4 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Mon, 16 Nov 2020 11:49:16 +0000
Subject: [PATCH] Makefile: Always use UTC date.
While a consistent time was returned, depending on the timezone
the package was built in can cause the date to vary:
https://reproducible-builds.org/docs/source-date-epoch/
---
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 5da5b96..5640fb8 100644
--- a/Makefile
+++ b/Makefile
@@ -9,7 +9,7 @@
# Basic package information.
PACKAGE := $(shell dpkg-parsechangelog -SSource)
TIMESTAMP := $(shell dpkg-parsechangelog -STimestamp)
-DATE := $(shell date -d '@$(TIMESTAMP)' +'%Y-%m-%d')
+DATE := $(shell date --utc -d '@$(TIMESTAMP)' +'%Y-%m-%d')
VERSION := $(shell dpkg-parsechangelog -SVersion)
# Translated languages
--
2.29.2
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Policy Editors <debian-policy@lists.debian.org>:
Bug#974911; Package debian-policy.
(Mon, 16 Nov 2020 15:09:02 GMT) (full text, mbox, link).
Acknowledgement sent
to Holger Levsen <holger@layer-acht.org>:
Extra info received and forwarded to list. Copy sent to Debian Policy Editors <debian-policy@lists.debian.org>.
(Mon, 16 Nov 2020 15:09:02 GMT) (full text, mbox, link).
Message #10 received at 974911@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
On Mon, Nov 16, 2020 at 04:02:54AM -0800, Vagrant Cascadian wrote:
> While a consistent time was returned, depending on the timezone
> the package was built in can cause the date to vary:
> diff --git a/Makefile b/Makefile
> -DATE := $(shell date -d '@$(TIMESTAMP)' +'%Y-%m-%d')
> +DATE := $(shell date --utc -d '@$(TIMESTAMP)' +'%Y-%m-%d')
as debian-policy and developers-reference share quite some code I just checked
the Makefile of developers-reference and to my joy I found:
DATE ?= $(shell date -u -d '@$(TIMESTAMP)' +'%Y-%m-%d')
:)
--
cheers,
Holger
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ holger@(debian|reproducible-builds|layer-acht).org
⢿⡄⠘⠷⠚⠋⠀ PGP fingerprint: B8BF 5413 7B09 D35C F026 FE9D 091A B856 069A AA1C
⠈⠳⣄
If secure encryption is outlawed, only criminals will have it.
[signature.asc (application/pgp-signature, inline)]
Added tag(s) pending.
Request was from Sean Whitton <spwhitton@spwhitton.name>
to control@bugs.debian.org.
(Mon, 16 Nov 2020 23:54:05 GMT) (full text, mbox, link).
Reply sent
to Sean Whitton <spwhitton@spwhitton.name>:
You have taken responsibility.
(Tue, 17 Nov 2020 00:36:11 GMT) (full text, mbox, link).
Notification sent
to Vagrant Cascadian <vagrant@reproducible-builds.org>:
Bug acknowledged by developer.
(Tue, 17 Nov 2020 00:36:11 GMT) (full text, mbox, link).
Message #17 received at 974911-close@bugs.debian.org (full text, mbox, reply):
Source: debian-policy
Source-Version: 4.5.1.0
Done: Sean Whitton <spwhitton@spwhitton.name>
We believe that the bug you reported is fixed in the latest version of
debian-policy, 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 974911@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Sean Whitton <spwhitton@spwhitton.name> (supplier of updated debian-policy 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: Mon, 16 Nov 2020 17:05:43 -0700
Source: debian-policy
Architecture: source
Version: 4.5.1.0
Distribution: unstable
Urgency: medium
Maintainer: Debian Policy Editors <debian-policy@lists.debian.org>
Changed-By: Sean Whitton <spwhitton@spwhitton.name>
Closes: 955005 959909 971023 973491 974911
Changes:
debian-policy (4.5.1.0) unstable; urgency=medium
.
* Policy: Relax requirements on copying copyright notices into d/copyright
Wording: Sean Whitton <spwhitton@spwhitton.name>
Seconded: Scott Kitterman <debian@kitterman.com>
Seconded: Joerg Jaspert <joerg@debian.org>
Closes: #955005
* Policy: Forbid vendor-specific series files
Wording: Sean Whitton <spwhitton@spwhitton.name>
Seconded: gregor herrmann <gregoa@debian.org>
Seconded: Graham Inggs <ginggs@debian.org>
Closes: #959909
* Policy: Clarification about colons in version numbers
Wording: Sean Whitton <spwhitton@spwhitton.name>
Seconded: Mattia Rizzolo <mattia@debian.org>
Seconded: Holger Levsen <holger@layer-acht.org>
Closes: #971023
* Replace `/usr/share/package/copyright` -> `/usr/share/PACKAGE/copyright`.
Thanks to Guillem Jover for the suggestion.
* Fix manpage section in reference to systemd.unit(5) (Closes: #973491).
Thanks to Martin Schwarz for the report.
* Makefile: Always use UTC date (Closes: #974911).
Thanks to Vagrant Cascadian for the patch.
Checksums-Sha1:
2508f26a0cca6ad3d1e9dec40371c9ff4c112be4 2052 debian-policy_4.5.1.0.dsc
c8eec77157ba65fb7807793eb0f173ea545ae9f1 542620 debian-policy_4.5.1.0.tar.xz
Checksums-Sha256:
3c57f6b59396025ded7056da16ddb90cbe0fe4d83a67b3e9d2ad48b65e3cf396 2052 debian-policy_4.5.1.0.dsc
ec9d45ebedef668aac1c4a35c6123c85826f272f91915f7af8ac462efd75763e 542620 debian-policy_4.5.1.0.tar.xz
Files:
2eabf77f796c4a40c95b3ad7220578e3 2052 doc optional debian-policy_4.5.1.0.dsc
615d36bc3cbe6e47d518e96ce6ee5a9c 542620 doc optional debian-policy_4.5.1.0.tar.xz
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEm5FwB64DDjbk/CSLaVt65L8GYkAFAl+zFIUACgkQaVt65L8G
YkCZiw/7BGyNNcUSYEWCNKXCpxXbNgx6IWCzzgF6LA5+rrLCKv8bGBf1W0CQ2f/l
rKqoZsiciR4IJw+zcTUN7ywb5AbX5YGV7ljKF/IURURt8vs2EQQoY7lLR7NYdd74
eUjVZgsSQTtOozlyamMJjvFesKNGp3oYueDRhj2AKo3doCRFwSSb9pvzZRnPLv0/
RA0igbhvOmKvk29Y2F0Vl4ftthe7gDCX/Sqv1u5wl79XvCUghr3rA2ToB9kj+sTO
u3ymW5fd2Wx2aWRyNVcCFOFmDftcANZRY7ptInbSlnCpl5qZI9hlaRF+4hOCl4ir
F0otR/S4aNZ86Km8/sFfiohgyeJvEz8JsRR8Mf5fhTRG4a3S6BY1T1e7VsuQqxvs
J3qivRoHnAtLSy9xTdM7YifG5H8xapqHQcbw5UERMyKp39qnVTc9KVl0fnjHzdZT
Ln0SWUh9g/wsWDKVqHT+zxDeZf4HCD9Oesy4gyJAKzMm6/wXwmk1sr0GV7KB+ZZO
2+f3UH77r+MR48iMo9WO0J3To2uq5uSI+5Y/3LA0xYns026wz4qmseH+ytCmJg21
qNzndc4lFXC+ginMYnZHiaAAuOwQGmYVPLnnMwX845Gt5b9yNhRRCTTSKHj57zrL
6bomZXTUkJKgcrCakYicMhl4r6FH9WSOKhVTaVJptDRTyXDsxDY=
=F2iV
-----END PGP SIGNATURE-----
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Sun, 20 Dec 2020 07:25:27 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:57:57 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.