unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#38162: icedtea "jar" tool could automatically pack reproducible jars
@ 2019-11-10 14:48 Danny Milosavljevic
  2019-11-11 20:59 ` Ludovic Courtès
  0 siblings, 1 reply; 2+ messages in thread
From: Danny Milosavljevic @ 2019-11-10 14:48 UTC (permalink / raw)
  To: 38162

[-- Attachment #1: Type: text/plain, Size: 548 bytes --]

Hi,

it would be better if icedtea's "jar" tool automatically packed reproducible jar
files instead of us doing some barely safe unzip-then-rezip-with-specific-order
in the ant-build-system.

It could check the environment variable SOURCE_DATE_EPOCH and then use that as
timestamp for the zip entries.

Alternatively, it could just leave the DOS timestamp field off of the zip
entries.

Maven already has support for the former[1]--we might be able to reuse that.

[1] https://maven.apache.org/plugins/maven-jar-plugin/jar-mojo.html

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#38162: icedtea "jar" tool could automatically pack reproducible jars
  2019-11-10 14:48 bug#38162: icedtea "jar" tool could automatically pack reproducible jars Danny Milosavljevic
@ 2019-11-11 20:59 ` Ludovic Courtès
  0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2019-11-11 20:59 UTC (permalink / raw)
  To: Danny Milosavljevic; +Cc: 38162

Hi Danny,

Danny Milosavljevic <dannym@scratchpost.org> skribis:

> it would be better if icedtea's "jar" tool automatically packed reproducible jar
> files instead of us doing some barely safe unzip-then-rezip-with-specific-order
> in the ant-build-system.
>
> It could check the environment variable SOURCE_DATE_EPOCH and then use that as
> timestamp for the zip entries.

Someone proposed patches several months ago to reset timestamps in
jar/zip files, which I reviewed, but then lost track of (which may well
be my fault!) and I can’t find them on guix-patches now.

If you don’t mind researching a bit :-), this could be helpful.

Ludo’.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-11-11 21:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-10 14:48 bug#38162: icedtea "jar" tool could automatically pack reproducible jars Danny Milosavljevic
2019-11-11 20:59 ` Ludovic Courtès

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).