Debian Bug report logs -
#1020877
edid-decode: reproducible builds: timezone dependent timestamps embedded in /usr/bin/edid-decode
Reply or subscribe to this bug.
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, reproducible-bugs@lists.alioth.debian.org, Andrej Shadura <andrewsh@debian.org>:
Bug#1020877; Package src:edid-decode.
(Tue, 27 Sep 2022 20:42: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, Andrej Shadura <andrewsh@debian.org>.
(Tue, 27 Sep 2022 20:42: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: edid-decode
Severity: normal
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-bugs@lists.alioth.debian.org
A timezone-dependent timestamp is embedded in /usr/games/edid-decode:
https://tests.reproducible-builds.org/debian/rb-pkg/bookworm/amd64/diffoscope-results/edid-decode.html
2022-03-29·21:29:27
vs.
2022-03-30·23:29:27
The attached patch to debian/rules fixes this by ensuring the date is
output in the UTC timezone.
According to my local tests, with this patch applied, edid-decode should
build reproducibly on tests.reproducible-builds.org!
Thanks for maintaining edid-decode!
live well,
vagrant
[0001-debian-rules-Use-UTC-date-to-ensure-reproducible-bui.patch (text/x-diff, inline)]
From 0fe1154a34f3c54e8e7572a2d643400acb76dfca Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Tue, 27 Sep 2022 20:33:21 +0000
Subject: [PATCH] debian/rules: Use UTC date to ensure reproducible builds
regardless of timezone.
https://reproducible-builds.org/docs/timezones/
---
debian/rules | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/debian/rules b/debian/rules
index 790d3bd..6a9cf70 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,4 +7,4 @@ include /usr/share/dpkg/pkg-info.mk
dh $@
override_dh_auto_build:
- dh_auto_build -- sha=-DSHA=$(lastword $(subst ., ,$(DEB_VERSION_UPSTREAM))) date=-DDATE=\""$(shell date -d@$(SOURCE_DATE_EPOCH) '+%F %T')"\"
+ dh_auto_build -- sha=-DSHA=$(lastword $(subst ., ,$(DEB_VERSION_UPSTREAM))) date=-DDATE=\""$(shell date -u -d@$(SOURCE_DATE_EPOCH) '+%F %T')"\"
--
2.37.2
[signature.asc (application/pgp-signature, inline)]
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Wed May 17 13:28:17 2023;
Machine Name:
bembo
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.