https://bugzilla.redhat.com/show_bug.cgi?id=1166156
Bug ID: 1166156
Summary: Some OSGI requires/provides not found
Product: Fedora
Version: 21
Component: javapackages-tools
Assignee: mizdebsk(a)redhat.com
Reporter: paul(a)city-fan.org
QA Contact: extras-qa(a)fedoraproject.org
CC: java-sig-commits(a)lists.fedoraproject.org,
mizdebsk(a)redhat.com, msimacek(a)redhat.com,
msrb(a)redhat.com
I am building my own local package of the Oracle Java JDK, and get a dependency
error when trying to install the -devel package when it's built on F-21
(x86_64) with the new OSGI dependencies:
Error: Package: java-1.7.0-oracle-devel-1.7.0.72-1.0.cf.x86_64
(/java-1.7.0-oracle-devel-1.7.0.72-1.0.cf.x86_64)
Requires: osgi(com.jrockit.mc.rjmx)
I have tracked this down to the OSGI dependency generator not processing the
MANIFEST.MF file that declares this, and the reason for that is that the
installed path for the file is under neither %{_datadir} nor %{_libdir} but
/usr/lib/jvm.
I suggest the following change to osgi.attr:
--- old/usr/lib/rpm/fileattrs/osgi.attr
+++ new/usr/lib/rpm/fileattrs/osgi.attr
%__osgi_provides_opts %{_builddir}/%{?buildsubdir}
%__osgi_requires %{_rpmconfigdir}/osgi.req
%__osgi_requires_opts %{_builddir}/%{?buildsubdir}
-%__osgi_path ^(.*\\.jar$|((%{_libdir}|%{_datadir}).*/MANIFEST.MF))
+%__osgi_path ^(.*\\.jar$|.*/META-INF/MANIFEST\\.MF$)
This would be more in line with the javapackages.common.osgi python module,
which has:
def open_manifest(path):
mf = None
if path.endswith("META-INF/MANIFEST.MF"):
mf = open(path, "rb")
--
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug
https://bugzilla.redhat.com/token.cgi?t=2tQkSA9fz3&a=cc_unsubscribe