Source: javacc5
Version: 5.0-11
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: nocheck
X-Debbugs-Cc: [email protected]

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
     `. `'`      [email protected] / chris-lamb.co.uk
       `-
--- 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

Reply via email to