Opened 3 years ago

Closed 3 years ago

#62703 closed defect (fixed)

i3 @4.18.1: xkbcommon: ERROR: failed to add default include path /opt/local/share/X11/xkb

Reported by: mpc-ucl Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.6.4
Keywords: bigsur Cc:
Port: i3 libxkbcommon

Description

When starting i3, Xquartz.app crashes without output, When I start it through startx, I get the following error:

Qd:~% startx
font_cache: Scanning user font directories to generate X11 font caches
/System/Library/Fonts/Supplemental:
font_cache: Updating FC cache
font_cache: Done
xauth:  file /Users/qhuys/.serverauth.15810 does not exist
xinit: XFree86_VT property unexpectedly has 0 items instead of 1
xkbcommon: ERROR: failed to add default include path /opt/local/share/X11/xkb
15/04/2021 11:19:21 - ERROR: Could not create xkbcommon context
i3: Could not load keymap
xinit: connection to X server lost
waiting for X server to shut down 

I'm on osx 11.2.3 big sur with XQuartz 2.8.0

Change History (5)

comment:1 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign added
Keywords: bigsur added
Port: i3 libxkbcommon added
Summary: i3 @4.18.1 - xkbcommon default path inclusion failurei3 @4.18.1: xkbcommon: ERROR: failed to add default include path /opt/local/share/X11/xkb

I don't know. But libxkbcommon is my port so I should Cc myself on this ticket.

comment:2 Changed 3 years ago by mpc-ucl

Is it obvious what the default include path should be, or what this error might relate to?

comment:3 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

I'm unfamiliar with the error, and with i3.

I see that the directory /opt/local/share/X11/xkb does exist on my system. Does it exist on yours? Its contents are provided by the xkeyboard-config port, which is a dependency of libxkbcommon, but only a build dependency, which means it would have been possible to uninstall it, and if you received a binary of libxkbcommon from our server, then build-only dependencies would not have been installed.

If you don't have the directory, or you don't have the xkeyboard-config port installed, install that port. If that fixes the problem, then I should change libxkbcommon's xkeyboard-config dependency from "build" to "lib".

comment:4 in reply to:  3 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign removed
Owner: set to ryandesign
Status: newaccepted

Replying to ryandesign:

then I should change libxkbcommon's xkeyboard-config dependency from "build" to "lib".

libxkbcommon's configure output refers to xkeyboard-config as a runtime dependency, so indeed I should promote it from "build" to "lib" and will do that with the next update, coming momentarily.

comment:5 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: acceptedclosed

In 62a85e3b615c8154d2aaec75fc0fc59ec7f0e718/macports-ports (master):

libxkbcommon: Update to 1.2.1

Releases at GitHub were a one-time thing; move downloads back to the web
site URL.

Add libxml2 dependency which gets used opportunistically.

Move xkeyboard-config from depends_build to depends_lib because it's
needed at runtime too.

Closes: #62703

Note: See TracTickets for help on using tickets.