On 20/01/2022 11:02, Mark Thomas wrote:
On 19/01/2022 16:56, Rémy Maucherat wrote:
On Wed, Jan 19, 2022 at 5:52 PM Emmanuel Bourg <ebo...@apache.org> wrote:
Fortunately a non-reproducible javadoc isn't really important, what
matters the most is to have reproducible executable packages.
That seems like a reasonable statement !
Ack. I'll look at the Javadoc issue in slower time.

I'm currently looking at reproducibility cross-platform. There seem to be differences in ordering for entries in archives. I need to figure out what the root cause is before I decide whether cross-platform reproducibility is worth pursuing further or not.
I think I have figured this out. It is to do with ordering.

Ant's zip task orders files by name and then places them in the archive, adjusting the file separator as required.
The issue is that on Linux you have:

webapp/WEB-INF
webapp2/WEB-INF

whereas on Windows you have

webapp2\WEB-INF
webapp\WEB-INF

Because in ASCII:
'/'     is 0x2F
'0'-'9' is 0x30 to 0x39
'A'-'Z' is 0x41 to 0x5A
'\'     is 0x5C
'a'-'z' is 0x61 to 0x7A

The different file separator between platforms causes the file order to change.
I have been working on fixing this here:
https://github.com/markt-asf/tomcat/commits/reproducible

The biggest change is the removal of the applet example - but since that doesn't work on any mainstream browser these days I think that is OK.
I want to run a few more tests on this but, assuming they all pass, I'll 
probably apply these changes tomorrow. They will likely be reorganised 
when I do.
I haven't looked beyond the src.zip archive yet. I imagine there might 
be similar issues elsewhere.
Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to