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 29BEB1396D9 for ; Fri, 10 Nov 2017 10:40:47 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 26A91E0EB7; Fri, 10 Nov 2017 10:40:45 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 D0F6FE0EB7 for ; Fri, 10 Nov 2017 10:40:44 +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 1919233BE68 for ; Fri, 10 Nov 2017 10:40:43 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 83CBA9895 for ; Fri, 10 Nov 2017 10:40:41 +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: <1510310424.06c1ac768322d28e4e8ee00c81fe6c296c9a9459.asturm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: kde-apps/okular/files/, kde-apps/okular/ X-VCS-Repository: repo/gentoo X-VCS-Files: kde-apps/okular/files/okular-17.08.3-cmake-3.10.patch kde-apps/okular/okular-17.08.3.ebuild X-VCS-Directories: kde-apps/okular/ kde-apps/okular/files/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: 06c1ac768322d28e4e8ee00c81fe6c296c9a9459 X-VCS-Branch: master Date: Fri, 10 Nov 2017 10:40:41 +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-Archives-Salt: 2eb2ca0e-e498-46d8-803e-ab3af4d880d6 X-Archives-Hash: 949f2dd2a68c5eefe1ee1f79a33e7c3b commit: 06c1ac768322d28e4e8ee00c81fe6c296c9a9459 Author: Andreas Sturmlechner gentoo org> AuthorDate: Fri Nov 10 10:40:07 2017 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Fri Nov 10 10:40:24 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=06c1ac76 kde-apps/okular: Fix build w/ cmake-3.10 Package-Manager: Portage-2.3.8, Repoman-2.3.4 .../okular/files/okular-17.08.3-cmake-3.10.patch | 45 ++++++++++++++++++++++ kde-apps/okular/okular-17.08.3.ebuild | 2 + 2 files changed, 47 insertions(+) diff --git a/kde-apps/okular/files/okular-17.08.3-cmake-3.10.patch b/kde-apps/okular/files/okular-17.08.3-cmake-3.10.patch new file mode 100644 index 00000000000..33c56a6e7ec --- /dev/null +++ b/kde-apps/okular/files/okular-17.08.3-cmake-3.10.patch @@ -0,0 +1,45 @@ +From f777e2a9241c4f384f60c467e226eee85fb5bc98 Mon Sep 17 00:00:00 2001 +From: Henrik Fehlauer +Date: Sat, 4 Nov 2017 00:22:09 +0100 +Subject: Fix CMake Error in generators/spectre/CMakeLists.txt + +Summary: +When porting from `add_library` to `okular_add_generator`, 2f9246ae42ce +missed to remove `MODULE` for spectre, which is already implicitly added +as can be seen [here](https://phabricator.kde.org/source/kcoreaddons/browse/master/KF5CoreAddonsMacros.cmake;83623a46c9862ee37535de93427dec0b0c55e24d$139). + +This causes the upcoming CMake 3.10 to print the error `Cannot find +source file`, which can be fixed by removing the superfluous `MODULE`. + +BUG: 386176 + +Test Plan: +No error shown anymore with CMake 3.10.0-rc4. Still works with CMake +3.5.1. + +Reviewers: #okular, ngraham + +Reviewed By: ngraham + +Tags: #okular + +Differential Revision: https://phabricator.kde.org/D8612 +--- + generators/spectre/CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/generators/spectre/CMakeLists.txt b/generators/spectre/CMakeLists.txt +index d808c36..5d6927d 100644 +--- a/generators/spectre/CMakeLists.txt ++++ b/generators/spectre/CMakeLists.txt +@@ -24,7 +24,7 @@ ki18n_wrap_ui(okularGenerator_ghostview_SRCS + kconfig_add_kcfg_files(okularGenerator_ghostview_SRCS conf/gssettings.kcfgc ) + + +-okular_add_generator(okularGenerator_ghostview MODULE ${okularGenerator_ghostview_SRCS}) ++okular_add_generator(okularGenerator_ghostview ${okularGenerator_ghostview_SRCS}) + + target_link_libraries(okularGenerator_ghostview okularcore ${LIBSPECTRE_LIBRARY} KF5::I18n Qt5::Xml) + +-- +cgit v0.11.2 diff --git a/kde-apps/okular/okular-17.08.3.ebuild b/kde-apps/okular/okular-17.08.3.ebuild index 283bc3eb368..d5f22e6d85a 100644 --- a/kde-apps/okular/okular-17.08.3.ebuild +++ b/kde-apps/okular/okular-17.08.3.ebuild @@ -64,6 +64,8 @@ RDEPEND="${DEPEND} # bug 603116 RESTRICT+=" test" +PATCHES=( "${FILESDIR}/${P}-cmake-3.10.patch" ) + src_prepare() { kde5_src_prepare use mobile || cmake_comment_add_subdirectory mobile