Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Circular self-dependency installing openjdk
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
mutobj
n00b
n00b


Joined: 03 Mar 2019
Posts: 5

PostPosted: Sun Mar 03, 2019 9:48 am    Post subject: [SOLVED] Circular self-dependency installing openjdk Reply with quote

Hello, I'm trying to install openjdk (currently have vrtual/jdk and icedtea packages). But emerging it leads to the error:

Code:

 * Error: circular dependencies:

(dev-java/openjdk-11.0.2_p7:11/11::gentoo, ebuild scheduled for merge) depends on
 (dev-java/openjdk-11.0.2_p7: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.


What can I do?


Last edited by mutobj on Sun Mar 03, 2019 12:00 pm; edited 2 times in total
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 22325
Location: here

PostPosted: Sun Mar 03, 2019 10:03 am    Post subject: Reply with quote

Welcome to gentoo forum!

I think that first time you should install openjdk-bin, see dependencies
openjdk-11.0.2_p7.ebuild:
DEPEND="
        ${CDEPEND}
        app-arch/zip
        media-libs/alsa-lib
        net-print/cups
        !headless-awt? (
                x11-base/xorg-proto
        )
        || (
                dev-java/openjdk-bin:${SLOT}
                dev-java/openjdk:${SLOT}
        )
"


EDIT: then you can
Code:
# emerge -1 =dev-java/openjdk-bin-11.0.2_p7
# emerge =dev-java/openjdk-11.0.2_p7
# emerge -C =dev-java/openjdk-bin-11.0.2_p7

_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
mutobj
n00b
n00b


Joined: 03 Mar 2019
Posts: 5

PostPosted: Sun Mar 03, 2019 11:50 am    Post subject: Reply with quote

Thank you much, it worked!
Back to top
View user's profile Send private message
TechwoIf
n00b
n00b


Joined: 06 Aug 2007
Posts: 29

PostPosted: Mon Sep 09, 2019 6:43 pm    Post subject: Reply with quote

OOoooo...So thats why emerge openjdk pull in a BINARY package. I wanted to build from source, not install pre-built binaries.
Back to top
View user's profile Send private message
g2g591
Apprentice
Apprentice


Joined: 17 Sep 2007
Posts: 240

PostPosted: Fri Sep 13, 2019 10:39 am    Post subject: Reply with quote

TechwoIf wrote:
OOoooo...So thats why emerge openjdk pull in a BINARY package. I wanted to build from source, not install pre-built binaries.
Java, including the JDK, is written itself in java. So a JDK is needed to build a JDK. In ages past there used to be a java compiler in gcc ( GCJ ) that could be used instead to build a proper JDK, but that was removed in GCC 7 after a long period of little to no development.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum