x11/libxkbcommon: Switch to evdev rules by default

Switch x11/libxkbcommon to use evdev rules rather than legacy rules by
default, to improve support for keyboards when using evdev.
For users using the legacy configuration, or running xorg on FreeBSD 11,
please consult UPDATING for instructions in case of issues.

PR:		244354 [1]
Submitted by:	jbeich (fix)
Reported by:	Patricio Villar [1]
Differential Revision:	https://reviews.freebsd.org/D23860
This commit is contained in:
Niclas Zeising 2020-03-20 23:39:37 +00:00
parent f3da774604
commit 13d4989f6b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=528813
3 changed files with 32 additions and 2 deletions

View File

@ -5,6 +5,23 @@ they are unavoidable.
You should get into the habit of checking this file for changes each time
you update your ports collection, before attempting any port upgrades.
20200320:
AFFECTS: users of x11/libxkbcommon
AUTHOR: zeising@FreeBSD.org
The libxkbcommon library (x11/libxkbcommon), used to handle keyboards
in some applications, most notably kde and wayland, have been switched
to use evdev rules by default. Some keys, most notably arrow keys,
may not work in applications using libxkbcommon, if you use
xf86-input-keyboard rather than xf86-input-libinput.
If you have trouble with the keyboard keys, and if /var/log/Xorg.*.log
shows that the "kbd" or "keyboard" driver is beind used, you need to
switch to legacy rules by setting the environment variable
XKB_DEFAULT_RULES to xorg.
This switch is make to match the default configuration on FreeBSD 12.1 and
later, the default configuration on FreeBSD 11.3 still requres the legacy
rules.
20200316:
AFFECTS: users of net-im/slack-term
AUTHOR: dmgk@FreeBSD.org

View File

@ -2,6 +2,7 @@
PORTNAME= libxkbcommon
PORTVERSION= 0.10.0
PORTREVISION= 1
CATEGORIES= x11
MASTER_SITES= https://xkbcommon.org/download/
DIST_SUBDIR= xorg/lib
@ -16,8 +17,7 @@ RUN_DEPENDS= xkeyboard-config>0:x11/xkeyboard-config
USES= bison meson pkgconfig tar:xz xorg
USE_XORG= xcb
MESON_ARGS= -Ddefault-rules=xorg \
-Denable-docs=false \
MESON_ARGS= -Denable-docs=false \
-Denable-wayland=false \
-Dx-locale-root="${PREFIX}/lib/X11/locale"

View File

@ -0,0 +1,13 @@
[
{ type: install
message: <<EOM
If arrow keys don't work under X11 switch to legacy rules e.g.,
For sh/bash/ksh/zsh run and (optionally) add into ~/.profile:
export XKB_DEFAULT_RULES=xorg
For csh/tcsh run and (optionally) add into ~/.login:
setenv XKB_DEFAULT_RULES xorg
EOM
}
]