Debian Bug report logs - #1010787
sgml-base-doc: reproducible builds: Build date embedded in documentation

version graph

Package: src:sgml-base-doc; Maintainer for src:sgml-base-doc is Debian QA Group <packages@qa.debian.org>;

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

Date: Tue, 10 May 2022 00:24:11 UTC

Severity: normal

Tags: patch

Fixed in version sgml-base-doc/1.99.3

Done: Vagrant Cascadian <vagrant@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 QA Group <packages@qa.debian.org>:
Bug#1010787; Package src:sgml-base-doc. (Tue, 10 May 2022 00:24: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, Debian QA Group <packages@qa.debian.org>. (Tue, 10 May 2022 00:24: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: sgml-base-doc: reproducible builds: Build date embedded in documentation
Date: Mon, 09 May 2022 17:23:19 -0700
[Message part 1 (text/plain, inline)]
Source: sgml-base-doc
Severity: normal
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-bugs@lists.alioth.debian.org

The build date is embedded in various documentation:

  https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/diffoscope-results/sgml-base-doc.html

  /usr/share/doc/sgml-base-doc/sgml_layout.html/ch-Other.html


  23·April·2022<br>
  vs.
  26·May·2023<br>


The attached patch fixes this in debian/rules by setting the
DEBIANDOC_DATE environment variable based on SOURCE_DATE_EPOCH.

Alternately, this variable could also be set to an empty value, which
results in no date of any kind.


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


Thanks for maintaining sgml-base-doc!


live well,
  vagrant
[0001-debian-rules-Set-DEBIANDOC_DATE-based-on-SOURCE_DATE.patch (text/x-diff, inline)]
From af442a242fb76dce0fa1cbe81ff3585574ba53ed Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Tue, 10 May 2022 00:08:56 +0000
Subject: [PATCH] debian/rules: Set DEBIANDOC_DATE based on SOURCE_DATE_EPOCH.

https://tests.reproducible-builds.org/debian/issues/unstable/debiandoc_sgml_timestamp_issue.html
---
 debian/rules | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/debian/rules b/debian/rules
index 0714fa7..d3778ac 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,6 +4,8 @@
 PACKAGE  = sgml-base-doc
 PKG_DOCS = sgml_layout.html sgml_layout.pdf sgml_layout.txt
 
+# Ensure reproducible date
+export DEBIANDOC_DATE = $(shell date --utc --date=@$(SOURCE_DATE_EPOCH) '+%Y-%m-%d')
 
 .SUFFIXES: .html .pdf .sgml .txt
 .sgml.html:
-- 
2.36.0

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

Reply sent to Vagrant Cascadian <vagrant@debian.org>:
You have taken responsibility. (Tue, 10 May 2022 02:39:03 GMT) (full text, mbox, link).


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


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

From: Debian FTP Masters <ftpmaster@ftp-master.debian.org>
To: 1010787-close@bugs.debian.org
Subject: Bug#1010787: fixed in sgml-base-doc 1.99.3
Date: Tue, 10 May 2022 02:36:26 +0000
Source: sgml-base-doc
Source-Version: 1.99.3
Done: Vagrant Cascadian <vagrant@debian.org>

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

Debian distribution maintenance software
pp.
Vagrant Cascadian <vagrant@debian.org> (supplier of updated sgml-base-doc 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: Mon, 09 May 2022 19:09:19 -0700
Source: sgml-base-doc
Architecture: source
Version: 1.99.3
Distribution: unstable
Urgency: medium
Maintainer: Debian QA Group <packages@qa.debian.org>
Changed-By: Vagrant Cascadian <vagrant@debian.org>
Closes: 998964 1010787
Changes:
 sgml-base-doc (1.99.3) unstable; urgency=medium
 .
   * QA upload.
   * debian/rules: Set DEBIANDOC_DATE based on SOURCE_DATE_EPOCH.
     (Closes: #1010787)
   * Update to debhelper-compat 13. (Closes: #998964)
   * README.Debian: Fix typo.
   * Switch to source format 3.0 (native).
   * debian/control: Set Rules-Requires-Root to "no".
   * debian/copyright: Reference GPL-2 in common-licenses.
   * debian/control: Comment out Vcs-* and Homepage fields as the services
     are no longer reachable.
   * debian/control: Update Standards-Version to 4.6.0.
Checksums-Sha1:
 22896602a47ce3abc2767afc1f1f92cfae24c370 1078 sgml-base-doc_1.99.3.dsc
 9f94df4787d9268957e8b613a16760ce98395762 13468 sgml-base-doc_1.99.3.tar.xz
Checksums-Sha256:
 1a66103716ca3ed739dd1c8f5f86d67bbf060405c6e8f4fc8ae397b811778404 1078 sgml-base-doc_1.99.3.dsc
 72cfbd754453483caedb171ef4c49be2bbd046b37b5135cce782072bac0ec756 13468 sgml-base-doc_1.99.3.tar.xz
Files:
 5591dc761ba98eebe30ed0bac48b538f 1078 doc optional sgml-base-doc_1.99.3.dsc
 cd452874b8bed6fdd627dfe026ed0df3 13468 doc optional sgml-base-doc_1.99.3.tar.xz

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

iIkEARYKADEWIQRlgHNhO/zFx+LkXUXcUY/If5cWqgUCYnnMMBMcdmFncmFudEBk
ZWJpYW4ub3JnAAoJENxRj8h/lxaqBWcBALtTmTjlrxHo2z9yJcET82kF/iNhwoYL
rqONKJ6UEp4LAP4qpJvl7SUDQ28s9zD2H9TreadzipCG3pM4lZofUfCMBg==
=S6Eg
-----END PGP SIGNATURE-----




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Sun, 12 Jun 2022 07:27:15 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:38:30 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.