Files
RedBear-OS/local/recipes/kde/kwin/recipe.toml
T
vasilito 4ee7fdeecb fix: KF6 config, kwin stub, docs, greeter, I2C/GPIO drivers, bootstrap
- KF6 config: enable 31 KF6 frameworks + kdecoration + kglobalacceld
  (was only kwin stub; 22 additional recipes now enabled)
- KWin: honest #TODO naming real blockers (Qt6::Sensors WIP,
  libinput ignored, no canberra); kwin_wayland shim delegates to
  redbear-compositor
- Greeter: enable redbear-greeterd replacing /usr/bin/true stub
- Mini config: suppress curl/git/mc (broken deps, not boot-critical)
- Docs: fix KF6 count (9->31 enabled), kwin status (stub, not real
  build), plasma blocked, config surface accuracy across
  CONSOLE-TO-KDE-DESKTOP-PLAN, DESKTOP-STACK-CURRENT-STATUS,
  local/AGENTS
- P2-i2c-gpio-ucsi-drivers.patch: 10 I2C/GPIO/UCSI daemon sources
  (gpiod, i2cd, dw-acpi-i2cd, intel-lpss-i2cd, i2c-gpio-expanderd,
  intel-gpiod, i2c-hidd, ucsid, i2c-interface, acpi-resource);
  amd-mp2-i2cd + intel-thc-hidd excluded (PCI API changed)
- P0-bootstrap-workspace-fix.patch: empty [workspace] in bootstrap
  Cargo.toml prevents auto-detection of parent workspace (fixes
  base-initfs from-scratch build)
- QEMU boot verified: kernel -> PCI -> NVMe -> ACPI -> display ->
  networking -> services -> RB_SERIAL_PROBE_OK
2026-04-30 00:01:49 +01:00

58 lines
2.1 KiB
TOML

#TODO: KWin remains a Red Bear transition stub for now. Upstream 6.3.4 lets us disable X11,
# KCMs, screenlocker, tabbox, global shortcuts, runners, and notifications, but the top-level
# CMake still hard-requires non-X11 pieces that are not part of the tracked Red Bear build
# surface yet: Qt6::Sensors is only available as an uncompiled WIP recipe, libinput is still a
# WIP port and is explicitly ignored in config/redbear-full.toml, and there is no canberra recipe
# in-tree.
# This recipe therefore does NOT invoke upstream CMake yet; it only stages
# redbear-compositor-backed kwin_wayland/kwin_wayland_wrapper shims plus the minimal
# KF6WindowSystem/KF6Config CMake config stubs consumed by downstream KDE recipes during the
# transition.
[source]
tar = "https://invent.kde.org/plasma/kwin/-/archive/v6.3.4/kwin-v6.3.4.tar.gz"
blake3 = "2aa1e234a75b0aa94f0da3a74d93e2a8e49b30a3afb12dc24b2ecd3abaa94e7f"
[build]
template = "custom"
script = """
STAGE="${COOKBOOK_STAGE}/usr"
mkdir -p "${STAGE}/bin"
mkdir -p "${STAGE}/lib/cmake/KF6WindowSystem"
mkdir -p "${STAGE}/lib/cmake/KF6Config"
cat > "${STAGE}/bin/kwin_wayland" << 'EOFBIN'
#!/bin/sh
RUNTIME_DIR="${XDG_RUNTIME_DIR:-/tmp/run/redbear-greeter}"
mkdir -p "$RUNTIME_DIR"
export XDG_RUNTIME_DIR="${RUNTIME_DIR}"
exec /usr/bin/redbear-compositor "$@"
EOFBIN
chmod +x "${STAGE}/bin/kwin_wayland"
cat > "${STAGE}/bin/kwin_wayland_wrapper" << 'EOFBIN'
#!/bin/sh
RUNTIME_DIR="${XDG_RUNTIME_DIR:-/tmp/run/redbear-greeter}"
mkdir -p "$RUNTIME_DIR"
export XDG_RUNTIME_DIR="${RUNTIME_DIR}"
exec /usr/bin/kwin_wayland "$@"
EOFBIN
chmod +x "${STAGE}/bin/kwin_wayland_wrapper"
cat > "${STAGE}/lib/cmake/KF6WindowSystem/KF6WindowSystemConfig.cmake" << 'EOFCMAKE'
add_definitions(-DKF6WINDOWSYSTEM_NO_EXPORT)
find_package(Qt6 REQUIRED COMPONENTS Core Gui Widgets)
set(KF6WindowSystem_LIBRARIES Qt6::Gui)
EOFCMAKE
cat > "${STAGE}/lib/cmake/KF6Config/KF6ConfigConfig.cmake" << 'EOFCMAKE'
add_definitions(-DKF6CONFIG_NO_EXPORT)
find_package(Qt6 REQUIRED COMPONENTS Core)
set(KF6Config_LIBRARIES Qt6::Core)
EOFCMAKE
"""
[package]
dependencies = [
"redbear-compositor",
]