From 87f721c4562c772b556a2ec13c3da4a6da5a6b5a Mon Sep 17 00:00:00 2001 From: Sam James Date: Sun, 14 Jun 2026 06:09:41 +0100 Subject: [PATCH] dev-lang/swig: restrict tests again They take quite a long time but they're also very brittle and automagically run for different languages based on what is installed. I did attempt improvements in ccf2eb2b7d4a99074731f23ebf69c88df75aee81 but it didn't prove enough. We didn't run tests at all until 1efa03e16371bee79207072b135485ae7e8cdad4 anyway. Bug: https://bugs.gentoo.org/972807 Closes: https://bugs.gentoo.org/880337 Closes: https://bugs.gentoo.org/892643 Closes: https://bugs.gentoo.org/899652 Closes: https://bugs.gentoo.org/911159 Closes: https://bugs.gentoo.org/921504 Closes: https://bugs.gentoo.org/924635 Closes: https://bugs.gentoo.org/932313 Closes: https://bugs.gentoo.org/935319 Closes: https://bugs.gentoo.org/936806 Closes: https://bugs.gentoo.org/948902 Closes: https://bugs.gentoo.org/951364 Closes: https://bugs.gentoo.org/956666 Signed-off-by: Sam James --- dev-lang/swig/swig-4.1.1-r1.ebuild | 5 +++-- dev-lang/swig/swig-4.2.1.ebuild | 5 +++-- dev-lang/swig/swig-4.3.1.ebuild | 3 ++- dev-lang/swig/swig-4.4.1.ebuild | 3 ++- 4 files changed, 10 insertions(+), 6 deletions(-) diff --git a/dev-lang/swig/swig-4.1.1-r1.ebuild b/dev-lang/swig/swig-4.1.1-r1.ebuild index 6005fe897744e..ef3654bdc980b 100644 --- a/dev-lang/swig/swig-4.1.1-r1.ebuild +++ b/dev-lang/swig/swig-4.1.1-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2025 Gentoo Authors +# Copyright 1999-2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -13,7 +13,8 @@ LICENSE="GPL-3+ BSD BSD-2" SLOT="0" KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc x86 ~arm64-macos ~x64-macos ~x64-solaris" IUSE="ccache doc pcre test" -RESTRICT="!test? ( test )" +# tests are automagic for many languages and quite brittle +RESTRICT="!test? ( test ) test" RDEPEND=" pcre? ( dev-libs/libpcre2 ) diff --git a/dev-lang/swig/swig-4.2.1.ebuild b/dev-lang/swig/swig-4.2.1.ebuild index 63d49485b5cc1..760c95ae2e668 100644 --- a/dev-lang/swig/swig-4.2.1.ebuild +++ b/dev-lang/swig/swig-4.2.1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2025 Gentoo Authors +# Copyright 1999-2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -13,7 +13,8 @@ LICENSE="GPL-3+ BSD BSD-2" SLOT="0" KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc x86 ~arm64-macos ~x64-macos ~x64-solaris" IUSE="ccache doc pcre test" -RESTRICT="!test? ( test )" +# tests are automagic for many languages and quite brittle +RESTRICT="!test? ( test ) test" RDEPEND=" pcre? ( dev-libs/libpcre2 ) diff --git a/dev-lang/swig/swig-4.3.1.ebuild b/dev-lang/swig/swig-4.3.1.ebuild index a5ad891992f5e..3ed12cb19f205 100644 --- a/dev-lang/swig/swig-4.3.1.ebuild +++ b/dev-lang/swig/swig-4.3.1.ebuild @@ -13,7 +13,8 @@ LICENSE="GPL-3+ BSD BSD-2" SLOT="0" KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc ~x86 ~arm64-macos ~x64-macos ~x64-solaris" IUSE="ccache doc pcre test" -RESTRICT="!test? ( test )" +# tests are automagic for many languages and quite brittle +RESTRICT="!test? ( test ) test" RDEPEND=" pcre? ( dev-libs/libpcre2 ) diff --git a/dev-lang/swig/swig-4.4.1.ebuild b/dev-lang/swig/swig-4.4.1.ebuild index 74e6dc6346ed0..4f7a492803874 100644 --- a/dev-lang/swig/swig-4.4.1.ebuild +++ b/dev-lang/swig/swig-4.4.1.ebuild @@ -13,7 +13,8 @@ LICENSE="GPL-3+ BSD BSD-2" SLOT="0" KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~arm64-macos ~x64-macos ~x64-solaris" IUSE="ccache doc pcre test" -RESTRICT="!test? ( test )" +# tests are automagic for many languages and quite brittle +RESTRICT="!test? ( test ) test" RDEPEND=" pcre? ( dev-libs/libpcre2 )