FS#53345 - [x2goserver] Misses xorg-setxkbmap and xorg-xkbcomp dependencies

Attached to Project: Arch Linux
Opened by Michael Ledin (mxl) - Friday, 17 March 2017, 10:03 GMT
Last edited by Andreas Radke (AndyRTR) - Sunday, 19 March 2017, 16:22 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Andreas Radke (AndyRTR)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

x2goserver package misses xorg-setxkbmap and xorg-xkbcomp dependencies. It can not apply keyboard settings without them. x2gosetkeyboard script included in x2goserver package explicitly uses setxkbmap utility. And it seems that during setxkbmap call xkbcomp is used somehow because without it setxkbmap fails with "Error loading new keyboard description".

Package version: 4.0.1.20-1
This task depends upon

Closed by  Andreas Radke (AndyRTR)
Sunday, 19 March 2017, 16:22 GMT
Reason for closing:  Fixed
Comment by Andreas Radke (AndyRTR) - Friday, 17 March 2017, 20:03 GMT
xorg-setxkbmap is mentioned in the upstream spec proto file:
https://code.x2go.org/gitweb?p=x2goserver.git;a=blob;f=x2goserver.spec;h=1dbf44f7ee90293d40b610820e2a08ec05f531e0;hb=HEAD

I can't find anything about xkbcomp.
Comment by Michael Ledin (mxl) - Friday, 17 March 2017, 21:34 GMT
From the setxkbcomp man page:

USING WITH xkbcomp
If you have an Xserver and a client shell running on different computers and some XKB configuration files on those
machines are different, you can get problems specifying a keyboard map by model, layout, and options names. This
is because setxkbmap converts its arguments to names of XKB configuration files according to files that are on the
client-side computer, then sends these file names to the server where xkbcomp has to compose a complete keyboard
map using files which the server has. Thus if the sets of files differ in some way, the names that setxkbmap gen‐
erates can be unacceptable on the server side.

As I understand x2goserver X server called x2goagent runs on the server side and when I run setkxbmap it sends keyboard settings to x2goagent which tries to compile XKB keyboard description with xkbcomp and fails if it's missing.
Comment by Michael Ledin (mxl) - Friday, 17 March 2017, 21:39 GMT
Look at "hexdump -C /usr/lib/x2go/bin/x2goagent |grep xkbcomp" output.
Comment by Michael Ledin (mxl) - Friday, 17 March 2017, 21:44 GMT
Hmm... Then actually it's x2go-agent package that should depend on xorg-xkbcomp.
Comment by Andreas Radke (AndyRTR) - Sunday, 19 March 2017, 09:22 GMT
Check https://code.x2go.org/gitweb?p=nx-libs.git;a=blob;f=nx-libs.spec;h=e0d5d8bac78d34fab82ec7cd0a522bf5b477cb92;hb=HEAD .

I'm going to make nxagent depend on xkeyboard-config and x2goserver on xorg-setxkbmap. This should cover all your issues.
Comment by Michael Ledin (mxl) - Sunday, 19 March 2017, 11:32 GMT
This will not fix the issue. I already have xkeyboard-config installed and with xorg-setxkbmap installed keyboard settings are still not applied. See my comment above - x2goagent binary uses xkbcomp. You can see it here too https://code.x2go.org/gitweb?p=nx-libs.git&a=search&h=HEAD&st=grep&s=xkbcomp. If you need official acknowledgement from x2go team then please follow this bug report https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1160
Comment by Andreas Radke (AndyRTR) - Sunday, 19 March 2017, 11:33 GMT
My bad, xkeyboard-config only makedepends on xorg-xkbcomp not at runtime...
Comment by Andreas Radke (AndyRTR) - Sunday, 19 March 2017, 11:44 GMT
nx-x11 seems to be the pkg that should depend on xorg-xkbcomp.
Comment by Michael Ledin (mxl) - Sunday, 19 March 2017, 11:47 GMT
Yes.

Loading...