Debian Bug report logs - #1006256
gmerlin: reproducible builds: Timestamps embedded in manpages

version graph

Package: src:gmerlin; Maintainer for src:gmerlin is Debian Multimedia Maintainers <debian-multimedia@lists.debian.org>;

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

Date: Tue, 22 Feb 2022 03:39:02 UTC

Severity: normal

Tags: patch

Fixed in version gmerlin/2.0.0~svn6298~dfsg0-2

Done: IOhannes m zmölnig (Debian/GNU) <umlaeute@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, Debian Multimedia Maintainers <debian-multimedia@lists.debian.org>:
Bug#1006256; Package src:gmerlin. (Tue, 22 Feb 2022 03:39: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 Multimedia Maintainers <debian-multimedia@lists.debian.org>. (Tue, 22 Feb 2022 03:39:04 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: gmerlin: reproducible builds: Timestamps embedded in manpages
Date: Mon, 21 Feb 2022 19:36:55 -0800
[Message part 1 (text/plain, inline)]
Source: gmerlin
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 manpages:

  ./usr/share/man/man1/mdb-tool.1.gz

  -.TH MDB-TOOL 1 "February 2022" Gmerlin "User Manuals"
  vs.
  +.TH MDB-TOOL 1 "November 2022" Gmerlin "User Manuals"


The attached patch fixes this by respecting the SOURCE_DATE_EPOCH
environment variable in the manpage generation code in lib/cmdline.c.


With this patch applied, gmerlin should build reproducibly on
tests.reproducible-builds.org!


Thanks for maintaining gmerlin!


live well,
  vagrant
[0001-lib-cmdline.c-Use-deterministic-timestamp-when-gener.patch (text/x-diff, inline)]
From d532ebe90243f9390b0b1e49f1d4918f173238a6 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Tue, 22 Feb 2022 03:25:25 +0000
Subject: [PATCH] lib/cmdline.c: Use deterministic timestamp when generating
 manpages.

Use the SOURCE_DATE_EPOCH environment variable if available, and use
numeric date to avoid embedding locale-dependent month names.

https://reproducible-builds.org/docs/source-date-epoch/
---
 lib/cmdline.c | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/lib/cmdline.c b/lib/cmdline.c
index 4b4d2f6..049e905 100644
--- a/lib/cmdline.c
+++ b/lib/cmdline.c
@@ -441,9 +441,13 @@ void bg_cmdline_print_help(char * argv0, bg_help_format_t format)
       char ** args;
       char * string_uc;
       
-      time(&t);
-      localtime_r(&t, &brokentime);
-      strftime(date_str, 511, "%B %Y", &brokentime);
+      char *source_date_epoch;
+      /* This assumes that the SOURCE_DATE_EPOCH environment variable will contain
+         a correct, positive integer in the time_t range */
+      if ((source_date_epoch = getenv("SOURCE_DATE_EPOCH")) == NULL ||
+          (t = (time_t)strtoll(source_date_epoch, NULL, 10)) <= 0)
+        time(&t);
+      strftime(date_str, 511, "%F", gmtime(&t));
 
       string_uc = bg_toupper(bg_app_get_name());
       
-- 
2.35.1

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

Message sent on to Vagrant Cascadian <vagrant@reproducible-builds.org>:
Bug#1006256. (Tue, 08 Mar 2022 14:00:03 GMT) (full text, mbox, link).


Message #8 received at 1006256-submitter@bugs.debian.org (full text, mbox, reply):

From: IOhannes zmölnig <noreply@salsa.debian.org>
To: 1006256-submitter@bugs.debian.org
Subject: Bug#1006256 marked as pending in gmerlin
Date: Tue, 08 Mar 2022 13:57:11 +0000
Control: tag -1 pending

Hello,

Bug #1006256 in gmerlin reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/multimedia-team/gmerlin/-/commit/a309f845b530f482eae32de55b72e8feedc61aab

------------------------------------------------------------------------
Add patch for reproducible manpages

Closes: #1006256
Thanks: Vagrant Cascadian <vagrant@reproducible-builds.org>
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1006256



Added tag(s) pending. Request was from IOhannes zmölnig <noreply@salsa.debian.org> to 1006256-submitter@bugs.debian.org. (Tue, 08 Mar 2022 14:00:03 GMT) (full text, mbox, link).


Reply sent to IOhannes m zmölnig (Debian/GNU) <umlaeute@debian.org>:
You have taken responsibility. (Tue, 08 Mar 2022 14:39:03 GMT) (full text, mbox, link).


