[fedora-java] osgi system bundle

Andy Grimm agrimm at gmail.com
Thu Aug 16 22:12:09 UTC 2012


Nevermind.  It was in a separate jar (xalan-j2-serializer)

On Thu, Aug 16, 2012 at 5:39 PM, Andy Grimm <agrimm at gmail.com> wrote:
> I would, but such a line does not exist.  The only Require-Bundle line
> has org.apache.xerces
>
> Further, I am assuming that the script driving these deps is
> /usr/lib/rpm/osgideps.pl , and I get this:
>
> $ echo /usr/share/java/xalan-j2.jar | /usr/lib/rpm/osgideps.pl --requires
> osgi(org.apache.xerces)
>
> so I don't really understand where the system.bundle requirement is coming from.
>
> On Thu, Aug 16, 2012 at 3:55 PM, Aleksandar Kurtakov
> <akurtako at redhat.com> wrote:
>> Just remove the system.bundle from Require-Bundle tag in the META-INF/MANIFEST.MF file in the jar.
>>
>> Regards,
>> Alex
>>
>> ----- Original Message -----
>>> From: "Andy Grimm" <agrimm at gmail.com>
>>> To: "Aleksandar Kurtakov" <akurtako at redhat.com>
>>> Cc: "java-devel" <java-devel at lists.fedoraproject.org>, "Krzysztof Daniel" <kdaniel at redhat.com>
>>> Sent: Thursday, August 16, 2012 9:55:39 PM
>>> Subject: Re: [fedora-java] osgi system bundle
>>>
>>> On Wed, Aug 15, 2012 at 4:21 PM, Aleksandar Kurtakov
>>> <akurtako at redhat.com> wrote:
>>> >
>>> >
>>> > ----- Original Message -----
>>> >> From: "Andy Grimm" <agrimm at gmail.com>
>>> >> To: "java-devel" <java-devel at lists.fedoraproject.org>
>>> >> Sent: Wednesday, August 15, 2012 6:03:38 PM
>>> >> Subject: [fedora-java] osgi system bundle
>>> >>
>>> >> Hi, all.  This morning I was dealing with a build issue related to
>>> >> broken eclipse package, and it surprised me that eclipse was being
>>> >> pulled into my buildroot for a random java package.  The root of
>>> >> this
>>> >> is that osgi(system.bundle) is provided by eclipse-rcp, which
>>> >> requires
>>> >> eclipse-platform, and osgi(system.bundle) is now being required by
>>> >> some fairly commonly used java packages:
>>> >>
>>> >> xalan-j2-0:2.7.1-13.fc18.noarch
>>> >> xbean-0:3.11.1-3.fc18.noarch
>>> >> xml-commons-apis-0:1.4.01-7.fc18.noarch
>>> >> xml-commons-resolver-0:1.2-9.fc18.noarch
>>> >>
>>> >> In particular, xalan-j2 is required for pretty much the entire
>>> >> java
>>> >> ecosystem, including ant, maven, groovy, various apache-commons
>>> >> packages, etc.
>>> >>
>>> >> So what's the rationale for this?  Perhaps this is a bug? Maybe
>>> >> something needs to be subpackaged differently?  The current state
>>> >> of
>>> >> things seems a bit bloated to me.
>>> >
>>> > Well, these are bugs in the packages you mentioned. See
>>> > http://wiki.osgi.org/wiki/System_Bundle for description what
>>> > system.bundle is. There is no point in any bundle requiring
>>> > system.bundle unless they call stuff from org.osgi.framework which
>>> > neither xalan-j2 nor xml-commons do. Please open bug reports
>>> > against the respective packages to fix their osgi manifests.
>>>
>>> Ok, I can open the bugs, but I'm actually the owner of xalan-j2, so
>>> that's just going to come right back to me. (and actually, somebody
>>> just emailed xalan-j2-owners about it).  :-)  Could you help me
>>> determine the correct way to get rid of this dep?
>>>
>>> Thanks.
>>>
>>> Andy
>>>
>>>
>>> > TBH, we probably can move the system.bundle provide (it's manual)
>>> > to eclipse-equinox-osgi. Chris, would you please take care of
>>> > moving this provides.
>>> >
>>> > Regards,
>>> > Alex
>>> >
>>> > Regards,
>>> > Alex
>>> >
>>> >>
>>> >> Thanks.
>>> >>
>>> >> Andy
>>> >> --
>>> >> java-devel mailing list
>>> >> java-devel at lists.fedoraproject.org
>>> >> https://admin.fedoraproject.org/mailman/listinfo/java-devel
>>>


More information about the java-devel mailing list