Merge pull request #7092 from HiassofT/le11-xkb-fix

Fix broken xkeyboard-config on gbm
This commit is contained in:
Rudi Heitbaum 2022-11-06 10:27:43 +11:00 committed by GitHub
commit 929ae641ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 19 deletions

View File

@ -18,12 +18,10 @@ configure_package() {
} }
pre_configure_target() { pre_configure_target() {
PKG_MESON_OPTS_TARGET="-Dcompat-rules=true \ PKG_MESON_OPTS_TARGET="-Dcompat-rules=true"
-Ddatadir=lib"
if [ "${DISPLAYSERVER}" = "x11" ]; then if [ "${DISPLAYSERVER}" = "x11" ]; then
PKG_MESON_OPTS_TARGET+=" -Dxkb-base=${XORG_PATH_XKB} \ PKG_MESON_OPTS_TARGET+=" -Dxorg-rules-symlinks=true"
-Dxorg-rules-symlinks=true"
else else
PKG_MESON_OPTS_TARGET+=" -Dxorg-rules-symlinks=false" PKG_MESON_OPTS_TARGET+=" -Dxorg-rules-symlinks=false"
fi fi

View File

@ -1,15 +0,0 @@
--- /meson.build
+++ /meson.build
@@ -4,7 +4,10 @@
meson_version: '>= 0.54.0')
dir_data = join_paths(get_option('prefix'), get_option('datadir'))
-dir_xkb_base = join_paths(dir_data, 'X11', 'xkb')
+dir_xkb_base = get_option('xkb-base')
+if dir_xkb_base == ''
+ dir_xkb_base = join_paths(dir_data, 'X11', 'xkb')
+endif
dir_xkb_rules = join_paths(dir_xkb_base, 'rules')
dir_man7 = join_paths(get_option('prefix'), get_option('mandir'), 'man7')
dir_pkgconfig = join_paths(dir_data, 'pkgconfig')