Notification sent to Vagrant Cascadian <vagrant@reproducible-builds.org>:
Bug acknowledged by developer. (Tue, 08 Mar 2022 14:39:03 GMT) (full text, mbox, link).


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

From: Debian FTP Masters <ftpmaster@ftp-master.debian.org>
To: 1006256-close@bugs.debian.org
Subject: Bug#1006256: fixed in gmerlin 2.0.0~svn6298~dfsg0-2
Date: Tue, 08 Mar 2022 14:35:28 +0000
Source: gmerlin
Source-Version: 2.0.0~svn6298~dfsg0-2
Done: IOhannes m zmölnig (Debian/GNU) <umlaeute@debian.org>

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

Debian distribution maintenance software
pp.
IOhannes m zmölnig (Debian/GNU) <umlaeute@debian.org> (supplier of updated gmerlin 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: Tue, 08 Mar 2022 15:06:20 +0100
Source: gmerlin
Architecture: source
Version: 2.0.0~svn6298~dfsg0-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Multimedia Maintainers <debian-multimedia@lists.debian.org>
Changed-By: IOhannes m zmölnig (Debian/GNU) <umlaeute@debian.org>
Closes: 1006256
Changes:
 gmerlin (2.0.0~svn6298~dfsg0-2) unstable; urgency=medium
 .
   * Add patch for reproducible manpages.
     Thanks to Vagrant Cascadian <vagrant@reproducible-builds.org>
     (Closes: #1006256)
Checksums-Sha1:
 82fe56c8c0b0ead78e7bfc8f736613de5ebbd7b6 2959 gmerlin_2.0.0~svn6298~dfsg0-2.dsc
 ba1b7733f1116836e3252d6c320f961bf795182f 27692 gmerlin_2.0.0~svn6298~dfsg0-2.debian.tar.xz
Checksums-Sha256:
 974b1ae29c1bfbba0c6c8baff50aa6d3faba0f5d1e6f020fd45487c2196ac55b 2959 gmerlin_2.0.0~svn6298~dfsg0-2.dsc
 03c7061b9c81c44010a0b3ae7a3a0f635dada6ca33808684436e123bac6066b2 27692 gmerlin_2.0.0~svn6298~dfsg0-2.debian.tar.xz
Files:
 866f314be1d1336a92f4e85077b29d40 2959 sound optional gmerlin_2.0.0~svn6298~dfsg0-2.dsc
 edac92cba2a0ba687da53d04f7315ae1 27692 sound optional gmerlin_2.0.0~svn6298~dfsg0-2.debian.tar.xz

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

iQJKBAEBCAA0FiEEdAXnRVdICXNIABVttlAZxH96NvgFAmInZr8WHGZvcnVtQHVt
bGFldXRlLm11ci5hdAAKCRC2UBnEf3o2+GZKEACAvttSV8Y6Ni/44sE5dZuMojb7
5Xqxnfu2nRdTeUbdsMWaL16zeRFYpuL6j6KQRuhMMSh2zEnc1X0tX5AhZIp2Hzd8
kohhnITswxtmUza9FuD9RCWbUCCnOGFTTxkOu2FH2sl07e8A6jzNWyY9t7PlZ2Zs
pWPCTV0zwk3HB6Jf8OMMar/MazVAgiYlIzSpZKVeAkztt2UXrsnrwmsaaNETB5Lb
iACQVSHaRHNaLruavNpU1KCCXh7ZokyzWlyUJ4dlVVgtUiWMY1ziyz62W2g6neBR
2QOAa10jilWkvYKxAJ1BsjRDMGKBONC1O+bGJRqBwYc+u/CmrvFSD3BQNA7gG48Y
Mk+a/+obqSVsBXtBSxNnPxjACFB25whS9X8/ZrTSTcA0JFqMknXMBoyYL2hyZBJi
b6hYvSc/20nGo8xSpzzoeenK6KVM4iJ5JkTrWICDXWNIK561NlxVghYyoCCvDKdI
LiqXXCpszZAg5mBwRC6XfBGqtqFG218QNzL/zsLk2MzCGhm064ztwvDo7IYQlhC0
zy42R8WKZOyAM846aQiWj7wHkEtkt/LHtVy1W1uSwHMeR0cvtnbCJzFAIW8OhYB0
xzbbOCRnBL6G/YLz2AZRgLuKc3q+UQmeugfF/wsVwdP72V7RQeAsH68Z5koEBzp9
huGZ+RQE2r6GIGak/A==
=Iwg1
-----END PGP SIGNATURE-----




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Mon, 11 Apr 2022 07:26:53 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:19:00 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.