Files
RedBear-OS/local/patches/kf6-kio/01-no-testlib.patch
T
vasilito 6a146bf7ac kf6-kio: align with overlay-patches policy + use 6.27.0 tarball
- Switch tar URL from invent.kde.org git tag v6.10.0 to
  download.kde.org 6.27.0 release tarball (matching the other KF6
  packages). Add blake3 verified against source.tar.
- Add cookbook_apply_patches call so the durable patches in
  local/patches/kf6-kio/ are applied at cook time.
- Add local/patches/kf6-kio/01-no-testlib.patch:
  - Drop Qt6 Test from top-level find_package, make conditional on
    BUILD_TESTING (relibc qtbase disables Test)
  - Skip LibMount find_package on cross-compile (CMAKE_CROSSCOMPILING)
    to avoid LibMount errors since the toolchain sets CMAKE_SYSTEM_NAME=Linux
2026-06-18 08:38:30 +03:00

24 lines
851 B
Diff

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -96,7 +96,10 @@
)
set(REQUIRED_QT_VERSION 6.9.0)
-find_package(Qt6 ${REQUIRED_QT_VERSION} CONFIG REQUIRED Widgets Network Concurrent Xml Test)
+find_package(Qt6 ${REQUIRED_QT_VERSION} CONFIG REQUIRED Widgets Network Concurrent Xml)
+if(BUILD_TESTING)
+ find_package(Qt6 ${REQUIRED_QT_VERSION} CONFIG REQUIRED Test)
+endif()
if (Qt6Gui_VERSION VERSION_GREATER_EQUAL "6.10.0")
find_package(Qt6GuiPrivate ${REQUIRED_QT_VERSION} REQUIRED NO_MODULE)
@@ -139,7 +142,7 @@
PURPOSE "Support for manipulating access control lists")
# Used by KMountPoint
-if (CMAKE_SYSTEM_NAME MATCHES "Linux")
+if (CMAKE_SYSTEM_NAME MATCHES "Linux" AND NOT CMAKE_CROSSCOMPILING)
find_package(LibMount REQUIRED)
set(HAVE_LIB_MOUNT ${LibMount_FOUND})
endif()