Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] GTK+ with -X causing issues for Wayland application
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
r7l
Tux's lil' helper
Tux's lil' helper


Joined: 16 Feb 2019
Posts: 93

PostPosted: Tue Nov 26, 2024 8:17 am    Post subject: [SOLVED] GTK+ with -X causing issues for Wayland application Reply with quote

Installing x11-libs/gtk+ with USE="-X", will lead to issues with applications like gui-apps/nwg-dock-hyprland (from Guru):

Code:
../go-mod/github.com/gotk3/gotk3@v0.6.5-0.20240618185848-ff349ae13f56/gdk/screen_x11.go:7:11: fatal error: gdk/gdkx.h: No such file or directory
    7 | // #include <gdk/gdkx.h>
      |           ^~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:11: build] Error 1


The issue goes away when using USE="X" but i am wondering if this is a bug in the gtk+ Ebuild or if this should be expected. I'd like to file a bug for either one of the packages but i am not sure which one.


Last edited by r7l on Tue Nov 26, 2024 7:03 pm; edited 1 time in total
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22870

PostPosted: Tue Nov 26, 2024 2:28 pm    Post subject: Reply with quote

It seems reasonable to me that USE=-X would remove that header. However, I think the guru package ought to depend on x11-libs/gtk+[X] so that Portage insists that you set USE=X before merging the guru package. Alternatively, perhaps the guru package needs to pass some configure option to nwg-dock-hyprland to instruct it not to build X11-specific logic.
Back to top
View user's profile Send private message
eschwartz
Developer
Developer


Joined: 29 Oct 2023
Posts: 240

PostPosted: Tue Nov 26, 2024 6:35 pm    Post subject: Reply with quote

Hu is correct, this is just a GURU package having an under-specified dependency.

The project in question appears to be written in golang, and also involves hyprland, both good reasons for me not to want to spend any more time thinking about this package. But in general, you'll find I've recently fixed a lot of packages to more clearly define which GDK windowing backends they depend on and enforce those constraints via portage dependencies. There's no good reason to get a compilation failure when portage could print a solver error instead and tell you which USE flags you need to set to get a successfully compiled package.
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5243
Location: Bavaria

PostPosted: Tue Nov 26, 2024 6:39 pm    Post subject: Reply with quote

Moved from Portage & Programming to Unsupported Software.
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
r7l
Tux's lil' helper
Tux's lil' helper


Joined: 16 Feb 2019
Posts: 93

PostPosted: Tue Nov 26, 2024 7:02 pm    Post subject: Reply with quote

Thanks allot for your replies. Never dealt with GDK before. So i wasn't sure what should be expected.
Back to top
View user's profile Send private message
CooSee
Veteran
Veteran


Joined: 20 Nov 2004
Posts: 1477
Location: Earth

PostPosted: Tue Nov 26, 2024 10:49 pm    Post subject: Reply with quote

using almost pure Hyprland (hyprdots) with no X at all, but some packages still need this USE flag:

eix --only-names --installed-with-use X
Code:
app-text/ghostscript-gpl
dev-cpp/cairomm
dev-cpp/gtkmm
media-fonts/dejavu
media-fonts/droid
media-fonts/fontawesome
media-fonts/hack
media-fonts/liberation-fonts
media-fonts/noto
media-fonts/noto-cjk
media-fonts/noto-emoji
media-fonts/urw-fonts
media-libs/libepoxy
media-libs/libglvnd
media-libs/libsdl2
x11-libs/cairo
x11-libs/gtk+
x11-libs/pango

8)
_________________
" Die Realität ist eine Illusion, die durch Mangel an ehrlicher Kommunikation entsteht "
---
" Der Mensch ist von Natur aus neugierig, was am Ende übrig bleibt ist die Gier "
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software 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