From: Julien Lepiller <julien@lepiller.eu>
To: Maxim Cournoyer <maxim.cournoyer@gmail.com>,
Tobias Geerinckx-Rice <me@tobias.gr>
Cc: liliana.prikler@ist.tugraz.at, 58591@debbugs.gnu.org
Subject: bug#58591: Java packages do not appear to keep a reference to their inputs
Date: Tue, 18 Oct 2022 17:32:32 +0200 [thread overview]
Message-ID: <08A37CE8-730E-4FD8-96B5-64CC874BFA9B@lepiller.eu> (raw)
In-Reply-To: <87edv5w58e.fsf@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1442 bytes --]
Hi, replying to a few emails at once.
The ant-build-system uses zip -0 to produce an uncompressed archive. By default, jar produces a compressed one, so there's a repack phase for that:
http://git.savannah.nongnu.org/cgit/guix.git/tree/guix/build/ant-build-system.scm#n226
Embedding the classpath in the manifest is possible but would not have the expected effect. That's because a line in the manifest cannot exceed 72 bytes (see "line length" in https://docs.oracle.com/javase/8/docs/technotes/guides/jar/jar.html#Notes_on_Manifest_and_Signature_Files), so the classpath will look like:
Class-Path: ../../../1234567891011
1213141516/share/java/foo.jar
Although java would read that fine, the grafter will not see it, nor be able to graft foo in a meaningful manner: java would still use the ungrafted version even if another file references foo.
Le 18 octobre 2022 16:56:01 GMT+02:00, Maxim Cournoyer <maxim.cournoyer@gmail.com> a écrit :
>Hello,
>
>Maxim Cournoyer <maxim.cournoyer@gmail.com> writes:
>
>> Tobias Geerinckx-Rice <me@tobias.gr> writes:
>
>[...]
>
>>> Groan. Which package(s) compress .jars?
>>
>> Oh, aren't they all? I hadn't realized .jar compression was optional.
>
>Actually, reading [0] again, it seems a JAR *is* a zip archive, so
>cannot be either compressed or uncompressed.
>
>[0] https://docs.oracle.com/en/java/javase/19/docs/specs/jar/jar.html
>
>--
>Thanks,
>Maxim
[-- Attachment #2: Type: text/html, Size: 2478 bytes --]
next prev parent reply other threads:[~2022-10-18 15:33 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-17 21:04 bug#58591: Java packages do not appear to keep a reference to their inputs Maxim Cournoyer
2022-10-17 22:03 ` Julien Lepiller
2022-10-18 1:43 ` Mark H Weaver
2022-10-18 2:45 ` Maxim Cournoyer
2022-10-18 7:01 ` Maxime Devos
2022-10-18 7:36 ` Liliana Marie Prikler
2022-10-18 13:14 ` Maxim Cournoyer
2022-10-18 13:21 ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
2022-10-18 14:17 ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
2022-10-18 14:53 ` Maxim Cournoyer
2022-10-18 14:56 ` Maxim Cournoyer
2022-10-18 15:32 ` Julien Lepiller [this message]
2022-10-18 23:25 ` Maxim Cournoyer
2022-10-18 13:29 ` Maxim Cournoyer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=08A37CE8-730E-4FD8-96B5-64CC874BFA9B@lepiller.eu \
--to=julien@lepiller.eu \
--cc=58591@debbugs.gnu.org \
--cc=liliana.prikler@ist.tugraz.at \
--cc=maxim.cournoyer@gmail.com \
--cc=me@tobias.gr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.