Bug 1272145 - Java and javapackages-tools have cyclic dependencies
Summary: Java and javapackages-tools have cyclic dependencies
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: javapackages-tools
Version: 23
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Mikolaj Izdebski
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-10-15 14:49 UTC by Stanislav Baiduzhyi
Modified: 2016-05-05 04:41 UTC (History)
10 users (show)

Fixed In Version: 4.6.0-7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-11-02 10:39:38 UTC
Type: Bug


Attachments (Terms of Use)

Description Stanislav Baiduzhyi 2015-10-15 14:49:46 UTC
Description of problem:
Trying to install java-1.8.0-openjdk-headless drags javapackages-tools as dependency. Trying to install javapackages-tools drags java-1.8.0-openjdk-headless as dependency.

Version-Release number of selected component (if applicable):
java-1.8.0-openjdk-headless 1.8.0.60-14.b27.f23
javapackages-tools 4.6.0-6.fc23

How reproducible:
always.

Steps to Reproduce:
1. dnf install javapackages-tools and look at list of depdencies.
2. dnf install java-1.8.0-openjdk-headless and look at list of dependencies.

Actual results:
System will have both javapackages-tools and java-1.8.0-openjdk-headless.

Expected results:
System with all the dependencies for offline java installation.

Additional info:

Comment 1 Mikolaj Izdebski 2015-10-16 06:05:01 UTC
This is intentional. Is there any particular problem this is causing?

Comment 2 jiri vanek 2015-10-16 09:45:31 UTC
Cyclic dependencies are possible traps. So one of us should remove requires.
What javapackages-tools needs jvm for?

And seocndly.. What does I need i for in openjdk.

# Require javapackages-tools for ownership of /usr/lib/jvm/
Requires: javapackages-tools

Looks still valid, but cant it be done better?

Comment 3 Stanislav Baiduzhyi 2015-10-16 15:28:15 UTC
(In reply to Mikolaj Izdebski from comment #1)
> This is intentional. Is there any particular problem this is causing?

With cyclic dependency like this it is not possible any more to have a machine prepared for offline testing of locally built jdk packages. It was possible before.

Comment 4 Mikolaj Izdebski 2015-10-19 11:30:27 UTC
After further investigation I see that this is indeed a bug. javapackages-tools doesn't have explicit requires on java-headless in spec file, but this requirement was generated automatically by our dependency generators. I will fix this by filtering generated dependencies.

Comment 5 Mikolaj Izdebski 2015-10-19 11:49:47 UTC
Fixed in javapackages-tools-4.6.0-7

Comment 6 Fedora Update System 2015-10-20 05:06:15 UTC
javapackages-tools-4.6.0-7.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2015-b301f0d4e7

Comment 7 Fedora Update System 2015-10-20 21:57:52 UTC
javapackages-tools-4.6.0-7.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
$ su -c 'dnf --enablerepo=updates-testing update javapackages-tools'
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-b301f0d4e7

Comment 8 Fedora Update System 2015-11-01 02:32:49 UTC
javapackages-tools-4.6.0-7.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.

Comment 9 Mikolaj Izdebski 2015-11-02 10:39:38 UTC
I believe that this bug is fixed in javapackages-tools-4.6.0-7,
which is available in updates for Fedora 23, so I am closing this bug now.

The build containing the fix can be found at Koji:
http://koji.fedoraproject.org/koji/buildinfo?buildID=692872


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