Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 832866 - sci-mathematics/geogebra-bin: there are no ebuilds to satisfy "dev-java/openjdk:11[javafx]"
Summary: sci-mathematics/geogebra-bin: there are no ebuilds to satisfy "dev-java/openj...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-07 20:32 UTC by Thomas Capricelli
Modified: 2022-02-14 16:12 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Capricelli 2022-02-07 20:32:52 UTC
emerge sci-mathematics/geogebra-bin

emerge: there are no ebuilds to satisfy "dev-java/openjdk:11[javafx]".
(dependency required by "sci-mathematics/geogebra-bin-5.0.683.0::gentoo" [ebuild])
(dependency required by "sci-mathematics/geogebra-bin" [argument])

And, indeed, openjdk:11 doesn't have any 'javafx' flag:

# equery uses dev-java/openjdk
[ Legend : U - final flag setting for installation]
[        : I - package is installed with flag     ]
[ Colors : set, unset                             ]
 * Found these USE flags for dev-java/openjdk-17.0.2_p8:
 U I
 + + alsa         : Add support for media-libs/alsa-lib (Advanced Linux Sound Architecture)
 + + cups         : Add support for CUPS (Common Unix Printing System)
 - - debug        : Enable extra debug codepaths, like asserts and extra output. If you want to get meaningful backtraces see
                    https://wiki.gentoo.org/wiki/Project:Quality_Assurance/Backtraces
 - - doc          : Add extra documentation (API, Javadoc, etc). It is recommended to enable per package instead of globally
 - - examples     : Install examples, usually source code
 - - headless-awt : Don't install the X backend for AWT, needed by some GUIs
 + - jbootstrap   : Build OpenJDK twice, the second time using the result of the first
 - - source       : Install JVM sources
 - - systemtap    : (Restricted to >=dev-java/openjdk-11)
                    Enable SystemTAP/DTrace tracing

