fix: libwayland BUILDS — proper durability patch with all stubs

121-line redox.patch replaces 229-line fragile Python heredoc.
Covers: meson.build, src/meson.build, event-loop.c, connection.c,
wayland-server.c with signalfd, timerfd, eventfd, MSG_NOSIGNAL,
open_memstream, timerfd_settime, timerfd_gettime stubs.

libwayland builds successfully. Greeter cascade through llvm21.
This commit is contained in:
2026-04-28 12:28:19 +01:00
parent 7645c5998a
commit f405070d2c
3 changed files with 77 additions and 42 deletions
+4 -5
View File
@@ -3,6 +3,7 @@
# redox.patch restores the Redox compatibility stubs plus Meson scanner detection.
[source]
tar = "https://gitlab.freedesktop.org/wayland/wayland/-/releases/1.24.0/downloads/wayland-1.24.0.tar.xz"
patches = ["redox.patch"]
[build]
template = "custom"
@@ -14,10 +15,8 @@ dependencies = [
]
script = """
DYNAMIC_INIT
RELIBC_INCLUDE_STAGE="${COOKBOOK_ROOT}/recipes/core/relibc/target/${TARGET}/stage/usr/include"
if [ ! -f "${RELIBC_INCLUDE_STAGE}/sys/signalfd.h" ]; then
script = """
DYNAMIC_INIT
cookbook_meson -Ddocumentation=false -Dtests=false -Ddtd_validation=false -Dc_args=-Wno-error
"""
[package]
dependencies = ["libffi"]
+1
View File
@@ -0,0 +1 @@
../../../../local/patches/libwayland/redox.patch