diff options
author | Niclas Zeising <zeising@FreeBSD.org> | 2020-03-20 23:39:37 +0000 |
---|---|---|
committer | Niclas Zeising <zeising@FreeBSD.org> | 2020-03-20 23:39:37 +0000 |
commit | 13d4989f6b567b983197130837ad5c915028eeca (patch) | |
tree | ca1bc0dc8d8dce8a074ef750ef9418194d377e36 | |
parent | f3da7746047bc276ada93b75a90c1bc19102ab69 (diff) | |
download | ports-13d4989f6b567b983197130837ad5c915028eeca.tar.gz ports-13d4989f6b567b983197130837ad5c915028eeca.zip |
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
Notes
Notes:
svn path=/head/; revision=528813
-rw-r--r-- | UPDATING | 17 | ||||
-rw-r--r-- | x11/libxkbcommon/Makefile | 4 | ||||
-rw-r--r-- | x11/libxkbcommon/pkg-message | 13 |
3 files changed, 32 insertions, 2 deletions
@@ -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 diff --git a/x11/libxkbcommon/Makefile b/x11/libxkbcommon/Makefile index 3485acdc2467..886a6cd9541d 100644 --- a/x11/libxkbcommon/Makefile +++ b/x11/libxkbcommon/Makefile @@ -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" diff --git a/x11/libxkbcommon/pkg-message b/x11/libxkbcommon/pkg-message new file mode 100644 index 000000000000..29545cc68408 --- /dev/null +++ b/x11/libxkbcommon/pkg-message @@ -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 +} +] |