Bug#991106: antlr: reproducible builds: timestamps .jar file

Vagrant Cascadian vagrant at reproducible-builds.org
Wed Jul 14 15:45:53 BST 2021


Source: antlr
Severity: normal
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org

Timestamps are embedded in the antlr.jar file:

  https://tests.reproducible-builds.org/debian/rb-pkg/bullseye/amd64/diffoscope-results/antlr.html

  ./usr/share/java/antlr-2.7.7.jar

  System.err.println("ANTLR·Parser·Generator···Version·2.7.7·(20210621)···1989-2005");
  vs.
  System.err.println("ANTLR·Parser·Generator···Version·2.7.7·(20220726)···1989-2005");

  Tool.version·=·"2.7.7·(20210621)";
  vs.
  Tool.version·=·"2.7.7·(20220726)";

  public·static·final·String·datestamp·=·"20210621";
  vs.
  public·static·final·String·datestamp·=·"20220726";

  public·static·final·String·project_version·=·"2.7.7·(20210621)";
  vs.
  public·static·final·String·project_version·=·"2.7.7·(20220726)";


The attached patches fix this by adding support for SOURCE_DATE_EPOCH to
configure.in and Makefile.in.


With these patches applied (and the recently submitted patch regarding
example Makefiles), antlr should become reproducible on the
tests.reproducible-builds.org infrastructure.


Thanks for maintaining antlr!


live well,
  vagrant
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-configure.in-Set-timestamp-from-SOURCE_DATE_EPOCH-va.patch
Type: text/x-diff
Size: 1188 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-java-maintainers/attachments/20210714/7628ff86/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-Makefile.in-Set-timestamp-from-SOURCE_DATE_PEOCH-env.patch
Type: text/x-diff
Size: 1119 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-java-maintainers/attachments/20210714/7628ff86/attachment-0001.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 227 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-java-maintainers/attachments/20210714/7628ff86/attachment.sig>


More information about the pkg-java-maintainers mailing list