Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#69116 - [sway] xorg-xkbcomp is a dependency

Attached to Project: Community Packages
Opened by Hugo Osvaldo Barrera (hobarrera) - Saturday, 26 December 2020, 13:46 GMT
Last edited by Brett Cornwall (ainola) - Thursday, 14 January 2021, 00:50 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Jerome Leclanche (Adys)
Brett Cornwall (ainola)
Maxim Baz (maximbaz)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

`xkbcomp` is a dependency. Without it, sway does not apply keyboard configurations specified via `input type:keyboard` in `~/.config/sway`.

sway version 1:1.5.1-1

Steps to reproduce:

1. Add `input type:keyboard xkb_options altwin:swap_lalt_lwin,caps:escape,compose:menu` to sway's config.
2. Reload sway.
This task depends upon

Closed by  Brett Cornwall (ainola)
Thursday, 14 January 2021, 00:50 GMT
Reason for closing:  Not a bug
Comment by Maxim Baz (maximbaz) - Saturday, 26 December 2020, 16:57 GMT
Hello,

I can't reproduce this, even with a full reboot, and to be honest I doubt that sway would require an xorg dependency to manage input...

I think this is working via libxkbcommon or maybe xkeyboard-config, i.e. the dependency path is: sway -> wlroots -> libxkbcommon -> xkeyboard-config.

Could you please double-check, maybe something else is at play with the issue you are facing?
Comment by Maxim Baz (maximbaz) - Saturday, 26 December 2020, 18:48 GMT
(duplicate comment)
Comment by Hugo Osvaldo Barrera (hobarrera) - Monday, 28 December 2020, 16:45 GMT
I uninstalled xorg-xkbcomp, reloaded sway, and got a bunch of these non-fatal errors:

Dec 28 17:40:09 victory sway[81146]: sh: line 1: /usr/bin/xkbcomp: No such file or directory
Dec 28 17:40:09 victory sway[81147]: sh: line 1: /usr/bin/xkbcomp: No such file or directory
Dec 28 17:40:09 victory sway[81148]: sh: line 1: /usr/bin/xkbcomp: No such file or directory
Dec 28 17:40:09 victory sway[81149]: sh: line 1: /usr/bin/xkbcomp: No such file or directory
Dec 28 17:40:09 victory sway[81150]: sh: line 1: /usr/bin/xkbcomp: No such file or directory

My config is here: https://gitlab.com/WhyNotHugo/dotfiles/-/blob/38be8b0e/home/.config/sway/config
I'm not 100% certain _which_ feature requires it, but it's likely related to this:

# Keyboard settings
input * {
xkb_layout us
xkb_variant intl
xkb_numlock enable
}
# (1) Swap LeftAlt and Super keys: they're physically in the wrong order.
# (2) Maps CapsLock to Esc: CapsLock is completely useless, Esc is really useful!.
# (3) Make RightControl compose: A bit tricky sometimes, but I need a compose key SOMEWHERE.
input 1:1:AT_Translated_Set_2_keyboard xkb_options altwin:swap_lalt_lwin,caps:escape,compose:rctrl
Comment by Maxim Baz (maximbaz) - Monday, 28 December 2020, 17:05 GMT
Judging by the log, it seems that sway executes a shell script, which in turn on line 1 tries to execute /usr/bin/xkbcomp.

It doesn't seem like sway is executing any shell scripts that call xkbcomp: https://github.com/swaywm/sway/search?q=xkbcomp

Is it possible that it is your custom script and not sway that is doing that? :)
Comment by Hugo Osvaldo Barrera (hobarrera) - Tuesday, 29 December 2020, 18:42 GMT
I figured out what breaks without xorg-xkbcomp: xwayland does not start.

It seems that sway fails to start xwayland if xorg-xkbcomp is not installed.
Comment by Brett Cornwall (ainola) - Sunday, 03 January 2021, 19:55 GMT
Hi, hobarrera!

Taking a look at the dependency list shows that xorg-xkbcomp is a dependency of xorg-server-common, which is itself a dependency of xorg-xwayland. I'm wondering if you didn't have xorg-xwayland installed.
Comment by Hugo Osvaldo Barrera (hobarrera) - Wednesday, 13 January 2021, 08:43 GMT
The dependency tree does look sane now that you mention it.

It seems I must've messed up at some point and removed `xorg-xkbcomp` even though `xorg-xwayland` depended on it.

In any case, looks like this ticket is a non-issue. Apologies for the noise here.
Comment by Brett Cornwall (ainola) - Thursday, 14 January 2021, 00:50 GMT
Hey, no problem!

Loading...