Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/kde:master commit in: kde-frameworks/extra-cmake-modules/, kde-frameworks/extra-cmake-modules/files/
Date: Tue, 29 Mar 2022 10:51:17
Message-Id: 1648550849.5f2b69f3ffb3011e3c77506e98d6363379274ac6.asturm@gentoo
1 commit: 5f2b69f3ffb3011e3c77506e98d6363379274ac6
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Tue Mar 29 10:47:29 2022 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Tue Mar 29 10:47:29 2022 +0000
6 URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=5f2b69f3
7
8 kde-frameworks/extra-cmake-modules: Rebase skip-ecm_add_test-early.patch
9
10 Reported-by: Duncan <1i5t5.duncan <AT> cox.net>
11 Closes: https://bugs.gentoo.org/836348
12 Package-Manager: Portage-3.0.30, Repoman-3.0.3
13 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
14
15 .../extra-cmake-modules-9999.ebuild | 2 +-
16 ...e-modules-5.93.0-skip-ecm_add_test-early.patch} | 39 ++++++++++++----------
17 2 files changed, 22 insertions(+), 19 deletions(-)
18
19 diff --git a/kde-frameworks/extra-cmake-modules/extra-cmake-modules-9999.ebuild b/kde-frameworks/extra-cmake-modules/extra-cmake-modules-9999.ebuild
20 index df4d73770a..d692244ad8 100644
21 --- a/kde-frameworks/extra-cmake-modules/extra-cmake-modules-9999.ebuild
22 +++ b/kde-frameworks/extra-cmake-modules/extra-cmake-modules-9999.ebuild
23 @@ -33,7 +33,7 @@ RDEPEND="
24
25 PATCHES=(
26 "${FILESDIR}/${PN}-5.49.0-no-fatal-warnings.patch"
27 - "${FILESDIR}/${PN}-5.72.0-skip-ecm_add_test-early.patch"
28 + "${FILESDIR}/${PN}-5.93.0-skip-ecm_add_test-early.patch"
29 "${FILESDIR}/${PN}-5.93.0-disable-qmlplugindump.patch"
30 )
31
32
33 diff --git a/kde-frameworks/extra-cmake-modules/files/extra-cmake-modules-5.72.0-skip-ecm_add_test-early.patch b/kde-frameworks/extra-cmake-modules/files/extra-cmake-modules-5.93.0-skip-ecm_add_test-early.patch
34 similarity index 61%
35 rename from kde-frameworks/extra-cmake-modules/files/extra-cmake-modules-5.72.0-skip-ecm_add_test-early.patch
36 rename to kde-frameworks/extra-cmake-modules/files/extra-cmake-modules-5.93.0-skip-ecm_add_test-early.patch
37 index 72541d73e7..f9eef60072 100644
38 --- a/kde-frameworks/extra-cmake-modules/files/extra-cmake-modules-5.72.0-skip-ecm_add_test-early.patch
39 +++ b/kde-frameworks/extra-cmake-modules/files/extra-cmake-modules-5.93.0-skip-ecm_add_test-early.patch
40 @@ -1,35 +1,36 @@
41 -From ad3aec71ed7f8820e69fe55489368a19d0735ab5 Mon Sep 17 00:00:00 2001
42 +From 9b53dd107af153b88658ffa246de728a8a6fbd9d Mon Sep 17 00:00:00 2001
43 From: Andreas Sturmlechner <asturm@g.o>
44 Date: Sat, 11 Jul 2020 23:04:16 +0200
45 -Subject: [PATCH] ECMAddTests.cmake: Skip ecm_add_test early if Qt5::Test is not available
46 +Subject: [PATCH] ECMAddTests.cmake: Skip ecm_add_test early if Qt::Test is not
47 + available
48
49 Signed-off-by: Andreas Sturmlechner <asturm@g.o>
50 ---
51 modules/ECMAddTests.cmake | 9 +++++++++
52 - tests/ECMAddTests/CMakeLists.txt | 5 +++++
53 - 2 files changed, 14 insertions(+)
54 + tests/ECMAddTests/CMakeLists.txt | 4 ++++
55 + 2 files changed, 13 insertions(+)
56
57 diff --git a/modules/ECMAddTests.cmake b/modules/ECMAddTests.cmake
58 -index 4bc7fb8..12825aa 100644
59 +index 58c78d05..994ed1e4 100644
60 --- a/modules/ECMAddTests.cmake
61 +++ b/modules/ECMAddTests.cmake
62 -@@ -81,6 +81,10 @@ function(ecm_add_test)
63 +@@ -84,6 +84,10 @@ function(ecm_add_test)
64 message(FATAL_ERROR "ecm_add_test() called with multiple source files but without setting \"TEST_NAME\"")
65 endif()
66
67 -+ if(NOT TARGET Qt5::Test)
68 ++ if(NOT TARGET Qt::Test)
69 + return()
70 + endif()
71 +
72 set(_testname ${ARG_NAME_PREFIX}${_targetname})
73 set(gui_args)
74 if(ARG_GUI)
75 -@@ -122,6 +126,11 @@ function(ecm_add_tests)
76 +@@ -127,6 +131,11 @@ function(ecm_add_tests)
77 endif()
78 set(test_names)
79 set(target_names)
80 +
81 -+ if(NOT TARGET Qt5::Test)
82 ++ if(NOT TARGET Qt::Test)
83 + return()
84 + endif()
85 +
86 @@ -37,18 +38,20 @@ index 4bc7fb8..12825aa 100644
87 ecm_add_test(${_test_source}
88 NAME_PREFIX ${ARG_NAME_PREFIX}
89 diff --git a/tests/ECMAddTests/CMakeLists.txt b/tests/ECMAddTests/CMakeLists.txt
90 -index e77b33f..4e191fe 100644
91 +index aa7e73a1..5fbc1cc7 100644
92 --- a/tests/ECMAddTests/CMakeLists.txt
93 +++ b/tests/ECMAddTests/CMakeLists.txt
94 -@@ -1,3 +1,8 @@
95 -+if(NOT TARGET Qt5::Test)
96 -+ message(STATUS "WARNING: skipping tests that require Qt5::Test")
97 -+ return()
98 -+endif()
99 +@@ -2,6 +2,10 @@ if (QT_MAJOR_VERSION EQUAL "6")
100 + set(QT_VERSION_OPT "-DBUILD_WITH_QT6=ON")
101 + else()
102 + set(QT_VERSION_OPT "-DBUILD_WITH_QT6=OFF")
103 +
104 ++if(NOT TARGET Qt::Test)
105 ++ message(STATUS "WARNING: skipping tests that require Qt::Test")
106 ++ return()
107 + endif()
108 +
109 macro(add_check NAME)
110 - string(REPLACE "." "/" dir "${NAME}")
111 - string(REGEX REPLACE "[^.]*\\." "" proj "${NAME}")
112 --
113 -2.27.0
114 +2.35.1