diff --git a/srcpkgs/qtutilities/patches/linguist.patch b/srcpkgs/qtutilities/patches/linguist.patch new file mode 100644 index 00000000000..ba87b44dcc1 --- /dev/null +++ b/srcpkgs/qtutilities/patches/linguist.patch @@ -0,0 +1,12 @@ +--- a/cmake/modules/QtConfig.cmake ++++ b/cmake/modules/QtConfig.cmake +@@ -495,6 +495,9 @@ if (ENABLE_QT_TRANSLATIONS AND TS_FILES) + set(APP_SPECIFIC_QT_TRANSLATIONS_AVAILABLE YES) + + # require the LinguistTools module (not adding it to QT_MODULES because we don't link against it) ++ if ("${QT_PACKAGE_PREFIX}" STREQUAL "Qt6") ++ find_package(Qt6 OPTIONAL_COMPONENTS Linguist CONFIG) ++ endif() + find_package("${QT_LINGUIST_TOOLS_PACKAGE}") + if (NOT "${${QT_LINGUIST_TOOLS_PACKAGE}_FOUND}" AND QT_HOST_PATH) + # find the module within the host path when set (required for cross compilation with Qt 6 as the module is absent in diff --git a/srcpkgs/qtutilities/template b/srcpkgs/qtutilities/template index b7a17afa942..ea154e91455 100644 --- a/srcpkgs/qtutilities/template +++ b/srcpkgs/qtutilities/template @@ -1,7 +1,7 @@ # Template file for 'qtutilities' pkgname=qtutilities version=6.18.0 -revision=1 +revision=2 build_style=cmake configure_args="-DBUILD_SHARED_LIBS=ON -DQT_PACKAGE_PREFIX=Qt6" hostmakedepends="qt6-base qt6-tools"