guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "jar" tool and and reproducible builds - how?


From: Gábor Boskovits
Subject: Re: "jar" tool and and reproducible builds - how?
Date: Mon, 4 Nov 2019 22:43:34 +0100

Hello Danny,

Danny Milosavljevic <address@hidden> ezt írta (időpont: 2019. nov. 4., H, 18:18):
Hi,

I'm trying to package nesc which has some small tools written in Java.
It compiles them using "javac" and then packs the result using "jar".

If I want

  guix build --rounds=2 nesc

to pass, how do I best proceed?

I tried

             (substitute* "tools/Makefile.in"
              ((" jar cf \\.\\./nesc.jar")
               " zip -0 -X ../nesc.jar META-INF/MANIFEST.MF "))

but that doesn't seem to be enough.


What diff remains there? There might be more jars or jmods inside...
Most of the trickery should be in ant build system.
 
WIP attached.

Furthermore, I think it would be nice to patch our "jar" tool in icedtea:jdk
so that it provides an option to disable timestamps (not put the timestamp
field into the generated ZIP file in the first place).  I've thus unpacked
icedtea but I can't find where the source code to "jar" is.

I don't know right now, but have a look later.

Best regards,
g_bor
--
OpenPGP Key Fingerprint: 7988:3B9F:7D6A:4DBF:3719:0367:2506:A96C:CF63:0B21

reply via email to

[Prev in Thread] Current Thread [Next in Thread]