Bug 909890 - java-1.5.0-gcj: Please drop java virtual provides
Summary: java-1.5.0-gcj: Please drop java virtual provides
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: java-1.5.0-gcj
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jon VanAlten
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-02-11 12:04 UTC by Alexander Kurtakov
Modified: 2013-02-25 19:27 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-02-25 19:27:40 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 910093 0 unspecified CLOSED yum: dependency bloat when installing Java packages 2021-02-22 00:41:40 UTC

Internal Links: 910093

Description Alexander Kurtakov 2013-02-11 12:04:53 UTC
java-1.5.0-gcj has virtual provides of java, java-devel, java-javadoc, etc. 
Since yum prefers shortest name everytime a package requires java >= 1:1.5.0 gcj gets installed on users systems even if they already have openjdk installed. Which makes installations way bigger than needed and in practice we install a non-working jvm on users systems as java-1.5.0-gcj can't really be used because many packages contain 1.6 bytecode so it can't load it.
This should not break gcj-compiled packages since they already requires post/postun java-gcj-compat.

Comment 1 Mikolaj Izdebski 2013-02-11 12:07:49 UTC
This was proposed on fedora-java mailing list half year ago and no one opposed:
http://lists.fedoraproject.org/pipermail/java-devel/2012-August/004495.html

Comment 2 Stanislav Ochotnicky 2013-02-11 12:12:50 UTC
To give an example of problems this is causing, we've started to try out automatic requires for Maven packages. This coupled with few optimizations let us simplify dependencies significantly. We went down from 330 packages to 146[1], but in the process automatic requires pulled in gcj partially due to mentioned yum bug. Even though we went to 146 packages, our install size actually grew by around 80 MB.




[1] https://binaryparadise.com/~w0rm/files/fedora/min_install/maven.svg

Comment 3 Jon VanAlten 2013-02-20 23:42:28 UTC
I'll look into this tomorrow, but I have one question for those affected.  This was reported against rawhide.  Is this going to be a problem in F18/17 as well?

Comment 4 Alexander Kurtakov 2013-02-21 08:52:31 UTC
(In reply to comment #3)
> I'll look into this tomorrow, but I have one question for those affected. 
> This was reported against rawhide.  Is this going to be a problem in F18/17
> as well?

Such changes shouldn't happen in already released version. Even if there are people using gcj we would not do any good for them switching the jvm mid-release.

Comment 5 Stanislav Ochotnicky 2013-02-21 09:10:39 UTC
(In reply to comment #4)
> (In reply to comment #3)
> > I'll look into this tomorrow, but I have one question for those affected. 
> > This was reported against rawhide.  Is this going to be a problem in F18/17
> > as well?
> 
> Such changes shouldn't happen in already released version. Even if there are
> people using gcj we would not do any good for them switching the jvm
> mid-release.

Seconded. There's obvious problem with Java on secondary architectures where openjdk is not available though. If provides are simply removed, other archs will stop working since there will be no package that would provide "java". The real problem is yum pulling in gcj when it should not(#910093), but that is likely a bugfix with higher likelihood of breaking other things.

Comment 6 Stanislav Ochotnicky 2013-02-21 09:30:02 UTC
(In reply to comment #5)
> If provides are simply removed, other archs will stop working since there will be no package that would provide "java".

Bah, scratch that. I am should have had that coffee first...

Comment 7 Jon VanAlten 2013-02-25 19:27:40 UTC
Built in rawhide:

http://koji.fedoraproject.org/koji/taskinfo?taskID=5054507

Please reopen with comments if any issues.


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