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 8B19F139360 for ; Tue, 3 Aug 2021 14:15:13 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E10DEE09CB; Tue, 3 Aug 2021 14:15:12 +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 C7D69E09CB for ; Tue, 3 Aug 2021 14:15:12 +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 C4108343769 for ; Tue, 3 Aug 2021 14:15:11 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 1E2EA7A7 for ; Tue, 3 Aug 2021 14:15:10 +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: <1628000093.9302c07d151576ce16e25ce1956c706f9dc07134.asturm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-p2p/ktorrent/files/, net-p2p/ktorrent/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-p2p/ktorrent/files/ktorrent-21.04.3-fix-tests.patch net-p2p/ktorrent/ktorrent-21.04.3.ebuild X-VCS-Directories: net-p2p/ktorrent/ net-p2p/ktorrent/files/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: 9302c07d151576ce16e25ce1956c706f9dc07134 X-VCS-Branch: master Date: Tue, 3 Aug 2021 14:15:10 +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: 00d88f56-7f6b-4df7-af75-b1c7eb7ae066 X-Archives-Hash: 9edfdf8c12832d45320f2d28d0141566 commit: 9302c07d151576ce16e25ce1956c706f9dc07134 Author: Andreas Sturmlechner gentoo org> AuthorDate: Tue Aug 3 14:14:14 2021 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Tue Aug 3 14:14:53 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9302c07d net-p2p/ktorrent: Fix tests Upstream commit dfc063a4d1f174cd5f84b82154a58b86da334d35 Thanks-to: Frank Krömmelbein gmx.de> Bug: https://bugs.gentoo.org/805065 Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Andreas Sturmlechner gentoo.org> .../files/ktorrent-21.04.3-fix-tests.patch | 38 ++++++++++++++++++++++ net-p2p/ktorrent/ktorrent-21.04.3.ebuild | 4 ++- 2 files changed, 41 insertions(+), 1 deletion(-) diff --git a/net-p2p/ktorrent/files/ktorrent-21.04.3-fix-tests.patch b/net-p2p/ktorrent/files/ktorrent-21.04.3-fix-tests.patch new file mode 100644 index 00000000000..a6fe5f7be70 --- /dev/null +++ b/net-p2p/ktorrent/files/ktorrent-21.04.3-fix-tests.patch @@ -0,0 +1,38 @@ +From dfc063a4d1f174cd5f84b82154a58b86da334d35 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?=C3=96mer=20Fad=C4=B1l=20Usta?= +Date: Tue, 18 May 2021 15:15:26 +0000 +Subject: [PATCH] Fix tests with new ecm sytle + +--- + CMakeLists.txt | 2 ++ + plugins/ipfilter/tests/CMakeLists.txt | 7 ++----- + 2 files changed, 4 insertions(+), 5 deletions(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index e0f67a93..edc64983 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -17,6 +17,8 @@ set (KF5_MIN_VERSION "5.82") + set (LIBKTORRENT_MIN_VERSION "20.11.70") + set (Boost_MIN_VERSION "1.71.0") + ++cmake_policy(SET CMP0115 OLD) ++ + find_package(ECM ${KF5_MIN_VERSION} REQUIRED NO_MODULE) + set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${CMAKE_MODULE_PATH}) + +diff --git a/plugins/ipfilter/tests/CMakeLists.txt b/plugins/ipfilter/tests/CMakeLists.txt +index ec839aac..6c34b2d0 100644 +--- a/plugins/ipfilter/tests/CMakeLists.txt ++++ b/plugins/ipfilter/tests/CMakeLists.txt +@@ -1,5 +1,2 @@ +-set(ipblocklisttest_SRCS ipblocklisttest.cpp ../ipblocklist.cpp) +-add_executable(ipblocklisttest ${ipblocklisttest_SRCS}) +-add_test(ipblocklisttest ipblocklisttest) +-ecm_mark_as_test(ipblocklisttest) +-target_link_libraries(ipblocklisttest Qt5::Core Qt5::Network Qt5::Test ktcore) ++include(ECMAddTests) ++ecm_add_test(ipblocklisttest.cpp ../ipblocklist.cpp TEST_NAME ipblocklisttest LINK_LIBRARIES ktcore Qt5::Core Qt5::Network KF5::Torrent Qt5::Test) +-- +GitLab + diff --git a/net-p2p/ktorrent/ktorrent-21.04.3.ebuild b/net-p2p/ktorrent/ktorrent-21.04.3.ebuild index 2728b9034f1..d43340869df 100644 --- a/net-p2p/ktorrent/ktorrent-21.04.3.ebuild +++ b/net-p2p/ktorrent/ktorrent-21.04.3.ebuild @@ -21,7 +21,6 @@ KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" IUSE="+bwscheduler +downloadorder +infowidget +ipfilter +kross +logviewer +magnetgenerator +mediaplayer rss +scanfolder +shutdown +stats +upnp +webengine +zeroconf" -BDEPEND="sys-devel/gettext" COMMON_DEPEND=" >=dev-qt/qtdbus-${QTMIN}:5 >=dev-qt/qtgui-${QTMIN}:5 @@ -76,6 +75,9 @@ RDEPEND="${COMMON_DEPEND} >=kde-frameworks/ktextwidgets-${KFMIN}:5 ) " +BDEPEND="sys-devel/gettext" + +PATCHES=( "${FILESDIR}/${P}-fix-tests.patch" ) src_configure() { local mycmakeargs=(