From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 02C97138336 for ; Sat, 22 Dec 2018 11:44:04 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6D628E0A9C; Sat, 22 Dec 2018 11:44:01 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 343AAE0AAD for ; Sat, 22 Dec 2018 11:44:01 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id F143A335CEF for ; Sat, 22 Dec 2018 11:43:59 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C7AF84FD for ; Sat, 22 Dec 2018 11:43:56 +0000 (UTC) From: "Andreas Sturmlechner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Sturmlechner" Message-ID: <1545479006.a41836d5c8693a2ae264e54548c81b564b7ba4d8.asturm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: kde-apps/akonadi-search/files/, kde-apps/akonadi-search/ X-VCS-Repository: repo/gentoo X-VCS-Files: kde-apps/akonadi-search/akonadi-search-18.12.0.ebuild kde-apps/akonadi-search/files/akonadi-search-18.12.0-cmake.patch X-VCS-Directories: kde-apps/akonadi-search/files/ kde-apps/akonadi-search/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: a41836d5c8693a2ae264e54548c81b564b7ba4d8 X-VCS-Branch: master Date: Sat, 22 Dec 2018 11:43:56 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 59b5dd8d-04b3-4dc3-97dc-305d425b794c X-Archives-Hash: c020a0a267f0b37c8f3eda59ac74738a commit: a41836d5c8693a2ae264e54548c81b564b7ba4d8 Author: Andreas Sturmlechner gentoo org> AuthorDate: Thu Dec 20 20:41:17 2018 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Sat Dec 22 11:43:26 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a41836d5 kde-apps/akonadi-search: Fix cmake for odd Frameworks version mix Reported-by: Martin Bednar serafean.cz> Closes: https://bugs.gentoo.org/673430 Package-Manager: Portage-2.3.52, Repoman-2.3.12 Signed-off-by: Andreas Sturmlechner gentoo.org> .../akonadi-search/akonadi-search-18.12.0.ebuild | 2 + .../files/akonadi-search-18.12.0-cmake.patch | 62 ++++++++++++++++++++++ 2 files changed, 64 insertions(+) diff --git a/kde-apps/akonadi-search/akonadi-search-18.12.0.ebuild b/kde-apps/akonadi-search/akonadi-search-18.12.0.ebuild index 415aae7b1a2..72104375caa 100644 --- a/kde-apps/akonadi-search/akonadi-search-18.12.0.ebuild +++ b/kde-apps/akonadi-search/akonadi-search-18.12.0.ebuild @@ -40,3 +40,5 @@ DEPEND="${COMMON_DEPEND} RDEPEND="${COMMON_DEPEND} !kde-apps/kdepim-l10n " + +PATCHES=( "${FILESDIR}/${P}-cmake.patch" ) diff --git a/kde-apps/akonadi-search/files/akonadi-search-18.12.0-cmake.patch b/kde-apps/akonadi-search/files/akonadi-search-18.12.0-cmake.patch new file mode 100644 index 00000000000..e6a6bd79d45 --- /dev/null +++ b/kde-apps/akonadi-search/files/akonadi-search-18.12.0-cmake.patch @@ -0,0 +1,62 @@ +From f5af0d46904125f0c4c874b462c9f44d4688a528 Mon Sep 17 00:00:00 2001 +From: Andreas Sturmlechner +Date: Wed, 19 Dec 2018 14:21:13 +0100 +Subject: [PATCH] Use KF5_MIN_VERSION instead of KF5_VERSION + +Summary: +KF5_VERSION is overridden by first KF5 find_package version found result, which may be higher +than other installed Frameworks versions at the time, leading to cmake error. + +Reviewers: #kde_pim, dvratil + +Reviewed By: #kde_pim, dvratil + +Subscribers: dvratil, kde-pim + +Tags: #kde_pim + +Differential Revision: https://phabricator.kde.org/D17684 +--- + CMakeLists.txt | 10 ++++------ + 1 file changed, 4 insertions(+), 6 deletions(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index f54a17f..708a266 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -4,9 +4,9 @@ set(PIM_VERSION "5.10.0") + project(AkonadiSearch VERSION ${PIM_VERSION}) + + # ECM setup +-set(KF5_VERSION "5.51.0") ++set(KF5_MIN_VERSION "5.51.0") + +-find_package(ECM ${KF5_VERSION} CONFIG REQUIRED) ++find_package(ECM ${KF5_MIN_VERSION} CONFIG REQUIRED) + set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH}) + + include(GenerateExportHeader) +@@ -39,9 +39,9 @@ set(KMIME_LIB_VERSION "5.10.0") + set(QT_REQUIRED_VERSION "5.9.0") + + find_package(Qt5 ${QT_REQUIRED_VERSION} CONFIG REQUIRED Core Test) +-find_package(KF5 ${KF5_VERSION} REQUIRED COMPONENTS I18n Config Crash KCMUtils) ++find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS I18n Config Crash DBusAddons KCMUtils KIO) + if (AKONADISEARCH_ENABLE_KRUNNER_RUNNER) +- find_package(KF5Runner ${KF5_VERSION} REQUIRED) ++ find_package(KF5Runner ${KF5_MIN_VERSION} REQUIRED) + endif() + + +@@ -57,8 +57,6 @@ find_package(KF5Contacts ${KCONTACTS_LIB_VERSION} CONFIG REQUIRED) + find_package(KF5Mime ${KMIME_LIB_VERSION} CONFIG REQUIRED) + find_package(KF5AkonadiMime ${AKONADI_MIMELIB_VERSION} CONFIG REQUIRED) + find_package(KF5CalendarCore ${KCALENDARCORE_LIB_VERSION} CONFIG REQUIRED) +-find_package(KF5KIO ${KF5_VERSION} CONFIG REQUIRED) +-find_package(KF5DBusAddons ${KF5_VERSION} CONFIG REQUIRED) + + ecm_setup_version(PROJECT + VARIABLE_PREFIX AKONADISEARCH +-- +2.20.1 +