Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
JavaFX use flag not enabling
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
rafa_99
n00b
n00b


Joined: 10 Feb 2020
Posts: 18

PostPosted: Sat Jan 23, 2021 4:35 pm    Post subject: JavaFX use flag not enabling Reply with quote

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
Code:
javafx
useflag in package.use and even after trying to unmask the useflag in package.mask.use with
Code:
-javafx -gentoo-vm
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
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31492
Location: here

PostPosted: Sat Jan 23, 2021 4:40 pm    Post subject: Reply with quote

What return command USE="javafx" emerge -pv dev-java/openjdk:8?
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6227
Location: Dallas area

PostPosted: Sat Jan 23, 2021 4:49 pm    Post subject: Reply with quote

Look at openjfx

javafx flag is *use.mask, I believe.
_________________
UM780, 6.12 zen kernel, gcc 13, openrc, wayland
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23123

PostPosted: Sat Jan 23, 2021 5:00 pm    Post subject: Reply with quote

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
View user's profile Send private message
rafa_99
n00b
n00b


Joined: 10 Feb 2020
Posts: 18

PostPosted: Sat Jan 23, 2021 5:12 pm    Post subject: Reply with quote

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 :oops:, shame...

Thanks, everything is working as it was supposed to work
Back to top
View user's profile Send private message
rafa_99
n00b
n00b


Joined: 10 Feb 2020
Posts: 18

PostPosted: Sat Jan 23, 2021 5:13 pm    Post subject: Reply with quote

It's solved, sorry for wasting everyone's time :oops:
Back to top
View user's profile Send private message
michi-monsterherz
n00b
n00b


Joined: 08 Jan 2024
Posts: 4

PostPosted: Mon Feb 17, 2025 2:55 pm    Post subject: Reply with quote

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
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23123

PostPosted: Mon Feb 17, 2025 3:58 pm    Post subject: Reply with quote

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
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31492
Location: here

PostPosted: Mon Feb 17, 2025 5:37 pm    Post subject: Reply with quote

The openjfx is only available for java 8 and 11.
There is a open bug for add jfx to 17 and 21.
Based on relative pull request I create ebuild on my overlay because I need it at work.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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