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")
This is already fixed upstream: https://github.com/mizdebsk/javapackages/commit/c134f44f
Is this likely to find its way into Fedora any time soon?
I've commited further improvement to the pattern used: https://github.com/mizdebsk/javapackages/commit/4bdba501 (In reply to Paul Howarth from comment #2) > Is this likely to find its way into Fedora any time soon? I will prepare an update tomorrow.
Fixed in javapackages-tools-4.1.0-4
javapackages-tools-4.1.0-4.fc21 has been submitted as an update for Fedora 21. https://admin.fedoraproject.org/updates/javapackages-tools-4.1.0-4.fc21
Package javapackages-tools-4.1.0-4.fc21: * should fix your issue, * was pushed to the Fedora 21 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing javapackages-tools-4.1.0-4.fc21' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2014-15584/javapackages-tools-4.1.0-4.fc21 then log in and leave karma (feedback).
Hmm, this change seems to break generating osgi provides for dir-shaped eclipse bundles such as those that might be found in /usr/lib64/eclipse Please see the attached patch for a suggested fix
Created attachment 962184 [details] Proposed patch
Fixed in javapackages-tools-4.1.0-7
javapackages-tools-4.1.0-4.fc21 has been pushed to the Fedora 21 stable repository. If problems still persist, please make note of it in this bug report.
What happened here? javapackages-tools-4.1.0-4.fc21 was unpushed, no?
Is it possible to submit javapackages-tools-4.1.0-7.fc21 as an update?
I believe that this bug is fixed in javapackages-tools-4.1.0-7, which is available in updates for Fedora 21, so I am closing this bug now. The build containing the fix can be found at Koji: http://koji.fedoraproject.org/koji/buildinfo?buildID=596077