Without it installed it crashes with the following log: firefox-bin xkbcommon: ERROR: failed to add default include path /usr/share/X11/xkb xkbcommon: ERROR: failed to add default include path /usr/share/X11/xkb ExceptionHandler::GenerateDump cloned child 5996 ExceptionHandler::SendContinueSignalToChild sent continue signal to child ExceptionHandler::WaitForContinueSignal waiting for continue signal... Segmentation fault strace: newfstatat(AT_FDCWD, "/home/kyle/.config/xkb", 0x7ffc60064100, 0) = -1 ENOENT (No such file or directory) newfstatat(AT_FDCWD, "/home/kyle/.xkb", 0x7ffc60064100, 0) = -1 ENOENT (No such file or directory) newfstatat(AT_FDCWD, "/etc/xkb", 0x7ffc60064100, 0) = -1 ENOENT (No such file or directory) newfstatat(AT_FDCWD, "/usr/share/X11/xkb", 0x7ffc60064100, 0) = -1 ENOENT (No such file or directory) write(2, "xkbcommon: ERROR: ", 18xkbcommon: ERROR: ) = 18 write(2, "failed to add default include pa"..., 54failed to add default include path /usr/share/X11/xkb ) = 54 --- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=NULL} --- emerging xkeyboard-config fixes it. both firefox and firefox-bin are missing the dependency.
No, it isn't firefox which is depending on this. libxkbcommon should depend on that: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=229127#c1
I have similar experience with rofi, which also failed to run without x11-misc/xkeyboard-config. The bug is here: https://bugs.gentoo.org/760048. x11-misc/xkeyboard-config should be a part of x11-libs/libxkbcommon dependency.
When I enabled the wayland USE flag, my Emacs 29 segfaulted with this same error. Performing an `emerge -av1 x11-misc/xkeyboard-config` fixed the issue for me. I tried no other solutions between enabling the wayland use flag and manually emerging xkeyboard-config.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=28f0cfe25e3a78db2ce76bc432bae5813e24556e commit 28f0cfe25e3a78db2ce76bc432bae5813e24556e Author: Matt Turner <mattst88@gentoo.org> AuthorDate: 2023-01-10 23:20:55 +0000 Commit: Matt Turner <mattst88@gentoo.org> CommitDate: 2023-01-10 23:40:54 +0000 x11-libs/libxkbcommon: Version bump to 1.5.0 * Add RDEPEND on x11-misc/xkeyboard-config (bug #806235) * Depend on multilib-enabled dev-libs/wayland (bug #823620) * Install docs to expect path (bug #832826) * Drop USE=xkb dependency on libxcb (bug #875980) Closes: https://bugs.gentoo.org/806235 Closes: https://bugs.gentoo.org/823620 Closes: https://bugs.gentoo.org/832826 Closes: https://bugs.gentoo.org/875980 Signed-off-by: Matt Turner <mattst88@gentoo.org> x11-libs/libxkbcommon/Manifest | 1 + x11-libs/libxkbcommon/libxkbcommon-1.5.0.ebuild | 69 +++++++++++++++++++++++++ x11-libs/libxkbcommon/metadata.xml | 2 +- 3 files changed, 71 insertions(+), 1 deletion(-)