Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 721004

Summary: dev-java/openjdk:11 circular dependency
Product: Gentoo Linux Reporter: Samuel Bernardo <samuelbernardo.mail>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED WORKSFORME    
Severity: normal CC: jstein
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Samuel Bernardo 2020-05-04 23:47:44 UTC
http://dpaste.com/0FFW86V
http://dpaste.com/0SQDHZC

dev-java/openjdk:11 have a dependency that results in a circular reference.

Circular dependency problem with openjdk:11 could be related to it need openjdk-bin to be built the first time, but the dependencies have a problem when the state is only icedtea installed.

After installing openjdk-bin is possible to install openjdk from source.

What about presenting a message with the requirement of openjdk-bin when neither is present, instead of the circular dependency between openjdk-bin and openjdk.
I think both dependencies are not necessary, but only a setup or pretend check for the presence of openjdk or openjdk-bin.
Comment 1 Jonas Stein gentoo-dev 2020-05-04 23:54:01 UTC
Please attach the logs. Do not use external websites like pastebins, whenever possible. 
External websites are not permanent, 
information will be lost and links may direct to spam or malware instead of the needed information.
Some developers maintain several hundred ebuilds and have to use tools to work with the attachments efficiently.
Comment 2 Samuel Bernardo 2020-05-05 00:10:20 UTC
Jonas Stein, I have no logs in this case because it fails due to circular dependency reference. So it fails when trying to fulfill the dependencies in gentoo tree.

What I can left here is only the following:

# emerge -v openjdk:11


[nomerge       ] dev-java/openjdk-11.0.7_p10:11::gentoo  USE="alsa cups javafx jbootstrap pch -debug -doc -examples (-gentoo-vm) -headless-awt (-nsplugin) (-selinux) -source -systemtap (-webstart)" 
[ebuild  N    ~]  dev-java/openjfx-11.0.7_p1:11::gentoo  USE="media -debug -doc -source" CPU_FLAGS_X86="sse2" 143,039 KiB
[ebuild  N    ~]   dev-java/openjdk-11.0.7_p10:11::gentoo  USE="alsa cups javafx jbootstrap pch -debug -doc -examples (-gentoo-vm) -headless-awt (-nsplugin) (-selinux) -source -systemtap (-webstart)" 89,177 KiB

Total: 2 packages (2 new), Size of downloads: 232,216 KiB

 * Error: circular dependencies:

(dev-java/openjdk-11.0.7_p10:11/11::gentoo, ebuild scheduled for merge) depends on
 (dev-java/openjdk-11.0.7_p10:11/11::gentoo, ebuild scheduled for merge) (buildtime)

 * Note that circular dependencies can often be avoided by temporarily
 * disabling USE flags that trigger optional dependencies.


For the possible solution I already left my suggestion in first comment.
Comment 3 Nuno Silva 2020-05-05 00:35:35 UTC
Could the problem here be autounmask?
Comment 4 Samuel Bernardo 2020-05-05 01:36:50 UTC
(In reply to Nuno Silva from comment #3)
> Could the problem here be autounmask?

Thanks Nuno.
Yes, it is. But also javafx flag.