Red Hat Bugzilla – Bug 157151
FC 4 Updates erase Sun Jdk/Jre
Last modified: 2014-01-21 17:52:02 EST
Description of problem:
Several updates from FC4 test have erased rpm installed Sun JRE from the system.
Version-Release number of selected component (if applicable):
Install Sun Jre.
Update regularly and check Yum logs.
Steps to Reproduce:
Sun Jre erased from system.
Would have expected FC updates to leave this alone.
Note that I did not identify a system component as I'm not certain just what is
See attached log files from selected dates when this occured.
Created attachment 114124 [details]
log files from described events
reassigning to rpm as yum doesn't have any control over implicit obsoletes.
*** Bug 156116 has been marked as a duplicate of this bug. ***
rpm -qp --provides jdk-1_5_0_03-linux-i586.rpm
jre = 1.5.0_03
j2sdk = 1.5.0_03
j2re = 1.5.0_03
jdk = 2000:1.5.0_03-fcs
D: ========== tsorting packages (order, #predecessors, #succesors, tree, depth,
D: 0 0 0 1 1 0 -jdk-1.5.0_03-fcs.i586
/* On upgrade, erase older packages of same color (if any). */
mi = rpmtsInitIterator(ts, RPMTAG_PROVIDENAME, rpmteN(p), 0);
So if you change RPMTAG_PROVIDENAME to RPMTAG_NAME
does the problem vanish?
and how many other, weirder problems does it create?
This is really the sun package not designed in a way to integrate with the rest
of the java/rpm world (JPackage). JPackage is recognised and used by the major
Linux RPM vendors.
Work around for you is to use the jpackage style rpm built from the
self-exploding binary (not the sun rpm) - see http://jpackage.org/rebuilding.php
An external howto is here http://www.mksearch.mkdoc.org/howto/jpackage-sun-fc3/
This is the best solution as you get a nicer laid out jdk that plays with the
Fedora java design and implementation (as it's based off JPackage). I'll try and
get something in the release notes about it - (probably "for proprietory JDKs
please use packages JPackage
Changing rpm to not key off PROVIDENAME at this time for FC4 is not tenable.