commit: 045bdb6ba95a2b5dc92b06c1074fd3bd462b2a7f Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> AuthorDate: Fri Dec 19 22:37:41 2025 +0000 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> CommitDate: Fri Dec 19 22:37:41 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=045bdb6b
sci-libs/lemon: Replace odd seds with a patch Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> .../files/lemon-1.3.1-disable-broken-tests.patch | 54 ++++++++++++++++++++++ sci-libs/lemon/lemon-1.3.1-r2.ebuild | 17 +------ 2 files changed, 55 insertions(+), 16 deletions(-) diff --git a/sci-libs/lemon/files/lemon-1.3.1-disable-broken-tests.patch b/sci-libs/lemon/files/lemon-1.3.1-disable-broken-tests.patch new file mode 100644 index 000000000000..18597bb5473b --- /dev/null +++ b/sci-libs/lemon/files/lemon-1.3.1-disable-broken-tests.patch @@ -0,0 +1,54 @@ +From 241c0472607f691d6ffca254eca96a6ea794911d Mon Sep 17 00:00:00 2001 +From: Andreas Sturmlechner <[email protected]> +Date: Fri, 19 Dec 2025 23:35:42 +0100 +Subject: [PATCH] Disable presumably broken tests + +Signed-off-by: Andreas Sturmlechner <[email protected]> +--- + test/CMakeLists.txt | 8 -------- + 1 file changed, 8 deletions(-) + +diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt +index 96fc5dd..0f3f1cb 100644 +--- a/test/CMakeLists.txt ++++ b/test/CMakeLists.txt +@@ -31,7 +31,6 @@ SET(TESTS + gomory_hu_test + graph_copy_test + graph_test +- graph_utils_test + hao_orlin_test + heap_test + kruskal_test +@@ -40,8 +39,6 @@ SET(TESTS + maps_test + matching_test + max_cardinality_search_test +- max_clique_test +- max_flow_test + min_cost_arborescence_test + min_cost_flow_test + min_mean_cycle_test +@@ -49,10 +46,7 @@ SET(TESTS + path_test + planarity_test + radix_sort_test +- random_test + suurballe_test +- time_measure_test +- tsp_test + unionfind_test + ) + +@@ -79,8 +73,6 @@ IF(LEMON_HAVE_LP) + ENDIF() + + TARGET_LINK_LIBRARIES(lp_test ${LP_TEST_LIBS}) +- ADD_TEST(lp_test lp_test) +- ADD_DEPENDENCIES(check lp_test) + + IF(WIN32 AND LEMON_HAVE_GLPK) + GET_TARGET_PROPERTY(TARGET_LOC lp_test LOCATION) +-- +2.52.0 + diff --git a/sci-libs/lemon/lemon-1.3.1-r2.ebuild b/sci-libs/lemon/lemon-1.3.1-r2.ebuild index 9f63bbc23234..d66b11a7bda8 100644 --- a/sci-libs/lemon/lemon-1.3.1-r2.ebuild +++ b/sci-libs/lemon/lemon-1.3.1-r2.ebuild @@ -39,25 +39,10 @@ PATCHES=( "${FILESDIR}"/${P}-multilib.patch "${FILESDIR}"/${PN}-1.3-as-needed.patch "${FILESDIR}"/${P}-cmake4.patch # bug 967729 + "${FILESDIR}"/${P}-disable-broken-tests.patch ) src_prepare() { - local t - for t in \ - max_clique \ - max_flow \ - graph_utils \ - random \ - time_measure \ - tsp; do - sed -i -e "/${t}_test/d" test/CMakeLists.txt || die - done - - sed -i \ - -e '/ADD_TEST(lp_test lp_test)/d' \ - -e '/ADD_DEPENDENCIES(check lp_test)/d' \ - test/CMakeLists.txt || die - cmake_comment_add_subdirectory demo use doc || cmake_comment_add_subdirectory doc
