Merge libxkbcommon and disable gles on mesa-x11

This commit is contained in:
Wildan M 2026-06-07 15:17:57 +07:00
parent 5c70677c08
commit 57aa833983
No known key found for this signature in database
GPG Key ID: 01AC53185C679C79
9 changed files with 26 additions and 39 deletions

View File

@ -13,7 +13,7 @@ dependencies = [
"libxext",
"libxfixes",
"libxxf86vm",
"mesa-x11",
"mesa",
"x11proto",
"zlib",
]
@ -21,6 +21,6 @@ script = """
DYNAMIC_INIT
cookbook_meson \
-Degl=yes \
-Dglx=yes \
-Dglx=no \
-Dtests=false
"""

View File

@ -2,15 +2,25 @@
[source]
tar = "https://xkbcommon.org/download/libxkbcommon-1.7.0.tar.xz"
blake3 = "5001ca0b8562feeef2010bf16c05657e3875fda3ed5fdedbf48b9135e5cdfcbc"
patches = [
"redox.patch"
]
[build]
template = "meson"
mesonflags = [
"-Denable-wayland=false",
"-Denable-x11=false"
]
template = "custom"
dependencies = [
"libxml2",
"xz",
"zlib",
"libpthread-stubs",
"libxau",
"x11proto",
"xcb-proto",
"libxcb",
]
script = """
DYNAMIC_INIT
cookbook_meson \
-Denable-wayland=false \
-Denable-x11=true
"""

View File

@ -1,4 +1,4 @@
diff --color -ruwN source/meson.build source-new/meson.build
diff -ruwN source/meson.build source-new/meson.build
--- source/meson.build 2024-03-24 04:23:43.000000000 +0700
+++ source-new/meson.build 2025-10-29 10:55:30.355297899 +0700
@@ -637,8 +637,6 @@
@ -31,7 +31,7 @@ diff --color -ruwN source/meson.build source-new/meson.build
if get_option('enable-xkbregistry')
test(
'registry',
diff --color -ruwN source/src/x11/util.c source-new/src/x11/util.c
diff -ruwN source/src/x11/util.c source-new/src/x11/util.c
--- source/src/x11/util.c 2024-03-24 04:23:43.000000000 +0700
+++ source-new/src/x11/util.c 2025-10-29 15:03:58.879274347 +0700
@@ -39,7 +39,7 @@

View File

@ -15,7 +15,7 @@ dependencies = [
# "glib",
"gtk3",
"pango",
"libxkbcommon-x11",
"libxkbcommon",
"libice",
"mesa-x11",
"x11proto-kb",

View File

@ -17,7 +17,7 @@ dependencies = [
# "glib",
"gtk3",
"pango",
"libxkbcommon-x11",
"libxkbcommon",
"libice",
"mesa-x11",
"x11proto-kb",

View File

@ -13,7 +13,7 @@ dependencies = [
"freetype2",
"gtk3",
"pango",
"libxkbcommon-x11",
"libxkbcommon",
"libice",
"mesa-x11",
"nspr",

View File

@ -7,7 +7,7 @@ blake3 = "3b54ed52759339e545a7a5f602946abc0164c37eb801e79c0cb40f93dbae53d2"
dependencies = [
"cairo",
"libev",
"libxkbcommon-x11",
"libxkbcommon",
"pango",
"pcre2",
"startup-notification",

View File

@ -1,25 +0,0 @@
# TODO: Conflict with libxkbcommon-x11
# TODO: Keyboard not working, see patches
[source]
tar = "https://xkbcommon.org/download/libxkbcommon-1.7.0.tar.xz"
blake3 = "5001ca0b8562feeef2010bf16c05657e3875fda3ed5fdedbf48b9135e5cdfcbc"
patches = [ "redox.patch" ]
[build]
template = "custom"
dependencies = [
"libxml2",
"xz",
"zlib",
"libpthread-stubs",
"libxau",
"x11proto",
"xcb-proto",
"libxcb",
]
script = """
DYNAMIC_INIT
cookbook_meson \
-Denable-wayland=false \
-Denable-x11=true
"""

View File

@ -24,9 +24,11 @@ script = """
DYNAMIC_INIT
cookbook_meson \
-Ddri-drivers-path=/usr/lib/dri \
-Degl=enabled \
-Degl=disabled \
-Dglx=dri \
-Dllvm=enabled \
-Dgles1=disabled \
-Dgles2=disabled \
-Dplatforms=x11 \
-Dshader-cache=disabled
"""