Reproducible: Always
Comment 1 Georgy Yakovlev archtester gentoo-dev 2022-02-11 02:18:01 UTC
There’s no such flag for openjdk-17 indeed, which is what your output shows.
It’s a flag for :8 and :11
It’s stable-masked, so you have to unmask this flag on stable system to install unstable-only geogebra.
Comment 2 Thomas Capricelli 2022-02-14 02:10:00 UTC
(In reply to Georgy Yakovlev from comment #1)
> There’s no such flag for openjdk-17 indeed, which is what your output shows.
> It’s a flag for :8 and :11
> It’s stable-masked, so you have to unmask this flag on stable system to
> install unstable-only geogebra.

I dont understand what you mean. I didn't even know flags could be masked. I googled that, and it seems i can't 'unmask' a flag from /etc/portage, i need to patch the profile files in git for this. Sounds frightening.

But for a beginning, i'm running ~amd64, so "unstable" already. For ex there's not stable ebuilds for geogebra-bin, but i didn't accept_keywords it. So i'm lost about what you say about stable/unstable.

I still think there's a bug. A package in the official tree (even if ~amd64) breaks right from the start.
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-02-14 02:27:05 UTC
(In reply to Thomas Capricelli from comment #2)
> (In reply to Georgy Yakovlev from comment #1)
> > There’s no such flag for openjdk-17 indeed, which is what your output shows.
> > It’s a flag for :8 and :11
> > It’s stable-masked, so you have to unmask this flag on stable system to
> > install unstable-only geogebra.
> 
> I dont understand what you mean. I didn't even know flags could be masked. I
> googled that, and it seems i can't 'unmask' a flag from /etc/portage, i need
> to patch the profile files in git for this. Sounds frightening.
> 

That's false. You can definitely unmask flags in both /etc/portage and /etc/portage/profile (create the directory).

> But for a beginning, i'm running ~amd64, so "unstable" already. For ex
> there's not stable ebuilds for geogebra-bin, but i didn't accept_keywords
> it. So i'm lost about what you say about stable/unstable.
> 
> I still think there's a bug. A package in the official tree (even if ~amd64)
> breaks right from the start.


Not sure this is right.

1. 
```
# ACCEPT_LICENSE="*" emerge -av1 sci-mathematics/geogebra-bin

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

Calculating dependencies... done!


[nomerge       ] sci-mathematics/geogebra-bin-5.0.683.0::gentoo 
[nomerge       ]  dev-java/openjdk-11.0.14_p9-r1:11::gentoo  USE="alsa javafx jbootstrap (system-bootstrap) (-big-endian) -cups -debug -doc -examples -headless-awt (-selinux) -source -systemtap" 
[ebuild  N     ]   dev-java/openjfx-11.0.11_p1:11::gentoo  USE="media -debug -doc -source" CPU_FLAGS_X86="sse2" 146,215 KiB
[ebuild  N     ]    dev-java/openjdk-11.0.14_p9-r1:11::gentoo  USE="alsa javafx jbootstrap (system-bootstrap) (-big-endian) -cups -debug -doc -examples -headless-awt (-selinux) -source -systemtap" 119,925 KiB
[ebuild  N     ] sci-mathematics/geogebra-bin-5.0.683.0::gentoo  128,024 KiB

Total: 3 packages (3 new), Size of downloads: 394,163 KiB

 * Error: circular dependencies:

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

!!! The following binary packages have been ignored due to non matching USE:

    =dev-java/openjdk-bin-11.0.13_p8 gentoo-vm

NOTE: The --binpkg-respect-use=n option will prevent emerge
      from ignoring these binary packages if possible.
      Using --binpkg-respect-use=y will silence this warning.

The following USE changes are necessary to proceed:
 (see "package.use" in the portage(5) man page for more details)
# required by sci-mathematics/geogebra-bin-5.0.683.0::gentoo
# required by sci-mathematics/geogebra-bin (argument)
>=dev-java/openjdk-11.0.14_p9-r1:11 javafx

Would you like to add these changes to your config files? [Yes/No] 
```

2.
```
# ACCEPT_LICENSE="*" emerge -av1 sci-mathematics/geogebra-bin

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

Calculating dependencies... done!
[binary  N     ] dev-java/javatoolkit-0.6.7::gentoo  PYTHON_TARGETS="python3_8 python3_9 python3_10" 0 KiB
[ebuild  NS    ] dev-java/openjdk-bin-11.0.14_p9-r1:11::gentoo [8.322_p06:8::gentoo, 17.0.2_p8:17::gentoo] USE="alsa -cups -headless-awt (-selinux) -source (-gentoo-vm%)" 188,584 KiB
[binary  N     ] virtual/jdk-1.8.0-r6:1.8::gentoo  USE="-headless-awt" 0 KiB
[ebuild  N     ] dev-java/ant-core-1.10.9-r2::gentoo  USE="-doc -source" 0 KiB
[binary  N     ] virtual/jre-1.8.0-r3:1.8::gentoo  0 KiB
[ebuild  N     ] dev-java/antlr-2.7.7-r9::gentoo  USE="-doc -examples -source" 1,774 KiB
[ebuild  N     ] dev-java/hamcrest-core-1.1-r4::gentoo  USE="-doc -source" 1,219 KiB
[ebuild  N     ] dev-java/stringtemplate-3.2.1-r2::gentoo  USE="-doc -source -test" 106 KiB
[ebuild  N     ] dev-java/antlr-runtime-3.5.2:3.5::gentoo  USE="-doc -source" 202 KiB
[ebuild  N     ] dev-java/stringtemplate-4.3.1:4::gentoo  USE="-doc -source -test" 616 KiB
[ebuild  N     ] dev-java/antlr-tool-3.5.2:3.5::gentoo  USE="-doc -source -test" 7,700 KiB
[ebuild  N     ] dev-java/antlr-3.5.2-r2:3.5::gentoo  0 KiB
[ebuild  N     ] dev-java/swt-4.10-r2:4.10::gentoo  USE="cairo opengl -webkit" 3,755 KiB
[ebuild  N     ] dev-java/openjfx-11.0.11_p1:11::gentoo  USE="media -debug -doc -source" CPU_FLAGS_X86="sse2" 146,215 KiB
[ebuild  N     ] dev-java/openjdk-11.0.14_p9-r1:11::gentoo  USE="alsa javafx jbootstrap (system-bootstrap) (-big-endian) -cups -debug -doc -examples -headless-awt (-selinux) -source -systemtap" 119,925 KiB
[ebuild  N     ] sci-mathematics/geogebra-bin-5.0.683.0::gentoo  128,024 KiB

Total: 16 packages (15 new, 1 in new slot, 3 binaries), Size of downloads: 598,114 KiB
```

The flag exists for OpenJDK 8 and OpenJDK 11. The only way you'd get that error, I thikn, is on a stable system without putting the necessary bits in package.accept_keywords (which I think makes stable-masks get ignored) or unmasking the flag.

Please give more detail, including full emerge --verbose output, and emerge --info, and grep -rsin "java" /etc/portage.
Comment 4 Thomas Capricelli 2022-02-14 15:07:40 UTC
Err.. now it works (still on ~amd64). But I've updated the portage tree since then. Let's keep this ticket as invalid, i'll report with more details if i can reproduce it.
Comment 5 Georgy Yakovlev archtester gentoo-dev 2022-02-14 16:12:51 UTC
Situation you’ve described (flag does not exist but something depends on it) is simply illegal and wouldn’t pass automated CI and will not hit sync mirrors or user systems.
Likely some local configuration caused a blip. Anyway, let us know if you still have a problem but with more output next time, like Sam mentioned.
Good luck.