Bug#951573: javatools: please make the build reproducible
Chris Lamb
lamby at debian.org
Tue Feb 18 09:56:56 GMT 2020
Source: javatools
Version: 0.72.10
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: toolchain randomness
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org
Hi,
Whilst working on the Reproducible Builds effort [0] we noticed that
jssc could not be built reproducibly. I eventually tracked this down
and I think this is very similar to a similar, older issue detailed
here:
https://bugs.debian.org/926542
... as somehow debhelper itself was parsing this strangely and ending
up printing warnings such as:
-s/--same-arch is deprecated; please use -a/--arch instead
If I applied the following patch to src:jssc then the build became
reproducible:
- jh_build -o "-source 1.6 -target 1.6 -encoding UTF-8" --javadoc-opts="-source 1.6 -encoding UTF-8"
+ jh_build --javacopts "-source 1.6 -target 1.6 -encoding UTF-8" --javadoc-opts="-source 1.6 -encoding UTF-8"
… but that seems a bit silly.
Patch for javastools attached that removes the "-o" option, but this
might not be the best idea (ie. one should likely deprecate it first,
such as how the -N short arg was also deprecated (see the top of the
jh_build file).
[0] https://reproducible-builds.org/
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` lamby at debian.org / chris-lamb.co.uk
`-
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: javatools.diff.txt
URL: <http://alioth-lists.debian.net/pipermail/pkg-java-maintainers/attachments/20200218/f5ae42fb/attachment.txt>
More information about the pkg-java-maintainers
mailing list