Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Mar 2020 23:39:37 +0000 (UTC)
From:      Niclas Zeising <zeising@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r528813 - in head: . x11/libxkbcommon
Message-ID:  <202003202339.02KNdbPm035971@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: zeising
Date: Fri Mar 20 23:39:37 2020
New Revision: 528813
URL: https://svnweb.freebsd.org/changeset/ports/528813

Log:
  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

Added:
  head/x11/libxkbcommon/pkg-message   (contents, props changed)
Modified:
  head/UPDATING
  head/x11/libxkbcommon/Makefile

Modified: head/UPDATING
==============================================================================
--- head/UPDATING	Fri Mar 20 23:24:31 2020	(r528812)
+++ head/UPDATING	Fri Mar 20 23:39:37 2020	(r528813)
@@ -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

Modified: head/x11/libxkbcommon/Makefile
==============================================================================
--- head/x11/libxkbcommon/Makefile	Fri Mar 20 23:24:31 2020	(r528812)
+++ head/x11/libxkbcommon/Makefile	Fri Mar 20 23:39:37 2020	(r528813)
@@ -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"
 

Added: head/x11/libxkbcommon/pkg-message
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/x11/libxkbcommon/pkg-message	Fri Mar 20 23:39:37 2020	(r528813)
@@ -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
+}
+]



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202003202339.02KNdbPm035971>