sci-electronics/slang: add 11.0-r1, drop 11.0

- Upstream gates catch2_min_version at 3.14 but Gentoo ships only 3.13.
- find_package fails, FetchContent_MakeAvailable git-clones Catch2 at
  build time and dies in network-sandbox (CF0014).
- Patch the floor to 3.13 so find_package matches dev-cpp/catch.

Closes: https://bugs.gentoo.org/975580
Signed-off-by: Huang Rui <vowstar@gmail.com>
This commit is contained in:
Huang Rui
2026-05-20 20:15:28 +08:00
parent add9224277
commit 77875fd7ca
2 changed files with 36 additions and 2 deletions

View File

@@ -0,0 +1,30 @@
From: Huang Rui <vowstar@gmail.com>
Date: Wed, 20 May 2026 20:10:00 +0800
Subject: [PATCH] external: lower catch2 min version to 3.13
Gentoo ships up to dev-cpp/catch-3.13. With the upstream cap at 3.14
find_package fails, FetchContent_MakeAvailable then falls through to
git clone which is blocked by network-sandbox. Catch2's 3.13 to 3.14
diff is API-compatible for slang's unit tests, so lowering the floor
to 3.13 lets system Catch2 satisfy the FIND_PACKAGE_ARGS path and
avoids the network access entirely.
Bug: https://bugs.gentoo.org/975580
Upstream-Status: Not submitted (distro version-floor concern)
Signed-off-by: Huang Rui <vowstar@gmail.com>
---
external/CMakeLists.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/external/CMakeLists.txt b/external/CMakeLists.txt
--- a/external/CMakeLists.txt
+++ b/external/CMakeLists.txt
@@ -7,7 +7,7 @@
set(fmt_min_version "12.1")
set(mimalloc_min_version "3.3")
set(cpptrace_min_version "1.0")
-set(catch2_min_version "3.14")
+set(catch2_min_version "3.13")
# --- fmt lib ---
set(find_pkg_args "")

View File

@@ -37,11 +37,15 @@ RDEPEND="
DEPEND="${RDEPEND}"
BDEPEND="
>=dev-libs/libfmt-12.1
test? ( >=dev-cpp/catch-3.11 )
test? ( >=dev-cpp/catch-3.13:0 )
"
PATCHES=(
# bug 975580
"${FILESDIR}/${PN}-11.0-catch2-3.13.patch"
)
src_prepare() {
default
cmake_src_prepare
}