From 6ac6616a4d344dc18759fae50a541a48983f2756 Mon Sep 17 00:00:00 2001 From: John Date: Sun, 11 Sep 2022 10:37:59 +0200 Subject: [PATCH] kcmutils: fix cross --- srcpkgs/kcmutils/patches/cross.patch | 11 +++++++++++ srcpkgs/kcmutils/template | 5 +---- 2 files changed, 12 insertions(+), 4 deletions(-) create mode 100644 srcpkgs/kcmutils/patches/cross.patch diff --git a/srcpkgs/kcmutils/patches/cross.patch b/srcpkgs/kcmutils/patches/cross.patch new file mode 100644 index 00000000000..d56e56eb50f --- /dev/null +++ b/srcpkgs/kcmutils/patches/cross.patch @@ -0,0 +1,11 @@ +--- a/CMakeLists.txt 2022-08-07 15:19:37.000000000 +0200 ++++ - 2022-09-11 10:33:06.432528721 +0200 +@@ -28,7 +28,7 @@ + + + include(CMakeDependentOption) +-cmake_dependent_option(TOOLS_ONLY "Only build the tools and not the rest of KCMUtils" OFF "NOT CMAKE_CROSSCOMPILING" ON) ++option(TOOLS_ONLY "Only build the tools and not the rest of KCMUtils" OFF) + if (TOOLS_ONLY) + find_package(Qt${QT_MAJOR_VERSION} ${REQUIRED_QT_VERSION} NO_MODULE REQUIRED Core) + add_subdirectory(tools) diff --git a/srcpkgs/kcmutils/template b/srcpkgs/kcmutils/template index 02c8ca8aef4..e074e8cbcaf 100644 --- a/srcpkgs/kcmutils/template +++ b/srcpkgs/kcmutils/template @@ -3,6 +3,7 @@ pkgname=kcmutils version=5.97.0 revision=1 build_style=cmake +build_helper=qemu hostmakedepends="kcoreaddons extra-cmake-modules kpackage kconfig qt5-host-tools qt5-qmake python3 gettext" makedepends="kdeclarative-devel" @@ -13,10 +14,6 @@ homepage="https://invent.kde.org/frameworks/kcmutils" distfiles="${KDE_SITE}/frameworks/${version%.*}/${pkgname}-${version}.tar.xz" checksum=ad1907b5347a907cfa2ff0ef37432d4f1f6b6abbaac2866b75a590b8926a5a75 -if [ "$CROSS_BUILD" ]; then - broken="https://build.voidlinux.org/builders/armv7l-musl_builder/builds/41314/steps/shell_3/logs/stdio" -fi - kcmutils-devel_package() { short_desc+=" - development" depends="${makedepends} ${sourcepkg}>=${version}_${revision}"