Files
RedBear-OS/local/recipes/qt/qtshadertools/recipe.toml
T
Red Bear Build System 097dc10f70 qt(0.2.5): bump stack to Qt 6.11.1 (real upstream latest stable)
Bump the entire Qt 6 recipe surface to 6.11.1 as resolved from
download.qt.io on 2026-07-02. Per AGENTS.md fork-adaptation policy,
patches in local/patches/qtbase/* and local/patches/qtdeclarative/*
must be re-applied against the 6.11.1 source tree after this commit;
rebase is open work for the next session.

Verified BLAKE3 hashes for the 6.11.1 tarballs:

  qtbase        c3b83023dc54f1173831bbc80abca1901418ef517875bf8071a4895d3c4a3162
  qtdeclarative 10f2d0662047ceb0ef221b725b59e7fec5c9092a4c10d5acc7daefea5f11b962
  qtwayland     154b80972e472b10330c82d3b171a915959a5d06139289d5b898c16c58de4de8
  qtsvg         49b947e1a96bf0a29a1ee84c231a518a1413d9f3ec360617e405400e510508b2
  qtshadertools 24dcd88b9e752a380067182687032b2139d2f6220d64e4193428434970102ae2
  qtsensors     52ad8a724bc34f724feef197cf29f1cb535831ddd0fbad6e9dfedaa01eef1379

Also:

- qtbase: bumped from 6.8.2 -> 6.11.1. The 6.11.0 source tree had been
  imported under local/recipes/qt/qtbase/source/ by a prior session
  without updating the recipe.toml. This commit aligns the recipe
  with both the imported source and the resolved upstream latest.

- qtshadertools: NEW recipe created. The recipes/qt/qtshadertools
  symlink was dangling (target directory did not exist), making
  qtdeclarative's qtshadertools dependency unresolvable. Now wired
  up following the qt6-sensors recipe pattern. Source tar URL is
  the resolved 6.11.1 upstream; per-repo fetch will populate
  source/ on next build.

What's NOT done (deliberately):

- Patch rebase in local/patches/qtbase/P*.patch and
  local/patches/qtdeclarative/P1-skip-tools-crosscompile.patch.
  These must be re-applied against the 6.11.1 source tree before
  the next build. AGENTS.md policy: rebase, do not remove.

- KF6 6.10 -> 6.27.0 bump (38 framework recipes, 17-minor delta).
  Deferred — multi-day patch-rebase work, out of scope for one session.
  See local/docs/0.2.5-GRAPHICS-FREEZE-PLAN.md §2.2.

- KWin 6.6.5 -> 6.7.2 + wayland-protocols/libdrm/libwayland/...
  bumps (remaining graphics recipes). Deferred.

- No build was attempted. recipe.toml pin is now consistent with
  resolved upstream latest-stable; no source tree replacement has
  happened.
2026-07-02 14:27:27 +03:00

69 lines
2.4 KiB
TOML

#TODO: Qt6 ShaderTools — Qt shader translation/compilation pipeline (qsb, spirv-cross).
# Provides libQt6ShaderTools which qtdeclarative depends on for shader pipeline.
# Builds only required tools/libraries; test/example code disabled for cross-compile.
# Source mirrored from upstream Qt 6.11.1.
[source]
tar = "https://download.qt.io/official_releases/qt/6.11/6.11.1/submodules/qtshadertools-everywhere-src-6.11.1.tar.xz"
blake3 = "24dcd88b9e752a380067182687032b2139d2f6220d64e4193428434970102ae2"
patches = []
[build]
template = "custom"
dependencies = [
"qtbase",
]
script = """
DYNAMIC_INIT
HOST_BUILD="${COOKBOOK_ROOT}/build/qt-host-build"
source "${COOKBOOK_ROOT}/local/scripts/lib/qt-sysroot.sh"
redbear_qt_link_sysroot_dirs "${COOKBOOK_SYSROOT}" plugins mkspecs metatypes modules
# Ensure the strtold compat library is available for linking
if [ -f "${COOKBOOK_SYSROOT}/lib/libredbear-qt-strtold-compat.so" ]; then
mkdir -p "${COOKBOOK_SYSROOT}/usr/lib"
cp -f "${COOKBOOK_SYSROOT}/lib/libredbear-qt-strtold-compat.so" "${COOKBOOK_SYSROOT}/usr/lib/" 2>/dev/null || true
fi
redbear_qt_reset_cmake_cache_dir
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}" \
-DQT_BUILD_TOOLS_BY_DEFAULT=OFF \
-DBUILD_SHARED_LIBS=ON \
-DBUILD_TESTING=OFF \
-DBUILD_EXAMPLES=OFF \
-Wno-dev
cmake --build . -j"${COOKBOOK_MAKE_JOBS}"
python3 - <<'PY'
from pathlib import Path
import shutil
install_script = Path("cmake_install.cmake")
generated = Path("lib/cmake/Qt6ShaderTools/Qt6ShaderToolsTargets.cmake")
if install_script.exists() and generated.exists():
for line in install_script.read_text().splitlines():
marker = 'CMakeFiles/Export/'
suffix = '/Qt6ShaderToolsTargets.cmake'
if marker in line and suffix in line and 'FILES "' in line:
expected = Path(line.split('FILES "', 1)[1].rsplit('"', 1)[0])
expected.parent.mkdir(parents=True, exist_ok=True)
if not expected.exists():
shutil.copy2(generated, expected)
break
PY
cmake --install . --prefix "${COOKBOOK_STAGE}/usr"
# Supplemental: copy libraries and plugins to ensure symlinks present
for lib in lib/libQt6*.so*; do
[ -f "${lib}" ] && cp -an "${lib}" "${COOKBOOK_STAGE}/usr/lib/"
done
"""