View previous topic :: View next topic |
Author |
Message |
rafa_99 n00b

Joined: 10 Feb 2020 Posts: 18
|
Posted: Sat Jan 23, 2021 4:35 pm Post subject: JavaFX use flag not enabling |
|
|
Hello, I've ran into a problem where in college I have to use JavaFX to a project, I'm using the the package Code: | dev-java/openjdk-8.272_p10 | and after trying to enable the useflag in package.use and even after trying to unmask the useflag in package.mask.use with for It doesnt seem to be enabling it in portage, since the output i get when I try to Code: | emerge -av --newuse dev-java/openjdk | I get the next output:
Code: | [ebuild N ] dev-java/openjdk-8.272_p10:8::gentoo USE="alsa jbootstrap pch source -cups -debug -doc -examples -headless-awt -javafx (-selinux)" |
As we are able to see, javafx use flag still isnt enabled even after enabling in package.use and unmasking in package.mask.use.
Any help or hint to what im doing wrong would be appreciated
Thanks in advance |
|
Back to top |
|
 |
fedeliallalinea Administrator


Joined: 08 Mar 2003 Posts: 31492 Location: here
|
Posted: Sat Jan 23, 2021 4:40 pm Post subject: |
|
|
What return command USE="javafx" emerge -pv dev-java/openjdk:8? _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
 |
Anon-E-moose Watchman


Joined: 23 May 2008 Posts: 6227 Location: Dallas area
|
Posted: Sat Jan 23, 2021 4:49 pm Post subject: |
|
|
Look at openjfx
javafx flag is *use.mask, I believe. _________________ UM780, 6.12 zen kernel, gcc 13, openrc, wayland |
|
Back to top |
|
 |
Hu Administrator

Joined: 06 Mar 2007 Posts: 23123
|
Posted: Sat Jan 23, 2021 5:00 pm Post subject: |
|
|
It looks to me like OP successfully overrode the use.mask, but never enabled the flag. OP: please post the exact configuration lines you used. The ones you show are ill-formed on their own, as they are in a file that expects package atoms, but you did not show any atoms.
The correct form would be a line in /etc/portage/package.use that reads: Code: | dev-java/openjdk javafx | Note that flags are usually masked for a good reason. Even if you get the flag enabled, it may not work as you wish. |
|
Back to top |
|
 |
rafa_99 n00b

Joined: 10 Feb 2020 Posts: 18
|
Posted: Sat Jan 23, 2021 5:12 pm Post subject: |
|
|
fedeliallalinea wrote: | What return command USE="javafx" emerge -pv dev-java/openjdk:8? |
Ho well, looks like I've lost total hability to spell javafx in the package.use.
I was writing java-fx as a use flag for openjdk , shame...
Thanks, everything is working as it was supposed to work |
|
Back to top |
|
 |
rafa_99 n00b

Joined: 10 Feb 2020 Posts: 18
|
Posted: Sat Jan 23, 2021 5:13 pm Post subject: |
|
|
It's solved, sorry for wasting everyone's time  |
|
Back to top |
|
 |
michi-monsterherz n00b

Joined: 08 Jan 2024 Posts: 4
|
Posted: Mon Feb 17, 2025 2:55 pm Post subject: |
|
|
Code: | sysvorOrt /etc/portage/package.use # USE="javafx" emerge -pv openjdk
!!! Repository 'eclipse' is missing masters attribute in '/var/db/repos/eclipse/metadata/layout.conf'
!!! Set 'masters = gentoo' in this file for future compatibility
These are the packages that would be merged, in order:
Calculating dependencies... done!
Dependency resolution took 1.95 s (backtrack: 0/20).
[ebuild R ] dev-java/openjdk-21.0.5_p11-r1:21::gentoo USE="alsa cups jbootstrap (system-bootstrap) (-big-endian) -debug -doc -examples -headless-awt (-javafx) (-selinux) -source -systemtap" 0 KiB
Total: 1 package (1 reinstall), Size of downloads: 0 KiB
* IMPORTANT: 32 news items need reading for repository 'gentoo'.
* Use eselect news read to view new items.
|
The javafx USE flag remains inactive because it is shown in brackets (-javafx), which means that it is not available for the installed version of openjdk. In this case, it is openjdk-21.0.5_p11-r1:21, and it seems that this version does not support the javafx USE flag. What was the solve? |
|
Back to top |
|
 |
Hu Administrator

Joined: 06 Mar 2007 Posts: 23123
|
Posted: Mon Feb 17, 2025 3:58 pm Post subject: |
|
|
As I read the post two posts above yours, the solution was to spell the flag correctly. In the first post of the thread, OP had already overridden the package.use.mask entry, and merely needed to spell the flag correctly in order to enable it. |
|
Back to top |
|
 |
fedeliallalinea Administrator


Joined: 08 Mar 2003 Posts: 31492 Location: here
|
|
Back to top |
|
 |
|