Debian Bug report logs - #1034740
boost1.74: reproducible builds: build date and time embedded in .html documentation

Package: src:boost1.74; Maintainer for src:boost1.74 is Debian Boost Team <team+boost@tracker.debian.org>;

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

Date: Sun, 23 Apr 2023 03:09:02 UTC

Severity: normal

Tags: patch

Reply or subscribe to this bug.

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 Boost Team <team+boost@tracker.debian.org>:
Bug#1034740; Package src:boost1.74. (Sun, 23 Apr 2023 03:09: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 Boost Team <team+boost@tracker.debian.org>. (Sun, 23 Apr 2023 03:09: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: boost1.74: reproducible builds: build date and time embedded in .html documentation
Date: Sat, 22 Apr 2023 20:06:13 -0700
[Message part 1 (text/plain, inline)]
Source: boost1.74
Severity: normal
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-bugs@lists.alioth.debian.org

The build dates and timestamps are embedded in various .html
documentation:

  https://tests.reproducible-builds.org/debian/rb-pkg/bookworm/amd64/diffoscope-results/boost1.74.html

  /usr/share/doc/libboost1.74-doc/doc/html/accumulators.html

  <td·align="left"><p><small>Last·revised:·May·17,·2024·at·23:22:24·GMT</small></p></td>
  vs.
  <td·align="left"><p><small>Last·revised:·April·15,·2023·at·19:43:52·GMT</small></p></td>

The attached patch fixes this by removing the date and timestamp lines
from several files, and replacing documentations examples for the use of
__TIME__ and __DATE__ with a fixed time and date.

According to my local tests, with this patch applied, boost1.74 should
build reproducibly on tests.reproducible-builds.org once it migrates to
testing! There are some outstanding issues (e.g. build paths) that are
only tested on unstable and experimental.


Thanks for maintaining boost1.74!


live well,
  vagrant
[0001-Remove-timestamps-and-dates-from-documentation.patch (text/x-diff, inline)]
From 7c9c189ea32470cd683939c11fabf78f0b2f3f17 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Sat, 22 Apr 2023 19:53:22 -0700
Subject: [PATCH] Remove timestamps and dates from documentation.

https://reproducible-builds.org/docs/timestamps/
---
 libs/circular_buffer/doc/circular_buffer.qbk |  2 --
 libs/units/doc/units.qbk                     |  1 -
 tools/boostbook/xsl/html-base.xsl            | 22 --------------------
 tools/quickbook/doc/block.qbk                |  4 ++--
 4 files changed, 2 insertions(+), 27 deletions(-)

diff --git a/libs/circular_buffer/doc/circular_buffer.qbk b/libs/circular_buffer/doc/circular_buffer.qbk
index a7177e4c..217c42b6 100644
--- a/libs/circular_buffer/doc/circular_buffer.qbk
+++ b/libs/circular_buffer/doc/circular_buffer.qbk
@@ -596,8 +596,6 @@ Paul A. Bristow refactored the documentation in 2013 to use the full power of Qu
 
 [section:version_id Documentation Version Info]
 
-Last edit to Quickbook file __FILENAME__ was at __TIME__ on __DATE__.
-
 [tip This should appear on the pdf version
 (but may be redundant on a html version where the last edit date is on the first (home) page).]
 
diff --git a/libs/units/doc/units.qbk b/libs/units/doc/units.qbk
index 0c7345fc..b160ef21 100644
--- a/libs/units/doc/units.qbk
+++ b/libs/units/doc/units.qbk
@@ -1309,7 +1309,6 @@ the design and implementation of this library.
 
 __boostroot
 
-Last edit to Quickbook file __FILENAME__ was at __TIME__ on __DATE__.
 
 [tip This should appear on the pdf version (but may be redundant on html).]
 [/ Useful on pdf version. See also Last revised timestamp on first page of html version.]
diff --git a/tools/boostbook/xsl/html-base.xsl b/tools/boostbook/xsl/html-base.xsl
index a1031710..cfba8727 100644
--- a/tools/boostbook/xsl/html-base.xsl
+++ b/tools/boostbook/xsl/html-base.xsl
@@ -234,28 +234,6 @@ set       toc,title
               <xsl:value-of
                 select="normalize-space($revision-node/attribute::rev:last-revision)"/>
             </xsl:variable>
