Red Hat Bugzilla – Bug 749103
libreoffice-report-builder installs java-1.5.0-gcj
Last modified: 2012-05-26 04:03:35 EDT
Description of problem:
Installing libreoffice-report-builder installs both java-1.5.0-gcj and java-1.6.0-openjdk. As some of the dependencies require java >= 1.6.0 it would be nice if we do not install second jvm on user systems (namely one that can not work for at least some of the cases - java-1.5.0-gcj).
Although java-1.5.0-gcj doesn't look big it has some requires like libgcj which are pretty big.
java-1.5.0-gcj seems to be installed because of gcj_support in certain libraries on which libreoffice depends and they seem to be maintained by the libreoffice maintainers. Easiest solution seem to be to drop gcj_support from this libraries.
All of which were there because it was the recommended practice to do so originally. http://fedoraproject.org/wiki/Packaging:Java#GCJ now says it isn't, but I don't recall any particularly visible notice that the recommendation had changed 100%
There were at least a few discussions on fedora mailing lists about gcj_support and it's pure state forcing people to have gcj installed even in situations where java 1.6 compatible jvm is requires. The end result was that it was decided on Java SIG meeting to change the guideline.
Anyway not building gcj_support will:
* reduce libreoffice dependencies with more than 50 MB (only libgcj is 48 M)
* significantly reduce dependencies(left)size - liblayout rpm is 1.2M with gcj and 651K without
* dependencies are noarch - build only once, directly imported into secondary archs
* faster install times - due to not invoking gcj dbtool
I can list more benefits but the real question is whether libreoffice is fully functional with java-1.5.0-gcj if some of its dependencies are requiring java 1.6?
Oh, I'm all in favour of dropping the aot stuff. LibreOffice probably does work fine (generally anyway, filed various bugs for the bits that don't work completely previously) with 1.5.0, though the occasional, typically sun/oracle-java dependencies rather than 1.6.0 dependencies creeps in every now and then.
Pain is in trawling through my java packages to rebuild them
So you wouldn't mind someone else helping you when some of these deps gets into his way?
oh absolutely, fire ahead
Think I've rebuilt all the dependencies I own which were built with aot into rawhide now
Caolan, please consult the package maintainers before doing such changes in their packages. I am reverting the change in itext now. This one is waiting the packaging committee response at:
The issue with itext is now resolved. The aot bits (java-1.5.0-gcj) parts of itext are now in a different package than the jar files.
You can now build libfonts against "itext-core" in Fedora 17 and above, and it will not pull in java-1.5.0-gcj anymore.
Oh also, the new itext-core will be in Fedora 17 buildroot override until Feb 21.
libfonts-1.1.3-7.fc17 has been submitted as an update for Fedora 17.
libfonts-1.1.3-7.fc17 has been pushed to the Fedora 17 stable repository. If problems still persist, please make note of it in this bug report.