Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 924980 - java unable to build itself
Summary: java unable to build itself
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal blocker (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-02-19 13:11 UTC by Roman Gruber
Modified: 2024-02-19 16:47 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge.info,9.29 KB, text/plain)
2024-02-19 13:13 UTC, Roman Gruber
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Roman Gruber 2024-02-19 13:11:25 UTC
Sienna_Cichlid /home/roman # qlist -Iv openjdk-bin
Sienna_Cichlid /home/roman # qlist -Iv java
Sienna_Cichlid /home/roman # emerge -av openjdk

These are the packages that would be merged, in order:

Calculating dependencies... done!
Dependency resolution took 1.28 s (backtrack: 1/20).



[ebuild  N     ] dev-java/openjdk-21.0.1_p12:21::gentoo  USE="alsa cups (system-bootstrap) (-big-endian) -debug -doc -examples -headless-awt (-javafx) -jbootstrap -lto (-selinux) -source -systemtap" 109,611 KiB

Total: 1 package (1 new), Size of downloads: 109,611 KiB

 * Error: circular dependencies:

(dev-java/openjdk-21.0.1_p12:21/21::gentoo, ebuild scheduled for merge) depends on
 (dev-java/openjdk-21.0.1_p12:21/21::gentoo, ebuild scheduled for merge) (buildtime)

 * Note that circular dependencies can often be avoided by temporarily
 * disabling USE flags that trigger optional dependencies.
Sienna_Cichlid /home/roman # emerge --info |grep Time
Timestamp of repository gentoo: Mon, 19 Feb 2024 12:30:00 +0000


Reproducible: Always

Steps to Reproduce:
1. unmerge 

1708099013:  >>> unmerge success: dev-java/icedtea-bin-3.16.0-r2
1708106715:  *** emerge --jobs=12 --load-average=12.0 --regex-search-auto=y --unmerge =dev-java/openjdk-bin-21.0.1_p12 =dev-java/openjdk-bin-17.0.8.1_p1
1708106721: === Unmerging... (dev-java/openjdk-bin-21.0.1_p12)
1708106722:  >>> unmerge success: dev-java/openjdk-bin-21.0.1_p12
1708106722: === Unmerging... (dev-java/openjdk-bin-17.0.8.1_p1)
1708106723:  >>> unmerge success: dev-java/openjdk-bin-17.0.8.1_p1


2.
3.
Actual Results:  
There was a note while emerging that the bin version of java is not needed anymore. That is in fact not true on this long term installation from 2006.

Please fix portage dependency algorithm. As it is broken as of now.

Expected Results:  
No errors while using portage

Hint please test before making claim that gentoo can build java now from source!
That is strictly false or portage is heavily broken as of now.
Comment 1 Roman Gruber 2024-02-19 13:13:46 UTC
Created attachment 885414 [details]
emerge --info
Comment 2 Volkmar W. Pogatzki 2024-02-19 16:45:26 UTC
(In reply to Roman Gruber from comment #0)
> 
> There was a note while emerging that the bin version of java is not needed
> anymore. That is in fact not true on this long term installation from 2006.

Where have you seen that note?
USE=system-bootstrap is forced in profiles/base/package.use.force
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-02-19 16:47:08 UTC
I suspect you've masked openjdk-bin or similar which is why you get that.

We'd love a full bootstrap path from source for OpenJDK but you need Java to build Java.