From 1f506f8d1aedb07ecb0aabc12673116c547e0b13 Mon Sep 17 00:00:00 2001 From: sergio Date: Mon, 13 Jul 2026 12:34:13 -0400 Subject: [PATCH] kde/Plasma: receta kwayland (KWayland REQUIRED por kwin) + a deps de kwin MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit kwayland 6.7.2 (integración Wayland cliente, Qt6WaylandClientPrivate de qtwayland). kwin lo exige para el plugin de plataforma wayland. Era el último REQUIRED faltante (con KNightTime ya sellado). Co-Authored-By: Claude Opus 4.8 --- recipes/incoming-kde/kwayland.toml | 41 ++++++++++++++++++++++++++++++ recipes/incoming-kde/kwin.toml | 1 + 2 files changed, 42 insertions(+) create mode 100644 recipes/incoming-kde/kwayland.toml diff --git a/recipes/incoming-kde/kwayland.toml b/recipes/incoming-kde/kwayland.toml new file mode 100644 index 00000000..62554d3d --- /dev/null +++ b/recipes/incoming-kde/kwayland.toml @@ -0,0 +1,41 @@ +# kwayland 6.7.2 — framework Plasma de integración Wayland cliente (QtWayland wrappers). kwin lo exige +# (KWayland REQUIRED, plugin de plataforma wayland). Capa Plasma (ADR 0011). Necesita Qt6WaylandClient +# Private ⇒ qtwayland (sellado) + wayland + wayland-protocols. Patrón KF6 (wrapper zig filtra --fatal-warnings). +name = "kwayland" +version = "6.7.2" + +[source] +tarball = "https://download.kde.org/stable/plasma/6.7.2/kwayland-6.7.2.tar.xz" +sha256 = "3d3ca745d4f7a53be8b331fccde825d9cc54a8761d7a33318f4fb2d602b857f4" + +[build] +compiler = "zig-cc" +target = "x86_64-linux-musl" +link = "dynamic" +flags = [] + +[build.phases] +configure = ''' +ZW="$PWD/.zwrap"; mkdir -p "$ZW" +cat > "$ZW/cc" <<'W' +#!/bin/sh +a=""; for x in "$@"; do [ "$x" = "-Wl,--fatal-warnings" ] && continue; a="$a $x"; done +exec /opt/zig/zig cc -mcpu=baseline $a +W +cat > "$ZW/cxx" <<'W' +#!/bin/sh +a=""; for x in "$@"; do [ "$x" = "-Wl,--fatal-warnings" ] && continue; a="$a $x"; done +exec /opt/zig/zig c++ -mcpu=baseline $a +W +chmod +x "$ZW/cc" "$ZW/cxx" +cmake -B build -G Ninja -Wno-dev \ + -DCMAKE_C_COMPILER="$ZW/cc" -DCMAKE_CXX_COMPILER="$ZW/cxx" -DCMAKE_ASM_COMPILER="$ZW/cc" \ + -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_PREFIX_PATH=/usr \ + -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=OFF \ + -DBUILD_TESTING=OFF -DBUILD_PYTHON_BINDINGS=OFF +''' +compile = "cmake --build build" +install = "DESTDIR=/out cmake --install build" + +[deps] +build = ["cmake", "samurai", "python3", "pkgconf", "qtbase", "dbus", "extra-cmake-modules", "qttools", "qtwayland", "mesa", "libdrm", "libxkbcommon", "wayland", "wayland-protocols", "plasma-wayland-protocols"] diff --git a/recipes/incoming-kde/kwin.toml b/recipes/incoming-kde/kwin.toml index 153c4c0d..582cba2c 100644 --- a/recipes/incoming-kde/kwin.toml +++ b/recipes/incoming-kde/kwin.toml @@ -63,6 +63,7 @@ install = "DESTDIR=/out cmake --install build" # Base CMake+ECM + Qt6 (con qtwayland/qt5compat/qtsvg) + gettext-tiny (ki18n). build = ["cmake", "samurai", "python3", "pkgconf", "qtbase", "qtdeclarative", "qtsvg", "qt5compat", "qttools", "qtwayland", "dbus", "extra-cmake-modules", "gettext-tiny", + "kwayland", # GL/DRM/Wayland + entrada + color/EDID/modelines + Vulkan (sustrato de sistema): "vulkan-loader", "vulkan-headers", "mesa", "libdrm", "libepoxy", "wayland", "wayland-protocols", "plasma-wayland-protocols",