Debian Bug report logs - #990914
lcov: reproducible builds: Embedded timestamps in manpages

version graph

Package: src:lcov; Maintainer for src:lcov is Alastair McKinstry <mckinstry@debian.org>;

Reported by: Vagrant Cascadian <vagrant@reproducible-builds.org>

Date: Sun, 11 Jul 2021 01:21:12 UTC

Severity: normal

Tags: patch

Fixed in version lcov/1.15-2

Done: Alastair McKinstry <mckinstry@debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, reproducible-bugs@lists.alioth.debian.org, Alastair McKinstry <mckinstry@debian.org>:
Bug#990914; Package src:lcov. (Sun, 11 Jul 2021 01:21:14 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>. (Sun, 11 Jul 2021 01:21:14 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Vagrant Cascadian <vagrant@reproducible-builds.org>
To: submit@bugs.debian.org
Subject: lcov: reproducible builds: Embedded timestamps in manpages
Date: Sat, 10 Jul 2021 18:20:46 -0700
[Message part 1 (text/plain, inline)]
Source: lcov
Severity: normal
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-bugs@lists.alioth.debian.org

The build timestamp is embedded in various manpages:

  https://tests.reproducible-builds.org/debian/rb-pkg/bullseye/amd64/diffoscope-results/lcov.html

  ./usr/share/man/man1/gendesc.1.gz

  .TH·gendesc·1·"LCOV·1.14"·2021\-06\-13·"User·Manuals"
  vs.
  .TH·gendesc·1·"LCOV·1.14"·2022\-07\-16·"User·Manuals"


The attached patch fixes this by changing updateversion.pl to use the
date specified by the SOURCE_DATE_EPOCH environment variable, which is
set by dpkg when building packages:

  https://reproducible-builds.org/docs/source-date-epoch/


With this patch applied, lcov should be reproducible on
tests.reproducible-builds.org.


Thanks for maintaining lcov!


live well,
  vagrant
[0001-updateversion.pl-Add-support-for-SOURCE_DATE_EPOCH-t.patch (text/x-diff, inline)]
From a19a51175995aee46892da20ee099071a5b459dc Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Sun, 11 Jul 2021 00:56:24 +0000
Subject: [PATCH] updateversion.pl: Add support for SOURCE_DATE_EPOCH to
 update_man_page function.

https://reproducible-builds.org/docs/source-date-epoch/
---
 bin/updateversion.pl | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/bin/updateversion.pl b/bin/updateversion.pl
index 19db81e..395b3c4 100755
--- a/bin/updateversion.pl
+++ b/bin/updateversion.pl
@@ -2,6 +2,7 @@
 
 use strict;
 use warnings;
+use POSIX qw(strftime);
 
 use File::Basename;
 
