all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Chris Marusich <cmmarusich@gmail.com>
To: "Gábor Boskovits" <boskovits@gmail.com>,
	"Ricardo Wurmus" <rekado@elephly.net>,
	"Julien Lepiller" <julien@lepiller.eu>
Cc: 29896-done@debbugs.gnu.org
Subject: bug#29896: [PATCH] gnu: java-asm: Update to 6.0.
Date: Sat, 20 Jan 2018 13:43:06 -0800	[thread overview]
Message-ID: <87y3ksw6j9.fsf@gmail.com> (raw)
In-Reply-To: <CAE4v=ph0gyPEP+KK_QNEA5Xfy=NqwMT1sMaS4xBCBQhdCLuq5g@mail.gmail.com> ("Gábor Boskovits"'s message of "Sat, 20 Jan 2018 10:08:04 +0100")

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

Gábor Boskovits <boskovits@gmail.com> writes:

> Actually I am not sure, that bnd is used runtime. How could we check that?

The only class in the java-asm source code that uses bnd seems to be
ModuleInfoBndPlugin.java.  I checked by grepping for imports that
mentioned the string "bnd".  This class is declared public, and it is
included in the output JAR, so it is technically possible for code that
depends on java-asm to use this class (and therefore java-aqute-bndlib)
at runtime, even though there might also be code that depends on
java-asm that does not use this class at runtime.  So it seems
reasonable to make it a propagated-input.  The only downside is that
java-aqute-bndlib is 125% larger than java-asm (1.8 MiB compared to 0.8
MiB).

I've committed this patch as d0e9ded713e06790aad4992de7c26d075d18b86d,
with the changes we agreed upon.  I've also added a copyright line for
both you and me gnu/packages/java.scm.

Julien Lepiller <julien@lepiller.eu> writes:

> There's a method to get references to a dependency in java: you can put
> it in the MANIFEST.MF file as:
>
> Class-Path: /gnu/store/...
>
> It's a space-separated list of jar files that have to be added to the
> classpath. This could be done in a phase that runs just before the
> build phase, like the phase that adds a Main-Class.

We've considered using this feature, but I don't know if anybody
followed through and tried it out.  Your help would be welcome!  Prior
discussions can be found here:

https://lists.gnu.org/archive/html/guix-devel/2017-04/msg00249.html
https://lists.gnu.org/archive/html/guix-devel/2017-05/msg00019.html

If you want to discuss this further, please start a new thread on
guix-devel@gnu.org.

Ricardo Wurmus <rekado@elephly.net> writes:

> Chris Marusich <cmmarusich@gmail.com> writes:
>
>> The installed software still won't
>> work without additional work on the part of the user (e.g., the user
>> needs to set the CLASSPATH when invoking java, or use java's -cp
>> option), but for now at least making the input a propagated input will
>> ensure that it gets installed alongside the package which at runtime
>> requires it, which is better than nothing.
>
> This can be fixed by adding a search path specification for CLASSPATH to
> the icedtea packages.

I think that's a good idea!  I'll follow up with a separate patch later,
unless you beat me to it.

-- 
Chris

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

  parent reply	other threads:[~2018-01-20 21:44 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-29 19:00 [bug#29896] [PATCH core-updates] gnu: java-asm: Update to 6.0 Gábor Boskovits
2018-01-07 21:23 ` [bug#29896] [PATCH] " Gábor Boskovits
2018-01-07 21:27   ` Gábor Boskovits
2018-01-19  6:35   ` Chris Marusich
2018-01-19  8:11     ` Gábor Boskovits
2018-01-19  9:59       ` Chris Marusich
2018-01-19 12:13         ` Ricardo Wurmus
2018-01-20  0:12     ` Leo Famulari
2018-01-20  7:50       ` Chris Marusich
2018-01-20  9:08         ` Gábor Boskovits
2018-01-20 11:24           ` Julien Lepiller
2018-01-20 21:43           ` Chris Marusich [this message]
2018-01-21 13:52             ` Ricardo Wurmus
2018-01-20 11:29         ` Ricardo Wurmus

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=87y3ksw6j9.fsf@gmail.com \
    --to=cmmarusich@gmail.com \
    --cc=29896-done@debbugs.gnu.org \
    --cc=boskovits@gmail.com \
    --cc=julien@lepiller.eu \
    --cc=rekado@elephly.net \
    /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.