Debian Bug report logs -
#1035394
lcov: reproducible-builds: timezone-dependent timestamps on /usr/bin/*
Reply or subscribe to this bug.
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, reproducible-bugs@lists.alioth.debian.org, Alastair McKinstry <mckinstry@debian.org>:
Bug#1035394; Package src:lcov.
(Tue, 02 May 2023 17:27: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, Alastair McKinstry <mckinstry@debian.org>.
(Tue, 02 May 2023 17:27: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: lcov
Severity: normal
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: timestamps timezone
X-Debbugs-Cc: reproducible-bugs@lists.alioth.debian.org
The build timestamp is embedded in various /usr/bin/* files is timezone
dependent:
https://tests.reproducible-builds.org/debian/rb-pkg/bookworm/amd64/diffoscope-results/lcov.html
lcov_1.16-1_all.deb
-rwxr-xr-x···0·root·········(0)·root·········(0)·····4568·2022-06-06·08:19:45.000000·./usr/bin/gendesc
vs.
-rwxr-xr-x···0·root·········(0)·root·········(0)·····4568·2022-06-05·18:19:45.000000·./usr/bin/gendesc
The attached patch fixes this by removing a call to touch from the
updateversion.pl script.
According to my local tests, with this patch applied lcov should build
reproducibly on tests.reproducible-builds.org!
Thanks for maintaining lcov!
live well,
vagrant
[0001-bin-updateversion.pl-Avoid-setting-the-timestamp-bui.patch (text/x-diff, inline)]
From f5e0643c16b6980a32602dbef893f5017418d936 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Tue, 2 May 2023 10:09:42 -0700
Subject: [PATCH] bin/updateversion.pl: Avoid setting the timestamp built
files.
The reference file may have a timezone-dependent timestamp.
https://reproducible-builds.org/docs/timezones/
---
bin/updateversion.pl | 1 -
1 file changed, 1 deletion(-)
diff --git a/bin/updateversion.pl b/bin/updateversion.pl
index 04b038d..29427b9 100755
--- a/bin/updateversion.pl
+++ b/bin/updateversion.pl
@@ -141,7 +141,6 @@ sub update_bin_tool($)
close(IN);
chmod(oct($date[2]), "$filename.new");
system("mv", "-f", "$filename.new", "$filename");
- system("touch", "$filename", "-t", $date[1]);
}
sub update_txt_file($)
--
2.39.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:
Sat Aug 19 14:57:45 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.