Bug 1054321 - Updating java-1.7.0-openjdk breaks selected java alternative.
Summary: Updating java-1.7.0-openjdk breaks selected java alternative.
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: java-1.7.0-openjdk
Version: 19
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: jiri vanek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-01-16 15:39 UTC by John Griffiths
Modified: 2014-01-20 16:28 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-01-20 16:28:11 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description John Griffiths 2014-01-16 15:39:40 UTC
Description of problem:
When java-1.7.0-openjdk is updated, it makes the assumption that it should be the default even when other versions of Java are installed.

Version-Release number of selected component (if applicable):
  java-1.7.0-openjdk.x86_64 1:1.7.0.60-2.4.4.0.fc19                             

How reproducible:
always

Steps to Reproduce:
1. Have some other version of Java set as the default and one in use. Make sure it is  set to have a priority greater than that of openjdk
2. Update openjdk


Actual results:
alternatives --config java

There are 3 programs which provide 'java'.

  Selection    Command
-----------------------------------------------
   1           /opt/LATEST/jre/bin/java
   2           /opt/SDK/jre/bin/java
*+ 3           /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.60-2.4.4.0.fc19.x86_64/jre/bin/java

/opt/LATEST/jre/bin/java was set to a priority of 170050.
/opt/SDK/jre/bin/java - priority 170049

which were both greater than what the priority of openjdk had been.
The priority of openjdk was reset to 170051.

Expected results:
My original priorities and selection in alternatives should have been respected.

Comment 1 jiri vanek 2014-01-20 16:28:11 UTC
hi!

In f20 there is check whether you have alternatives on manual. If so, they are preserved.


Note You need to log in before you can comment on or make changes to this bug.