View previous topic :: View next topic |
Author |
Message |
r7l Tux's lil' helper
Joined: 16 Feb 2019 Posts: 93
|
Posted: Tue Nov 26, 2024 8:17 am Post subject: [SOLVED] GTK+ with -X causing issues for Wayland application |
|
|
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 |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22870
|
Posted: Tue Nov 26, 2024 2:28 pm Post subject: |
|
|
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 |
|
|
eschwartz Developer
Joined: 29 Oct 2023 Posts: 240
|
Posted: Tue Nov 26, 2024 6:35 pm Post subject: |
|
|
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 |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 5243 Location: Bavaria
|
|
Back to top |
|
|
r7l Tux's lil' helper
Joined: 16 Feb 2019 Posts: 93
|
Posted: Tue Nov 26, 2024 7:02 pm Post subject: |
|
|
Thanks allot for your replies. Never dealt with GDK before. So i wasn't sure what should be expected. |
|
Back to top |
|
|
CooSee Veteran
Joined: 20 Nov 2004 Posts: 1477 Location: Earth
|
Posted: Tue Nov 26, 2024 10:49 pm Post subject: |
|
|
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 |
_________________ " 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 |
|
|
|