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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 6DB6615808B for ; Mon, 28 Feb 2022 19:44:00 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A8915E0828; Mon, 28 Feb 2022 19:43:59 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 9103AE0828 for ; Mon, 28 Feb 2022 19:43:59 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 90ECA3434B1 for ; Mon, 28 Feb 2022 19:43:58 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D0AF326D for ; Mon, 28 Feb 2022 19:43:56 +0000 (UTC) From: "Matthew Smith" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Matthew Smith" Message-ID: <1646077369.a282b3d47a732dbaf680c3f2d71255f9abbffa26.matthew@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/cura/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-gfx/cura/cura-4.12.1.ebuild X-VCS-Directories: media-gfx/cura/ X-VCS-Committer: matthew X-VCS-Committer-Name: Matthew Smith X-VCS-Revision: a282b3d47a732dbaf680c3f2d71255f9abbffa26 X-VCS-Branch: master Date: Mon, 28 Feb 2022 19: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: a6f43b43-a6ee-4069-9849-861f30f3e04f X-Archives-Hash: b7827e1fc1b5fd49edfcb034a6017b88 commit: a282b3d47a732dbaf680c3f2d71255f9abbffa26 Author: Matthew Smith gentoo org> AuthorDate: Mon Feb 28 18:51:15 2022 +0000 Commit: Matthew Smith gentoo org> CommitDate: Mon Feb 28 19:42:49 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a282b3d4 media-gfx/cura: fix failing tests Add a dependency on pytest and remove a test that either does not like the sandbox or does not like its home directory being moved. Closes: https://bugs.gentoo.org/693172 Signed-off-by: Matthew Smith gentoo.org> media-gfx/cura/cura-4.12.1.ebuild | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/media-gfx/cura/cura-4.12.1.ebuild b/media-gfx/cura/cura-4.12.1.ebuild index f38aa921e53b..448cf753c799 100644 --- a/media-gfx/cura/cura-4.12.1.ebuild +++ b/media-gfx/cura/cura-4.12.1.ebuild @@ -18,10 +18,17 @@ SRC_URI="https://github.com/Ultimaker/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar. LICENSE="LGPL-3" SLOT="0" KEYWORDS="~amd64 ~arm64 ~x86" -IUSE="debug +usb zeroconf" +IUSE="debug test +usb zeroconf" REQUIRED_USE="${PYTHON_REQUIRED_USE}" -BDEPEND="sys-devel/gettext" +RESTRICT="!test? ( test )" + +BDEPEND="${PYTHON_DEPS} + sys-devel/gettext + $(python_gen_cond_dep ' + test? ( dev-python/pytest[${PYTHON_USEDEP}] ) + ') +" RDEPEND="${PYTHON_DEPS} ~dev-libs/libarcus-${PV}:=[python,${PYTHON_SINGLE_USEDEP}] ~dev-libs/libcharon-${PV}[${PYTHON_SINGLE_USEDEP}] @@ -57,6 +64,9 @@ S="${WORKDIR}/${MY_PN}-${PV}" src_prepare() { sed -i -e "s:lib\${LIB_SUFFIX}/python\${Python3_VERSION_MAJOR}.\${Python3_VERSION_MINOR}/site-packages:$(python_get_sitedir):g" CMakeLists.txt || die + # Remove failing test. Bug #693172. + rm -r plugins/VersionUpgrade/VersionUpgrade44to45/tests || die + cmake_src_prepare }