On 12/01/2023 08:35, Rémy Maucherat wrote:
On Wed, Jan 11, 2023 at 10:48 PM Romain Manni-Bucau
<rmannibu...@gmail.com> wrote:
Guess it was more about default java for linux distro, build is only
reproducible if target --release flag is <= java distro version which will
not be the case for java 21 soon enough probably, not really a build issue
by itself more an ecosystem one - distro consumming sources.
If you want to reproduce the build for some reason, the
build.properties.release file that is included in the tag needs to be
looked at. The platform matters (trying to reproduce on Windows a
release built on Linux will not work for example, according to what
Mark said earlier), and the Java version does too, so all that
information is there.
Correction: Build on Linux, reproduce on Windows works. As does the reverse.
Fixing reproducible builds across Java (and Ant) versions is doable and
is on my TODO list (somewhere near the middle at the moment).
Mark
Rémy
Le mer. 11 janv. 2023 à 21:41, Mark Thomas <ma...@apache.org> a écrit :
On 11/01/2023 20:15, Michael Osipov wrote:
Even if not, there is another problem with that: When you build with
Java 17, that build cannot be reproduced on Java 11 or 8 because class
file content will be different.
Experience in the Tomcat project says otherwise.
We can already reproduce builds across platforms. The current Tomcat
builds are reproducible across Windows and Linux (and I suspect MacOS
although I haven't tested that recently).
We also know the only blocker to cross-Java version builds is the
MANIFEST.MF content. The class files are identical.
Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org