Commit Graph

8 Commits

Author SHA1 Message Date
vasilito 60cfb9df5c fix: qtdeclarative metatypes resolution via extended dep sysroot symlinks
The Qt6SvgTargets.cmake config contains absolute paths to qtsvg's own
sysroot/metatypes/ for INTERFACE_SOURCES. When the cookbook cleans
qtsvg's sysroot between recipe builds, these paths dangle and cause
CMake Generate to fail.

Extend redbear_qt_ensure_dep_sysroots to create symlinks for ALL Qt
directories (metatypes, plugins, mkspecs, modules, qml) — not just
include and lib. Add the call to qtdeclarative's recipe (was missing).
2026-07-01 00:32:52 +03:00
vasilito 0ce9eb4736 fix: qt-sysroot dep symlinks point to dependency's own stage, not caller's sysroot
redbear_qt_ensure_dep_sysroots was creating symlinks in the dependency's
sysroot pointing to the CALLING recipe's sysroot. This caused CMake
'hidden library' warnings and corrupts the dependency's build when it
gets rebuilt later.

Fix: derive the dependency's stage path from its sysroot path
(dirname(sysroot)/stage/usr) and link to that instead. This way
qtdeclarative's sysroot include/lib point to qtdeclarative's OWN
stage, not to qt6-sensors' sysroot.

Also fix wayland-patch.sh: replace ${LIBXCB_LIBRARIES} with empty
string instead of a comment. The comment was eating the closing )
on the same line, causing 'Function missing ending paren' CMake
parse error in src/daemon/CMakeLists.txt:63.
2026-07-01 00:20:18 +03:00
vasilito b8b348b11e fix: resolve qtdeclarative sysroot propagation failures
Three build failures (qt6-sensors, sddm, kwin) all trace to
qtdeclarative's sysroot/ directory being missing after staging.
CMake config files reference absolute paths into that sysroot.

1. qt-sysroot.sh: add mkdir -p before ln -sf in
   redbear_qt_ensure_dep_sysroots() so the parent directory is
   created when the dependency sysroot was cleaned up.

2. sddm wayland-patch.sh: fix sed pattern to include LinguistTools
   token that exists in the actual upstream CMakeLists.txt line.
   Without it the sed silently fails to match, leaving
   LinguistTools/Test/QuickTest as REQUIRED components.

3. qt6-sensors recipe.toml: source qt-sysroot.sh and call
   redbear_qt_ensure_dep_sysroots() before cmake configure.
   Previously the recipe only symlinked plugins/mkspecs/metatypes/
   modules but never fixed up dependency sysroot paths, causing
   Qt6::Qml INTERFACE_INCLUDE_DIRECTORIES to reference a
   non-existent include path.
2026-06-30 23:59:46 +03:00
vasilito f306d10afb qtsvg: ensure strtold compat library is available in sysroot for linking
- Copy libredbear-qt-strtold-compat.so to sysroot/usr/lib before cmake configure
- Fixes build failure where qtsvg cannot find -lredbear-qt-strtold-compat
2026-06-21 02:30:27 +03:00
vasilito aee89315c9 qtbase: add explicit dbus include paths for cross-compilation 2026-06-20 16:38:02 +03:00
vasilito 04b7641e85 config: add x11proto dependency for libxau and SDDM
- Add x11proto to redbear-full.toml package list
- libxau recipe updated with x11proto dependency and custom build script
- Fixes libxau build failure: 'Package xproto was not found'
2026-06-20 14:57:46 +03:00
vasilito a48739ec8a fix: standardize Qt and KDE sysroot helper usage 2026-05-02 22:10:22 +01:00
vasilito 23c8146c60 feat: add build preflight and sysroot helpers 2026-05-02 22:09:36 +01:00