kde-base/plasma-workspace-9999 can not be emerged with USE="-X". There are a lot of build errors, and even if I fix those, several parts MUST be linked against libX11. Some of those can be fixed by changing some wrong config entries from #define HAVE_X11 to #define HAVE_X11 0 but at least plasma-workspace-9999/ksmserver/screenlocker/ksldapp.cpp does not listen to it and wants QX11Info, X11/Xlib.h and xcb/xcb.h. plasma-workspace-9999 emerges fine with USE="X" This seems like the cmake stuff does the wrong thing. Or it is no longer possible to build plasma-workspace without X support.
Just found out that the same applies to kde-base/kinfocenter-9999::kde - It is just not possible to be built without X support.
plasma-workspace is a known issue Could you please attach a build log for kinfocenter? It should work ok
Created attachment 386586 [details] Build log kinfocenter with USE="-X" The errors of interest begin with: -------- CMakeFiles/kcm_opengl.dir/opengl.cpp.o: In function `GetInfo_OpenGL(QTreeWidget*)': opengl.cpp:(.text+0x1f23): undefined reference to `XOpenDisplay' opengl.cpp:(.text+0x20fe): undefined reference to `XGetVisualInfo' opengl.cpp:(.text+0x2136): undefined reference to `XCreateColormap' opengl.cpp:(.text+0x2199): undefined reference to `XCreateWindow' opengl.cpp:(.text+0x2347): undefined reference to `XDestroyWindow' opengl.cpp:(.text+0x2499): undefined reference to `XDestroyWindow' opengl.cpp:(.text+0x24a9): undefined reference to `XCloseDisplay' opengl.cpp:(.text+0x2fd4): undefined reference to `XDestroyWindow' collect2: error: ld returned 1 exit status -------- So I'll try again with USE="-X -opengl" and see what happens...
Unfortunately, no. With USE="-X -opengl", the build fails with the same "undefined reference to..." errors.
Created attachment 389586 [details] plasma-workspace-5.1.1 build log This also happens with plasma-workspace-5.1.1 I've attached my build.log in case it's still helpful.
https://gitweb.gentoo.org/proj/kde.git/commit/kde-plasma/plasma-workspace/plasma-workspace-9999.ebuild?id=f7adec74b8e6c96db6adf3288965fab9faa0f68d
X USE flag has since been removed in https://gitweb.gentoo.org/proj/kde.git/commit/?id=f7adec74b8e6c96db6adf3288965fab9faa0f68d As for kinfocenter, this should have since been fixed upstream. Please reopen if the problem persists.