Debian Bug report logs - #1021518
jakarta-jmeter: reproducible-builds: year in documentation files

Package: src:jakarta-jmeter; Maintainer for src:jakarta-jmeter is Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org>;

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

Date: Sun, 9 Oct 2022 23:45: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 Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org>:
Bug#1021518; Package src:jakarta-jmeter. (Sun, 09 Oct 2022 23:45: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 Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org>. (Sun, 09 Oct 2022 23:45: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: jakarta-jmeter: reproducible-builds: year in documentation files
Date: Sun, 09 Oct 2022 16:42:07 -0700
[Message part 1 (text/plain, inline)]
Source: jakarta-jmeter
Severity: normal
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-bugs@lists.alioth.debian.org

The current year is embedded in various documentation files:

  https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/diffoscope-results/jakarta-jmeter.html

  /usr/share/jmeter/printable_docs/building.html

  Copyright·&copy;·1999-2022,·Apache·Software·Foundation
  vs.
  Copyright·&copy;·1999-2023,·Apache·Software·Foundation

Not only does this break reproducible builds, it is not an accurate
reflection of the correct copyright dates.

The attached patch to two upstream .vsl files fixes this by using the
date that the current upstream version was uploaded to debian (maybe it
is older, feel free to adjust appropriately).

According to my local tests, with this patch applied, jakarta-jmeter
should build reproducibly on tests.reproducible-builds.org!

Thanks for maintaining jakarta-jmeter!

live well,
  vagrant
[0001-xdocs-stylesheets-site-.vsl-Use-specific-date-for-Co.patch (text/x-diff, inline)]
From e19489b243bff03a128b8005dd7fdbd5ada11b6d Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Sun, 9 Oct 2022 23:22:36 +0000
Subject: [PATCH] xdocs/stylesheets/site*.vsl: Use specific date for Copyright
 headers.

This breaks reproducible builds, but also the dates for Copyright
headers are valid for when the content was initially authored, not
the build date.
---
 xdocs/stylesheets/site.vsl           | 2 +-
 xdocs/stylesheets/site_printable.vsl | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/xdocs/stylesheets/site.vsl b/xdocs/stylesheets/site.vsl
index e91d687..3c0f36e 100644
--- a/xdocs/stylesheets/site.vsl
+++ b/xdocs/stylesheets/site.vsl
@@ -33,7 +33,7 @@
 #set ($space = $space.charAt(0))
 #set ($udsc = "_")
 #set ($udsc = $udsc.charAt(0))
-#set ($year = $date.getYear()+1900)
+#set ($year = "2016")
 ##
 ## Website settings
 #set ($imgdir = "$relativePath/images")
diff --git a/xdocs/stylesheets/site_printable.vsl b/xdocs/stylesheets/site_printable.vsl
index b817284..36ec7eb 100644
--- a/xdocs/stylesheets/site_printable.vsl
+++ b/xdocs/stylesheets/site_printable.vsl
@@ -33,7 +33,7 @@
 #set ($space = $space.charAt(0))
 #set ($udsc = "_")
 #set ($udsc = $udsc.charAt(0))
-#set ($year = $date.getYear()+1900)
+#set ($year = "2016")
 ##
 ## Printable document settings
 #set ($imgdir = "$relativePath/../docs/images")
-- 
2.30.2

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

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Wed May 17 12:44:13 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.