Bug#1137018: javacc5: please make the build reproducible
Chris Lamb
lamby at debian.org
Mon May 18 18:29:35 BST 2026
Source: javacc5
Version: 5.0-11
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: nocheck
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org
Hi,
Whilst working on the Reproducible Builds effort [0], we noticed that
javacc5 could not be built reproducibly.
I think this is because the testsuite regenerates some documentation
files, and therefore bumps the modification times of these files. This
means that if the tests are skipped, these files will have a different
timestamp and therefore the package is unreproducible.
A patch is attached that always sets these files to a fixed timestamp
(SOURCE_DATE_EPOCH). This is easier than trying to save-and-restore
the timestamp before and after the tests.
[0] https://reproducible-builds.org/
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` lamby at debian.org / chris-lamb.co.uk
`-
-------------- next part --------------
--- a/debian/rules 2026-05-18 10:03:26.203874656 -0700
--- b/debian/rules 2026-05-18 10:15:50.089389106 -0700
@@ -10,6 +10,7 @@
dh_auto_build -- clean
dh_auto_build -- jar
docbook-to-man debian/manpage.sgml >bin/javacc5.1
+ touch -d@$(SOURCE_DATE_EPOCH) www/doc/JavaCC.html www/doc/JavaCC.txt
cp bin/javacc bin/javacc5
cp bin/jjdoc bin/jjdoc5
More information about the Reproducible-bugs
mailing list