#1137018 javacc5: please make the build reproducible

#1137018#5
Date:
2026-05-18 17:29:35 UTC
From:
To:
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,