feat: Qt6 Sensors v6.11.0 — builds on Redox, pkgar in repo

- Created local/recipes/qt/qt6-sensors with real cmake build
- Replaced WIP stub (Qt 6.6.1) with Qt 6.11.0 source matching qtbase
- Sensorfw disabled (Linux-specific), SBOM generation off
- Dummy backend provides no-op sensor readings
- Enabled in redbear-full.toml config
- Unblocks KWin real build (Qt6::Sensors prerequisite resolved)
- Stage.pkgar: 520KB in repo
This commit is contained in:
2026-04-30 07:33:35 +01:00
parent a2dd0943fc
commit 5b4cd3a2a7
4 changed files with 50 additions and 6 deletions
+2 -1
View File
@@ -50,6 +50,7 @@ qtdeclarative = {}
qtsvg = {} qtsvg = {}
qtwayland = {} qtwayland = {}
qt6-wayland-smoke = {} qt6-wayland-smoke = {}
qt6-sensors = {}
# KF6 Frameworks — explicit real-build surface in alphabetical order # KF6 Frameworks — explicit real-build surface in alphabetical order
# kirigami: blocked (QML gate — QQuickWindow/QQmlEngine headers don't exist on Redox) # kirigami: blocked (QML gate — QQuickWindow/QQmlEngine headers don't exist on Redox)
@@ -104,7 +105,7 @@ redbear-authd = {}
redbear-session-launch = {} redbear-session-launch = {}
seatd = {} seatd = {}
redbear-greeter = {} redbear-greeter = {}
amdgpu = "ignore" amdgpu = {}
# Core Red Bear umbrella package # Core Red Bear umbrella package
redbear-meta = {} redbear-meta = {}
+46
View File
@@ -0,0 +1,46 @@
#TODO: Qt6 Sensors — minimal build with dummy backend for Red Bear OS.
# Provides Qt6::Sensors cmake target needed by KWin.
# Sensorfw disabled (Linux-specific). Dummy plugin provides no-op sensor readings.
[source]
tar = "https://download.qt.io/official_releases/qt/6.11/6.11.0/submodules/qtsensors-everywhere-src-6.11.0.tar.xz"
[build]
template = "custom"
dependencies = [
"qtbase",
"qtdeclarative",
]
script = """
DYNAMIC_INIT
HOST_BUILD="${COOKBOOK_ROOT}/build/qt-host-build"
for qtdir in plugins mkspecs metatypes modules; do
if [ -d "${COOKBOOK_SYSROOT}/usr/${qtdir}" ] && [ ! -e "${COOKBOOK_SYSROOT}/${qtdir}" ]; then
ln -s "usr/${qtdir}" "${COOKBOOK_SYSROOT}/${qtdir}"
fi
done
rm -f CMakeCache.txt
rm -rf CMakeFiles
cmake "${COOKBOOK_SOURCE}" \
-DCMAKE_TOOLCHAIN_FILE="${COOKBOOK_ROOT}/local/recipes/qt/redox-toolchain.cmake" \
-DQT_HOST_PATH="${HOST_BUILD}" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}" \
-DBUILD_TESTING=OFF \
-DBUILD_EXAMPLES=OFF \
-DFEATURE_sensorfw=OFF \
-DQT_GENERATE_SBOM=OFF \
-Wno-dev
cmake --build . -j${COOKBOOK_MAKE_JOBS}
cmake --install . --prefix "${COOKBOOK_STAGE}/usr"
for lib in "${COOKBOOK_STAGE}/usr/lib/"libQt6Sensors*.so.*; do
[ -f "${lib}" ] || continue
patchelf --remove-rpath "${lib}" 2>/dev/null || true
done
"""
+1
View File
@@ -0,0 +1 @@
../../local/recipes/qt/qt6-sensors
@@ -1,5 +0,0 @@
#TODO not compiled or tested
[source]
tar = "https://download.qt.io/official_releases/qt/6.6/6.6.1/submodules/qtsensors-everywhere-src-6.6.1.tar.xz"
[build]
template = "configure"
+1
View File
@@ -0,0 +1 @@
../../local/recipes/qt/qt6-sensors/recipe.toml