From 77875fd7ca23013ab7607e2899489bc00336cc71 Mon Sep 17 00:00:00 2001 From: Huang Rui Date: Wed, 20 May 2026 20:15:28 +0800 Subject: [PATCH] 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 --- .../slang/files/slang-11.0-catch2-3.13.patch | 30 +++++++++++++++++++ ...slang-11.0.ebuild => slang-11.0-r1.ebuild} | 8 +++-- 2 files changed, 36 insertions(+), 2 deletions(-) create mode 100644 sci-electronics/slang/files/slang-11.0-catch2-3.13.patch rename sci-electronics/slang/{slang-11.0.ebuild => slang-11.0-r1.ebuild} (93%) diff --git a/sci-electronics/slang/files/slang-11.0-catch2-3.13.patch b/sci-electronics/slang/files/slang-11.0-catch2-3.13.patch new file mode 100644 index 0000000000..81db44059e --- /dev/null +++ b/sci-electronics/slang/files/slang-11.0-catch2-3.13.patch @@ -0,0 +1,30 @@ +From: Huang Rui +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 +--- + 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 "") diff --git a/sci-electronics/slang/slang-11.0.ebuild b/sci-electronics/slang/slang-11.0-r1.ebuild similarity index 93% rename from sci-electronics/slang/slang-11.0.ebuild rename to sci-electronics/slang/slang-11.0-r1.ebuild index 197846ce00..3c4bebe1d1 100644 --- a/sci-electronics/slang/slang-11.0.ebuild +++ b/sci-electronics/slang/slang-11.0-r1.ebuild @@ -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 }