@@ -98,7 +99,9 @@ sub update_man_page($)
 {
 	my ($filename) = @_;
 	my @date = get_file_info($filename);
-	my $date_string = $date[0];
+	# Support SOURCE_DATE_EPOCH for date:
+	# https://reproducible-builds.org/docs/source-date-epoch/
+	my $date_string = strftime("%Y-%m-%d", gmtime($ENV{SOURCE_DATE_EPOCH} || $date[0]));
 	local *IN;
 	local *OUT;
 
-- 
2.32.0

[signature.asc (application/pgp-signature, inline)]

Reply sent to Alastair McKinstry <mckinstry@debian.org>:
You have taken responsibility. (Wed, 25 May 2022 16:57:05 GMT) (full text, mbox, link).


Notification sent to Vagrant Cascadian <vagrant@reproducible-builds.org>:
Bug acknowledged by developer. (Wed, 25 May 2022 16:57:05 GMT) (full text, mbox, link).


Message #10 received at 990914-close@bugs.debian.org (full text, mbox, reply):

From: Debian FTP Masters <ftpmaster@ftp-master.debian.org>
To: 990914-close@bugs.debian.org
Subject: Bug#990914: fixed in lcov 1.15-2
Date: Wed, 25 May 2022 16:53:12 +0000
Source: lcov
Source-Version: 1.15-2
Done: Alastair McKinstry <mckinstry@debian.org>

We believe that the bug you reported is fixed in the latest version of
lcov, 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 990914@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Alastair McKinstry <mckinstry@debian.org> (supplier of updated lcov 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: SHA256

Format: 1.8
Date: Wed, 25 May 2022 14:12:59 +0100
Source: lcov
Architecture: source
Version: 1.15-2
Distribution: unstable
Urgency: medium
Maintainer: Alastair McKinstry <mckinstry@debian.org>
Changed-By: Alastair McKinstry <mckinstry@debian.org>
Closes: 990914 990915 1011531
Changes:
 lcov (1.15-2) unstable; urgency=medium
 .
   * version.patch: version incorrectly reported. Closes: #1011531
   * Close fixed bug; repository now populated. Closes: #990915
   * Patch from Vagrant Cascadian on reproduciblity. Closes: #990914
Checksums-Sha1:
 189afd7fb75f2f6095ae4f5dd8b5754cb15f0e46 1858 lcov_1.15-2.dsc
 f6e20b84c95a4a5e19d98c8446255d4326f6da56 23168 lcov_1.15-2.debian.tar.xz
Checksums-Sha256:
 ec893f34596c0605a7852bbbf5dca998e0a21a04aec3b0e475d53b6bc1f41b56 1858 lcov_1.15-2.dsc
 a19342097098ac55a5bbab91dd60a7323eb56aed66e8c58db635e7d5b1d282c1 23168 lcov_1.15-2.debian.tar.xz
Files:
 00c85518f62f4fc7cf61f8341264c020 1858 devel optional lcov_1.15-2.dsc
 38918d13dd753f01c6559f01fda8aab9 23168 devel optional lcov_1.15-2.debian.tar.xz

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEgjg86RZbNHx4cIGiy+a7Tl2a06UFAmKOUeUACgkQy+a7Tl2a
06VJCg/9GaqsYaa8reeOl3VHBWL39C2Ia0lseRzwMn3EjL3F4faXHSgaxel4aBzL
oM46QwL3R5YhKpV3YCTglltU1RFEHtB5D5fCIRTILvmeA52+QLzHFDOn8uEEpZat
7KkzNOmVzTp8/M62bV8zN41OmQE67J9vVNM5eSFIK0BQLaca+M4+Y7VmnQQuqqeR
BYIKQpR8s6gIwpW87lNdl1vL8te2IJqq2lP5Mc8hqwqth0DBRI/6VROguEnQmvAL
DPEQ79DFOxvYbYVtiyI4p0nKRp75rpBNfVaFuQLHs65TNxe8R/8BC2AqzrLCgXXJ
6UqfJVdBPbdT6YmUwbLAsbiRuXckcsAlm3sXcFSmxMhARNFspjM/AXYARgk6irRZ
FO42J6f8UWY+sDUtcRNJrLRdJDEZALwpNzvkQblTuGuI4NUrsYz44BX3ce0pBA9B
+kzLEFv5z8QZtcQgoakubZD3kaA0wU61DpUjUb/9OlgrYsP2i5wSuYddIlXZgrv+
WoIU5F7Wzs0PNI0QYa+3neLVWwoHny5XYr3djGJr789y3kphUjz5Z86Bb+O1TKP+
t++wHeNcc/xOmWOIAhWJaBnEKGzzDMCmDPxmygP1HeJCv/RqkmVgIBRRmYeQoH2h
PeYAkX7lqLcO/dJHSkoMcs//Im9OXPqhL6X3fA2yo1/bFAcZHZU=
=OP9N
-----END PGP SIGNATURE-----




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Sun, 10 Jul 2022 07:25:37 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 12:27:25 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.