Bug 505290 - alternatives settings for java isn't used well
alternatives settings for java isn't used well
Status: CLOSED NOTABUG
Product: Fedora
Classification: Fedora
Component: galternatives (Show other bugs)
11
x86_64 Linux
low Severity medium
: ---
: ---
Assigned To: Deji Akingunola
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2009-06-11 07:38 EDT by Major Péter
Modified: 2010-04-27 12:20 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2010-04-27 11:02:42 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Major Péter 2009-06-11 07:38:34 EDT
Description of problem:
If I would like to use Sun JDK instead of OpenJDK and I do the same things as it's described here:
http://fedorasolved.org/browser-solutions/sun-jdk
The resolution is, that yum doesn't care with the alternatives settings and for example it wants to download the openjdk even though the Sun JDK is the only option setted in "alternatives --config java"

Version-Release number of selected component (if applicable):
alternatives 1.3.42

How reproducible:


Steps to Reproduce:
1. doing these exact steps as described here:
http://fedorasolved.org/browser-solutions/sun-jdk
2. openjdk is not installed
3. try to run: "yum install maven2
  
Actual results:
yum wants to install openjdk too

Expected results:
Yum realizes, that Sun JDK is already installed, and don't install OpenJDK

Additional info:
Comment 1 Bug Zapper 2010-04-27 10:46:14 EDT
This message is a reminder that Fedora 11 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 11.  It is Fedora's policy to close all
bug reports from releases that are no longer maintained.  At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '11'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 11's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 11 is end of life.  If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora please change the 'version' of this 
bug to the applicable version.  If you are unable to change the version, 
please add a comment here and someone will do it for you.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping
Comment 2 Deji Akingunola 2010-04-27 11:02:42 EDT
Hi Major Peter,

I'm sorry I failed to see this bug for a long time. However I believe you mis-filed it under galternatives, the bug has nothing to do with it.

Moreover, I don't think it is a bug at all (neither with yum or OpenJDK). The issue must be that maven explicitly requires OpenJDK, and when you asked yum to install maven it tries to pull in OpenJDK too. 
If you have not resolved this problem already, I think all you need to do is just run the alternatives command again after you install OpenJDK and you should be fine.
Comment 3 Major Péter 2010-04-27 12:20:31 EDT
I initially thought, that when I configure alternatives to use Sun JDK instead of OpenJDK, then yum will also recognize this, and it wouldn't want to install OpenJDK for me, but realize, that there is a handly installed Sun JDK (yeah, I had to install by hand, because it's not in the repo...).

The solution was to download maven from apache.org, and install it manually.
So whenever I want to use a Java-dependent thing I have to install manually, just because I don't want to use OpenJDK.
Great, but never mind, I got used to it in the last year...

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