-            <xsl:if test="string-length($revision-text) &gt; 0 and not($revision-text = '$Date$')">
-              <p>
-                <small>
-                  <xsl:text>Last revised: </xsl:text>
-                  <xsl:choose>
-                    <xsl:when test="not(contains($revision-text, '$Date: ')) and not(contains($revision-text, '$Date:: '))">
-                      <xsl:value-of select="$revision-text"/>
-                    </xsl:when>
-                    <xsl:when test="contains($revision-text, '/')">
-                      <xsl:call-template name="format.cvs.revision">
-                        <xsl:with-param name="text" select="$revision-text"/>
-                      </xsl:call-template>
-                    </xsl:when>
-                    <xsl:otherwise>
-                      <xsl:call-template name="format.svn.revision">
-                        <xsl:with-param name="text" select="$revision-text"/>
-                      </xsl:call-template>
-                    </xsl:otherwise>
-                  </xsl:choose>
-                </small>
-              </p>
-            </xsl:if>
           </xsl:if>
         </td>
         <td align="right">
diff --git a/tools/quickbook/doc/block.qbk b/tools/quickbook/doc/block.qbk
index dbfdb8d2..bcf3f406 100644
--- a/tools/quickbook/doc/block.qbk
+++ b/tools/quickbook/doc/block.qbk
@@ -601,8 +601,8 @@ Quickbook has some predefined macros that you can already use.
 
 [table Predefined Macros
     [[Macro]           [Meaning]                       [Example]]
-    [[[^\__DATE__]]    [Today's date]                  [__DATE__]]
-    [[[^\__TIME__]]    [The current time]              [__TIME__]]
+    [[[^\__DATE__]]    [Today's date]                  [2022-04-20]]
+    [[[^\__TIME__]]    [The current time]              [01:42:48 PM]]
     [[[^\__FILENAME__]][Quickbook source filename]     [__FILENAME__]]
 ]
 
-- 
2.39.2

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

Information forwarded to debian-bugs-dist@lists.debian.org, Debian Boost Team <team+boost@tracker.debian.org>:
Bug#1034740; Package src:boost1.74. (Thu, 27 Apr 2023 21:06:02 GMT) (full text, mbox, link).


Acknowledgement sent to Vagrant Cascadian <vagrant@reproducible-builds.org>:
Extra info received and forwarded to list. Copy sent to Debian Boost Team <team+boost@tracker.debian.org>. (Thu, 27 Apr 2023 21:06:02 GMT) (full text, mbox, link).


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

From: Vagrant Cascadian <vagrant@reproducible-builds.org>
To: 1034740@bugs.debian.org
Subject: Re: Bug#1034740: boost1.74: reproducible builds: build date and time embedded in .html documentation
Date: Thu, 27 Apr 2023 14:02:16 -0700
[Message part 1 (text/plain, inline)]
Control: clone 1034740 -1
Control: reassign -1 boost1.81
Control: retitle -1 boost1.81: reproducible builds: build date and time embedded in .html documentation
Control: tags -1 patch

Issue and patch is also valid for boost1.81!

On 2023-04-22, Vagrant Cascadian wrote:
> From 7c9c189ea32470cd683939c11fabf78f0b2f3f17 Mon Sep 17 00:00:00 2001
> From: Vagrant Cascadian <vagrant@reproducible-builds.org>
> Date: Sat, 22 Apr 2023 19:53:22 -0700
> Subject: [PATCH] Remove timestamps and dates from documentation.
>
> https://reproducible-builds.org/docs/timestamps/
> ---
>  libs/circular_buffer/doc/circular_buffer.qbk |  2 --
>  libs/units/doc/units.qbk                     |  1 -
>  tools/boostbook/xsl/html-base.xsl            | 22 --------------------
>  tools/quickbook/doc/block.qbk                |  4 ++--
>  4 files changed, 2 insertions(+), 27 deletions(-)
>
> diff --git a/libs/circular_buffer/doc/circular_buffer.qbk b/libs/circular_buffer/doc/circular_buffer.qbk
> index a7177e4c..217c42b6 100644
> --- a/libs/circular_buffer/doc/circular_buffer.qbk
> +++ b/libs/circular_buffer/doc/circular_buffer.qbk
> @@ -596,8 +596,6 @@ Paul A. Bristow refactored the documentation in 2013 to use the full power of Qu
>  
>  [section:version_id Documentation Version Info]
>  
> -Last edit to Quickbook file __FILENAME__ was at __TIME__ on __DATE__.
> -
>  [tip This should appear on the pdf version
>  (but may be redundant on a html version where the last edit date is on the first (home) page).]
>  
> diff --git a/libs/units/doc/units.qbk b/libs/units/doc/units.qbk
> index 0c7345fc..b160ef21 100644
> --- a/libs/units/doc/units.qbk
> +++ b/libs/units/doc/units.qbk
> @@ -1309,7 +1309,6 @@ the design and implementation of this library.
>  
>  __boostroot
>  
> -Last edit to Quickbook file __FILENAME__ was at __TIME__ on __DATE__.
>  
>  [tip This should appear on the pdf version (but may be redundant on html).]
>  [/ Useful on pdf version. See also Last revised timestamp on first page of html version.]
> diff --git a/tools/boostbook/xsl/html-base.xsl b/tools/boostbook/xsl/html-base.xsl
> index a1031710..cfba8727 100644
> --- a/tools/boostbook/xsl/html-base.xsl
> +++ b/tools/boostbook/xsl/html-base.xsl
> @@ -234,28 +234,6 @@ set       toc,title
>                <xsl:value-of
>                  select="normalize-space($revision-node/attribute::rev:last-revision)"/>
>              </xsl:variable>
> -            <xsl:if test="string-length($revision-text) &gt; 0 and not($revision-text = '$Date$')">
> -              <p>
> -                <small>
> -                  <xsl:text>Last revised: </xsl:text>
> -                  <xsl:choose>
> -                    <xsl:when test="not(contains($revision-text, '$Date: ')) and not(contains($revision-text, '$Date:: '))">
> -                      <xsl:value-of select="$revision-text"/>
> -                    </xsl:when>
> -                    <xsl:when test="contains($revision-text, '/')">
> -                      <xsl:call-template name="format.cvs.revision">
> -                        <xsl:with-param name="text" select="$revision-text"/>
> -                      </xsl:call-template>
> -                    </xsl:when>
> -                    <xsl:otherwise>
> -                      <xsl:call-template name="format.svn.revision">
> -                        <xsl:with-param name="text" select="$revision-text"/>
> -                      </xsl:call-template>
> -                    </xsl:otherwise>
> -                  </xsl:choose>
> -                </small>
> -              </p>
> -            </xsl:if>
>            </xsl:if>
>          </td>
>          <td align="right">
> diff --git a/tools/quickbook/doc/block.qbk b/tools/quickbook/doc/block.qbk
> index dbfdb8d2..bcf3f406 100644
> --- a/tools/quickbook/doc/block.qbk
> +++ b/tools/quickbook/doc/block.qbk
> @@ -601,8 +601,8 @@ Quickbook has some predefined macros that you can already use.
>  
>  [table Predefined Macros
>      [[Macro]           [Meaning]                       [Example]]
> -    [[[^\__DATE__]]    [Today's date]                  [__DATE__]]
> -    [[[^\__TIME__]]    [The current time]              [__TIME__]]
> +    [[[^\__DATE__]]    [Today's date]                  [2022-04-20]]
> +    [[[^\__TIME__]]    [The current time]              [01:42:48 PM]]
>      [[[^\__FILENAME__]][Quickbook source filename]     [__FILENAME__]]
>  ]
>  
> -- 
> 2.39.2
[signature.asc (application/pgp-signature, inline)]

Bug 1034740 cloned as bug 1035027 Request was from Vagrant Cascadian <vagrant@reproducible-builds.org> to 1034740-submit@bugs.debian.org. (Thu, 27 Apr 2023 21:06:02 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 09:21:59 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.