Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 951941 - net-libs/libnma: automagic dep on x11-libs/gtk+[X] (nm-applet crash when gtk+ (and others) built without X useflag)
Summary: net-libs/libnma: automagic dep on x11-libs/gtk+[X] (nm-applet crash when gtk+...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-23 20:26 UTC by Matthew Brewer
Modified: 2025-03-24 07:16 UTC (History)
0 users

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


Attachments
equery uses output of relevent packages after workaround applied (X enabled again) (file_951941.txt,2.57 KB, text/plain)
2025-03-23 20:26 UTC, Matthew Brewer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matthew Brewer 2025-03-23 20:26:59 UTC
Created attachment 922343 [details]
equery uses output of relevent packages after workaround applied (X enabled again)

nm-applet-1.36.0 crashes when run with the following error:

`nm-applet: symbol lookup error: /usr/lib64/libnma.so.0: undefined symbol: gdk_x11_display_get_type`

Since it's a symbol lookup (load time) error, gdb gives no interesting backtrace or other insights.

Relevant Version information:
- gnome-extra/nm-applet-1.36.0
- net-libs/libnma-1.10.6-r1
- x11-libs/gtk+-3.24.48

Theory:
The symbol is a GTK symbol, and based on the dependency graph it's likely from gtk+. 

Functional Workaround:
Setting the X use-flag on gtk+ appears to fix the issue.

I verified this was the specific issue as it failed directly prior to this specific package rebuild, and worked directly after it.

To get a consistent and functional system back though I also then had to add X to the following packages on my system:
- dev-cpp/gtkmm-3.24.9
- x11-libs/cairo-1.18.2-r1
- dev-cpp/cairomm-1.18.0
- dev-cpp/cairomm-1.14.4
- media-libs/libepoxy-1.5.10-r3
- x11-libs/pango-3.0.0
- media-gfx/gimp-3.0.0

This is on a wayland-only system so "-X" for all other packages. I'm using sway WM with waybar as the dock for nm-applet.

Conclusion:
It seems that libnma-1.10.6-r1 has the undeclared requirement that gtk+ have the "X" use flag set. Ideally it'd be great to make it work with gtk+ with the -X use-flag on wayland (possibly via a -X flag on libnma), but as a quick fix maybe this dependency should be declared?