Debian Bug report logs - #978064
libdigidoc: reproducible builds: date in cdigidoc man page varies with timezone

version graph

Package: libdigidoc; Maintainer for libdigidoc is Debian QA Group <packages@qa.debian.org>;

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

Date: Fri, 25 Dec 2020 10:27:01 UTC

Severity: normal

Tags: patch

Fixed in version libdigidoc/3.10.5-2

Done: Vagrant Cascadian <vagrant@reproducible-builds.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 QA Group <packages@qa.debian.org>:
Bug#978064; Package libdigidoc. (Fri, 25 Dec 2020 10:27: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, Debian QA Group <packages@qa.debian.org>. (Fri, 25 Dec 2020 10:27:03 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: libdigidoc: reproducible builds: date in cdigidoc man page varies with timezone
Date: Fri, 25 Dec 2020 02:23:19 -0800
[Message part 1 (text/plain, inline)]
Package: libdigidoc
Severity: normal
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: timestamps timezone
X-Debbugs-Cc: reproducible-bugs@lists.alioth.debian.org

The man page /usr/share/man/man1/cdigidoc.1.gz may include a different
date dependent on the timezone of the build system:

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

  TH·CDIGIDOC·1·"09.06.2020"·"3.10.5.0"·"cdigidoc·man·page"
  vs.
  TH·CDIGIDOC·1·"10.06.2020"·"3.10.5.0"·"cdigidoc·man·page"


The attached patch fixes this by using the UTC timezone when generating
the timestamp.


Thanks for maintaining libdigidoc!


live well,
  vagrant
[0001-VersionInfo.cmake-Set-BUILD_DATE-using-UTC-timezone.patch (text/x-diff, inline)]
From 7032f2516efc404bd97cdcde0a8c6ff0c0058922 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Fri, 25 Dec 2020 10:14:21 +0000
Subject: [PATCH] VersionInfo.cmake: Set BUILD_DATE using UTC timezone.

While cmake respects SOURCE_DATE_EPOCH for the timestamp, the
timestamp needs to be specified in UTC.

https://reproducible-builds.org/docs/timestamps/
---
 cmake/modules/VersionInfo.cmake | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cmake/modules/VersionInfo.cmake b/cmake/modules/VersionInfo.cmake
index 864a52e..cd495f2 100644
--- a/cmake/modules/VersionInfo.cmake
+++ b/cmake/modules/VersionInfo.cmake
@@ -6,7 +6,7 @@ else()
 	set( BUILD_VER 0 )
 endif()
 if(NOT BUILD_DATE)
-	string(TIMESTAMP BUILD_DATE "%d.%m.%Y")
+	string(TIMESTAMP BUILD_DATE "%d.%m.%Y" UTC)
 endif()
 
 set( VERSION ${PROJECT_VERSION}.${BUILD_VER} )
-- 
2.30.0.rc2

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

Reply sent to Vagrant Cascadian <vagrant@reproducible-builds.org>:
You have taken responsibility. (Thu, 31 Dec 2020 08:36:03 GMT) (full text, mbox, link).


Notification sent to Vagrant Cascadian <vagrant@reproducible-builds.org>:
Bug acknowledged by developer. (Thu, 31 Dec 2020 08:36:03 GMT) (full text, mbox, link).


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

From: Debian FTP Masters <ftpmaster@ftp-master.debian.org>
To: 978064-close@bugs.debian.org
Subject: Bug#978064: fixed in libdigidoc 3.10.5-2
Date: Thu, 31 Dec 2020 08:33:22 +0000
Source: libdigidoc
Source-Version: 3.10.5-2
Done: Vagrant Cascadian <vagrant@reproducible-builds.org>

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

Debian distribution maintenance software
pp.
Vagrant Cascadian <vagrant@reproducible-builds.org> (supplier of updated libdigidoc 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: Thu, 31 Dec 2020 00:11:01 -0800
Source: libdigidoc
Architecture: source
Version: 3.10.5-2
Distribution: unstable
Urgency: medium
Maintainer: Debian QA Group <packages@qa.debian.org>
Changed-By: Vagrant Cascadian <vagrant@reproducible-builds.org>
Closes: 978064
Changes:
 libdigidoc (3.10.5-2) unstable; urgency=medium
 .
   * QA upload.
   * VersionInfo.cmake: Set BUILD_DATE using UTC timezone.
     (Closes: #978064)
   * debian/control: Set Rules-Requires-Root to "no".
   * debian/copyright: Use https URL for "Format".
   * debian/control: Switch to priority optional.
   * Switch to debhelper-compat 13.
   * debian/rules: Use dh_missing --list-missing.
   * debian/control: Update Standards-Version to 4.5.1.
   * Add lintian override for orphaned-package-maintained-in-private-space.
   * debian/control: Remove uploaders field for QA-maintained package.
Checksums-Sha1:
 e9e2cc5695b64dc10cd982d18e8a9902193427dd 1737 libdigidoc_3.10.5-2.dsc
 09e5d90536e6e9d74eb80644c8c91e20a2ebdf74 3388 libdigidoc_3.10.5-2.debian.tar.xz
Checksums-Sha256:
 f4fc949fad4a880b23b74fe46c2d3a796bed6e35c1f2887bce4a0a5751a81338 1737 libdigidoc_3.10.5-2.dsc
 fd9ff98670f4bd164b75ceee67e7aabe6c26866205e8c34495ef9ad5ee690c6e 3388 libdigidoc_3.10.5-2.debian.tar.xz
Files:
 cf4223bf91cadc9104112263972ae618 1737 libs optional libdigidoc_3.10.5-2.dsc
 55d97f5c96cd420d45bcdfc5c8fb5e7f 3388 libs optional libdigidoc_3.10.5-2.debian.tar.xz

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

iJYEARYKAD4WIQRlgHNhO/zFx+LkXUXcUY/If5cWqgUCX+2JQiAcdmFncmFudEBy
ZXByb2R1Y2libGUtYnVpbGRzLm9yZwAKCRDcUY/If5cWqsSUAQCKadw6BKSWFpvN
Cyzyh80nFRhii/hl26uJnKLNDSmpvAEAsAPMDBLzqsH8DhOvttJWqZV5pEppbBNs
hohAhvet9gw=
=w9Pm
-----END PGP SIGNATURE-----




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Tue, 02 Feb 2021 07:29: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 12:49:55 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.