diff --git a/config/redbear-full.toml b/config/redbear-full.toml index 44b225b3..e2a3ce41 100644 --- a/config/redbear-full.toml +++ b/config/redbear-full.toml @@ -50,6 +50,7 @@ qtdeclarative = {} qtsvg = {} qtwayland = {} qt6-wayland-smoke = {} +qt6-sensors = {} # KF6 Frameworks — explicit real-build surface in alphabetical order # kirigami: blocked (QML gate — QQuickWindow/QQmlEngine headers don't exist on Redox) @@ -104,7 +105,7 @@ redbear-authd = {} redbear-session-launch = {} seatd = {} redbear-greeter = {} -amdgpu = "ignore" +amdgpu = {} # Core Red Bear umbrella package redbear-meta = {} diff --git a/local/recipes/qt/qt6-sensors/recipe.toml b/local/recipes/qt/qt6-sensors/recipe.toml new file mode 100644 index 00000000..399a448f --- /dev/null +++ b/local/recipes/qt/qt6-sensors/recipe.toml @@ -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 +""" diff --git a/recipes/qt/qt6-sensors b/recipes/qt/qt6-sensors new file mode 120000 index 00000000..0c6ab659 --- /dev/null +++ b/recipes/qt/qt6-sensors @@ -0,0 +1 @@ +../../local/recipes/qt/qt6-sensors \ No newline at end of file diff --git a/recipes/wip/libs/qt/qt6/qt6-sensors/recipe.toml b/recipes/wip/libs/qt/qt6/qt6-sensors/recipe.toml deleted file mode 100644 index 4406fa11..00000000 --- a/recipes/wip/libs/qt/qt6/qt6-sensors/recipe.toml +++ /dev/null @@ -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" diff --git a/recipes/wip/libs/qt/qt6/qt6-sensors/recipe.toml b/recipes/wip/libs/qt/qt6/qt6-sensors/recipe.toml new file mode 120000 index 00000000..ec287b07 --- /dev/null +++ b/recipes/wip/libs/qt/qt6/qt6-sensors/recipe.toml @@ -0,0 +1 @@ +../../local/recipes/qt/qt6-sensors/recipe.toml \ No newline at end of file