gioser

sergio/takana

> Una distribución Linux construida con un laboratorio funcional y hermético en el > sótano, y una terminal mutable, clásica y anárquica en el piso de arriba — diseñada > desde el suelo para que una IA programadora entienda, modifique y co…

TOML 1389Shell 137Markdown 80Rust 802602 Definiciones

⎇ main recipes/incoming-kde/plasma-workspace.toml TOML · 159 líneas · 13.1 KB Historia crudo

KDE: cerrar los 3 huecos que quedaban — polkit-qt-1, qqc2-breeze-style y xwayland 3d8c6fc6c · Sergio ·

1# plasma-workspace 6.7.2 — EL PAQUETE GRANDE del escritorio: contiene plasmashell, ksmserver, plasma-session,
2# krunner (frontend), startplasma, krunner dbus, applets base, systray, kcms del shell, etc. Es el objetivo
3# final de la campaña KDE (ADR 0011). Patrón KF6 (dynamic, wrapper zig filtra -Wl,--fatal-warnings) + Ninja.
4#
5# ===================== ESTADO: MUCHOS BLOQUEADORES DUROS (receta especulativa) =====================
6# Se leyó el CMakeLists raíz completo + los 204 CMakeLists de subdirectorios. TODO find_package REQUIRED /
7# pkg_check REQUIRED vive en la raíz (los subdirs no agregan REQUIRED nuevos; JOURNALD/libsystemd está tras
8# if(SYSTEMD_FOUND), falso en musl → no bloquea). BLOQUEADORES que faltan por sellar (crear receta):
9#
10#  Qt6 (módulos no sellados):
11#   - qtlocation      COMPONENT Location  → https://download.qt.io/official_releases/qt/6.11/6.11.1/submodules/qtlocation-everywhere-src-6.11.1.tar.xz
12#                                            sha256 3791ce77299e6f600a593d0fbfa5bd32fbcfc2d16104782b84acc489e382e41b
13#  Terceros (libs C/C++):
14#   - qcoro (QCoro6 REQUIRED Core)       → https://github.com/qcoro/qcoro/archive/refs/tags/v0.12.0.tar.gz
15#                                            sha256 809afafab61593f994c005ca6e242300e1e3e7f4db8b5d41f8c642aab9450fbc
16#   - icu4c (ICU i18n uc, TYPE REQUIRED) → https://github.com/unicode-org/icu/releases/download/release-77-1/icu4c-77_1-src.tgz
17#                                            sha256 588e431f77327c39031ffbb8843c0e3bc122c211374485fa87dc5f3faff24061
18#   - libqalculate (QALCULATE>2.0 REQ)  → https://github.com/Qalculate/libqalculate/releases/download/v5.6.0/libqalculate-5.6.0.tar.gz
19#                                            sha256 2d44130954f327e595af74d0d035f450b560e7997eceb9af16503456d5196f39
20#   - libcanberra (Canberra REQUIRED)   → https://0pointer.de/lennart/projects/libcanberra/libcanberra-0.30.tar.xz
21#                                            sha256 c2b671e67e0c288a69fc33dc1b6f1b534d07882c2aceed37004bf48c601afa72
22#                                            (PARCHEABLE a opcional como kwin/knotifications, o sellar libcanberra)
23#  Frameworks KF6 6.27.0 (COMPONENTS de find_package(KF6 REQUIRED)):
24#   - kded             (KDED)             → https://download.kde.org/stable/frameworks/6.27/kded-6.27.0.tar.xz               sha256 4f24067915b05a1d0cc87e2c37f37eb0e8c441e8fccdf06ca27ee7b923058243
25#   - prison           (Prison)           → https://download.kde.org/stable/frameworks/6.27/prison-6.27.0.tar.xz             sha256 760903e9ae401f8bcdb9efc9ad6548982642e7411a223c8ceb41e5491a6b1135
26#   - krunner          (Runner)           → https://download.kde.org/stable/frameworks/6.27/krunner-6.27.0.tar.xz            sha256 46d06321bbccadb8f3fbb948ffaac5eff18dad9552fde677761ddddb9470202f
27#   - kstatusnotifieritem (StatusNotifierItem) → https://download.kde.org/stable/frameworks/6.27/kstatusnotifieritem-6.27.0.tar.xz  sha256 a2eec2a981ed9da6cffc955cc21a50dcbc77141cbb840d915f92d1897442d239
28#   - ktexteditor      (TextEditor)       → https://download.kde.org/stable/frameworks/6.27/ktexteditor-6.27.0.tar.xz        sha256 2b737a61737e73650cd0b40d9e246a182dcccc6c8ae8121cfcb9415433ee41ae
29#  KDE Plasma 6.7.2 (libs no selladas, TYPE REQUIRED):
30#   - plasma-activities-stats (PlasmaActivitiesStats) → https://download.kde.org/stable/plasma/6.7.2/plasma-activities-stats-6.7.2.tar.xz  sha256 1928355838356bcd59790701cb8d470849b0dc4bec183e3eae26d12f789459b4
31#   - libksysguard    (KSysGuard REQUIRED) → https://download.kde.org/stable/plasma/6.7.2/libksysguard-6.7.2.tar.xz          sha256 6f7dbf058e453c6d2d643cf5cf25051aa0398fa3c8f3cb754bf2e46434d94cd7
32#   - libkscreen      (KF6Screen REQUIRED) → https://download.kde.org/stable/plasma/6.7.2/libkscreen-6.7.2.tar.xz            sha256 408dc2753001a689cadfc77bdcc4a968baa385cae8dd8abce6c3ce422284d078
33#   - networkmanager-qt (KF6NetworkManagerQt REQUIRED en LINUX) → https://download.kde.org/stable/frameworks/6.27/networkmanager-qt-6.27.0.tar.xz  sha256 a8193895b420d576fac228388ba8fd1b24d6f229c43b7963e2ed581ef82cad9a
34#                                            (además exige NetworkManager runtime/headers)
35#  Cadena X11-session (WITH_X11=ON, default; check_X11_lib hace SEND_ERROR si falta):
36#   - libICE     → https://www.x.org/releases/individual/lib/libICE-1.1.2.tar.xz      sha256 974e4ed414225eb3c716985df9709f4da8d22a67a2890066bc6dfc89ad298625
37#   - libSM      → https://www.x.org/releases/individual/lib/libSM-1.2.6.tar.xz       sha256 be7c0abdb15cbfd29ac62573c1c82e877f9d4047ad15321e7ea97d1e43d835be
38#   - libXcursor → https://www.x.org/releases/individual/lib/libXcursor-1.2.3.tar.xz  sha256 fde9402dd4cfe79da71e2d96bb980afc5e6ff4f8a7d74c159e1966afb2b2c2c0
39#   - libXft     → https://www.x.org/releases/individual/lib/libXft-2.3.9.tar.xz      sha256 60a25b78945ed6932635b3bb1899a517d31df7456e69867ffba27f89ff3976f5  (freetype+fontconfig, ambos con receta)
40#   - libXtst    → https://www.x.org/releases/individual/lib/libXtst-1.2.5.tar.xz     sha256 b50d4c25b97009a744706c1039c598f4d8e64910c9fde381994e1cae235d9242
41#  Región&Idioma KCM (mitigado abajo con -DGLIBC_LOCALE_GEN=OFF -DGLIBC_LOCALE_PREGENERATED=ON, que apaga
42#   REGION_LANG_GENERATE_LOCALE_HELPER y evita el PolkitQt6-1 REQUIRED). Si se reactiva:
43#   - polkit-qt-1 (PolkitQt6-1 REQUIRED) → https://download.kde.org/stable/polkit-qt-1/polkit-qt-1-0.200.0.tar.xz  sha256 5d3b611c062d2b76a93750bb10c907bfd21d1ff08d0a15dc2cf63e278e1677fb  (+ polkit)
44#
45#  De esta tanda (recetas nuevas, a su vez con blockers propios): kscreenlocker (KScreenLocker REQUIRED bajo
46#   WITH_X11; blocker libkscreen+PAM) · layer-shell-qt (LayerShellQt REQUIRED, sin blockers).
47#  Provistos por el catálogo: KWinDBusInterface ← kwin (sellado) · ScreenSaverDBusInterface ← kscreenlocker
48#   (esta tanda) · Plasma/PlasmaQuick ← libplasma · KWayland ← kwayland · PlasmaActivities ← plasma-activities
49#   · KNightTime ← knighttime · PlasmaWaylandProtocols · Wayland · UDev(libudev-zero) · ZLIB · DBus · XCB · X11(base).
50#  RUNTIME/OPTIONAL (auto-OFF, NO bloquean el build; sellar para funcionalidad completa del escritorio):
51#   - kirigami-addons (KF6KirigamiAddons) → https://download.kde.org/stable/kirigami-addons/kirigami-addons-1.9.0.tar.xz   sha256 21314a91f26b1c962def3fd7ff2e762d3358b075f63f4d7e0144fb2c63b7ebc7
52#   - kquickcharts (KF6QuickCharts)       → https://download.kde.org/stable/frameworks/6.27/kquickcharts-6.27.0.tar.xz      sha256 d2a533bbf3d7f257e9306009bc32bdea41346cbd8e82d06c188879d5f0460380
53#   - qqc2-desktop-style                  → https://download.kde.org/stable/frameworks/6.27/qqc2-desktop-style-6.27.0.tar.xz sha256 6c005f06c5f8c4ac349238abf14999bb917215a8f7b8c51364e2fdd12e9e6355
54#   - breeze (Breeze OPTIONAL, deco/tema) → https://download.kde.org/stable/plasma/6.7.2/breeze-6.7.2.tar.xz                sha256 80818bf6382a96e1a45c755f983d98357c4f7163f80cb8217897df15f8a02785
55#   - plasma-integration                  → https://download.kde.org/stable/plasma/6.7.2/plasma-integration-6.7.2.tar.xz    sha256 f1ce2c3fb0e07a4e0cd5e3d5566fb67e6063aaf435e8efb3402f7d65e1da95a4
56#   - kpipewire (PipeWire QUIET, applets)→ https://download.kde.org/stable/plasma/6.7.2/kpipewire-6.7.2.tar.xz             sha256 68bd246f4d403d3d7f49bd2ffcd4e0d12bc55fa81554533f750ac2e4bb5aa61e
57#   - KF6Baloo/KF6UserFeedback/AppStreamQt/PackageKitQt6/KExiv2Qt6/KIOExtras/KIOFuse/Flatpak/kirigami(RUNTIME).
58#  NOTA: con -DWITH_X11=OFF -DWITH_X11_SESSION=OFF (experimental) se caen los 5 libX* de sesión, KScreenLocker
59#   y XCB-AUX/CURSOR/RANDR/IMAGE; camino Wayland-puro, no probado aquí.
60# ==================================================================================================
61name    = "plasma-workspace"
62version = "6.7.2"
63license = "GPL-2.0-or-later"
64
65[source]
66tarball = "https://download.kde.org/stable/plasma/6.7.2/plasma-workspace-6.7.2.tar.xz"
67sha256  = "89419e0532a8b33fda721e750c8f480c38828d5c14523952430dffcce0adc606"
68
69[build]
70compiler = "zig-cc"
71target   = "x86_64-linux-musl"
72link     = "dynamic"
73flags    = []
74
75[build.phases]
76configure = '''
77# rm -rf po: paquete ENORME con muchísimas traducciones; gettext-tiny msgfmt crashea (ver kwin). Inglés.
78rm -rf po
79# CAMINO WAYLAND-PURO (WITH_X11=OFF): cae la sesión X11 (libICE/libSM/libXcursor/libXft/libXtst) +
80# kscreenlocker (bajo WITH_X11) + XCB AUX/CURSOR/RANDR/IMAGE. WITH_X11_SESSION=ON FUERZA WITH_X11=1
81# (línea 172-174) ⇒ hay que apagar AMBOS.
82# NetworkManagerQt: `if(LINUX) find_package(KF6NetworkManagerQt ... REQUIRED)` (esquiva libnm→glib).
83# El código consumidor ya está tras `if(TARGET KF6::NetworkManagerQt)` (L443) ⇒ degrada limpio. Quitamos REQUIRED.
84sed -i '/find_package(KF6NetworkManagerQt/ s/ REQUIRED)/)/' CMakeLists.txt
85# Canberra: `find_package(Canberra)` (L133) no lleva REQUIRED pero `set_package_properties(Canberra ...
86# TYPE REQUIRED)` (L134-136) lo hace obligatorio en feature_summary. Es cosmético ("preview notification
87# sounds") ⇒ lo bajamos a OPTIONAL (acotado al bloque Canberra para no tocar el de Breeze que sigue).
88sed -i '/set_package_properties(Canberra/,/)/ s/TYPE REQUIRED/TYPE OPTIONAL/' CMakeLists.txt
89# xembed-sni-proxy: `ecm_optional_add_subdirectory(xembed-sni-proxy)` (L458) NO está gated por WITH_X11
90# (oversight upstream) y linkea X11::Xtst, inexistente en Wayland-puro (WITH_X11=OFF) ⇒ falla el Generate.
91# Es un shim SNI para apps XEmbed legacy (bandeja X11), irrelevante sin X11. Lo removemos.
92sed -i '/ecm_optional_add_subdirectory(xembed-sni-proxy)/d' CMakeLists.txt
93ZW="$PWD/.zwrap"; mkdir -p "$ZW"
94cat > "$ZW/cc"  <<'W'
95#!/bin/sh
96a=""; for x in "$@"; do [ "$x" = "-Wl,--fatal-warnings" ] && continue; a="$a $x"; done
97exec /opt/zig/zig cc -mcpu=baseline $a
98W
99cat > "$ZW/cxx" <<'W'
100#!/bin/sh
101a=""; for x in "$@"; do [ "$x" = "-Wl,--fatal-warnings" ] && continue; a="$a $x"; done
102exec /opt/zig/zig c++ -mcpu=baseline $a
103W
104chmod +x "$ZW/cc" "$ZW/cxx"
105PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/share/pkgconfig \
106cmake -B build -G Ninja -Wno-dev \
107  -DCMAKE_C_COMPILER="$ZW/cc" -DCMAKE_CXX_COMPILER="$ZW/cxx" -DCMAKE_ASM_COMPILER="$ZW/cc" \
108  -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_PREFIX_PATH=/usr \
109  -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=OFF \
110  -DBUILD_TESTING=OFF -DBUILD_PYTHON_BINDINGS=OFF \
111  -DWITH_X11=OFF -DWITH_X11_SESSION=OFF \
112  -DGLIBC_LOCALE_GEN=OFF -DGLIBC_LOCALE_PREGENERATED=ON
113'''
114compile = "cmake --build build"
115install = "DESTDIR=/out cmake --install build"
116
117[deps]
118# ⚠ `qqc2-breeze-style` va en RUNTIME y no en build, a propósito: es un plugin QML que Qt carga al
119# arrancar por la ruta de imports (`/usr/lib/qt6/qml/org/kde/breeze`), no algo contra lo que se
120# enlace nada. Ponerlo en `build` sería mentir sobre la relación y además re-hashearía la receta y
121# sus 2 dependientes sin motivo — `runtime` NO entra en `hash_inputs`. Sin él los controles QML de
122# Plasma caen al estilo Basic de Qt: el escritorio arranca y se ve ajeno. Lo reportó
123# `yupana frontera` como hueco de RUNTIME, que es exactamente lo que es.
124runtime = ["qqc2-breeze-style"]
125build = ["cmake", "samurai", "python3", "pkgconf", "qtbase", "qtdeclarative", "qtsvg", "qtshadertools",
126  "qtwayland", "qtpositioning", "qttools", "dbus", "extra-cmake-modules", "gettext-tiny",
127  "mesa", "libdrm", "libxkbcommon", "wayland", "wayland-protocols", "plasma-wayland-protocols",
128  # Qt6 módulos (SELLADO):
129  "qtlocation",
130  # Terceros (SELLADOS; libcanberra=opcional en CMakeLists, fuera):
131  "qcoro", "icu4c", "libqalculate", "libcanberra",
132  # Frameworks KF6 COMPONENTS (SELLADOS):
133  "kded", "prison", "krunner", "kstatusnotifieritem", "ktexteditor",
134  # KDE Plasma libs (SELLADAS; networkmanager-qt patcheado a opcional, fuera):
135  "plasma-activities-stats", "libksysguard", "libkscreen",
136  # WAYLAND-PURO (WITH_X11=OFF): libICE/libSM/libXcursor/libXft/libXtst + kscreenlocker CAEN.
137  "freetype", "fontconfig",
138  # LayerShellQt REQUIRED (SELLADO):
139  "layer-shell-qt", "kscreenlocker",
140  # KF6 REQUIRED COMPONENTS ya sellados:
141  "karchive", "kauth", "kcoreaddons", "kcrash", "kdbusaddons", "kdeclarative", "kglobalaccel",
142  "kguiaddons", "kholidays", "ki18n", "kiconthemes", "kidletime", "kitemmodels", "kcmutils",
143  "kio", "knewstuff", "knotifications", "kpackage", "kparts", "ksvg", "ktextwidgets", "kwallet",
144  "kcolorscheme",
145  # KDE Plasma / KF6 provistos por el catálogo (REQUIRED satisfechos):
146  "libplasma", "kwayland", "plasma-activities", "knighttime", "kwin", "kirigami",
147  # cierre transitivo KF6 tier1-4 (find_dependency de los Config.cmake anteriores):
148  "kconfig", "kconfigwidgets", "kcodecs", "kcompletion", "kwidgetsaddons", "kitemviews",
149  "kxmlgui", "syntax-highlighting", "qtspeech", "qtmultimedia",
150  "sonnet", "kjobwidgets", "kbookmarks", "kservice", "attica", "solid", "kdnssd",
151  "kfilemetadata", "kwindowsystem", "kglobalacceld", "kdecoration", "kplotting",
152  "qtpositioning", "kholidays",
153  "libgcrypt", "libgpg-error", "openssl", "util-linux", "zlib", "zstd",
154  # SET X11 completo + XCB extras (WITH_X11 → X11 + XCB AUX/XCB/CURSOR/RANDR/IMAGE):
155  "libX11", "xorgproto", "libXau", "libXdmcp", "libXext", "libXrender", "libXfixes", "libXi",
156  "libxcb", "xcb-util", "xcb-util-cursor", "xcb-util-keysyms", "xcb-util-wm",
157  "xcb-util-image", "xcb-util-renderutil",
158  # sustrato de sistema:
159  "libudev-zero", "pixman", "lcms2"]