commit: 3452a5d07e2f52b6d4a6a17316edde99ccc132cc Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Fri Mar 15 04:20:02 2024 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Fri Mar 15 04:20:42 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3452a5d0
sci-libs/lapack: backport test summary fix Closes: https://bugs.gentoo.org/924929 Signed-off-by: Sam James <sam <AT> gentoo.org> .../lapack/files/lapack-3.12.0-test-summary.patch | 21 +++++++++++++++++++++ sci-libs/lapack/lapack-3.12.0-r1.ebuild | 1 + 2 files changed, 22 insertions(+) diff --git a/sci-libs/lapack/files/lapack-3.12.0-test-summary.patch b/sci-libs/lapack/files/lapack-3.12.0-test-summary.patch new file mode 100644 index 000000000000..1d2303cdb018 --- /dev/null +++ b/sci-libs/lapack/files/lapack-3.12.0-test-summary.patch @@ -0,0 +1,21 @@ +https://bugs.gentoo.org/924929 +https://github.com/Reference-LAPACK/lapack/commit/a4298d5ff68047acfa44d6394ceb3a688a3b2534 + +From 5b0687f429cf420629c0eeafba6a74a2564d4131 Mon Sep 17 00:00:00 2001 +From: Simon Maertens <[email protected]> +Date: Fri, 1 Dec 2023 14:05:54 +0000 +Subject: [PATCH] Fixed search phrase for determining the amount of successful + tests + +--- a/lapack_testing.py ++++ b/lapack_testing.py +@@ -136,7 +136,7 @@ def run_summary_test( f, cmdline, short_summary): + for line in pipe.readlines(): + f.write(str(line)) + words_in_line=line.split() +- if (line.find("run")!=-1): ++ if (line.find("run)")!=-1): + # print line + whereisrun=words_in_line.index("run)") + nb_test_run+=int(words_in_line[whereisrun-2]) + diff --git a/sci-libs/lapack/lapack-3.12.0-r1.ebuild b/sci-libs/lapack/lapack-3.12.0-r1.ebuild index b1b9e9824637..743021f3426f 100644 --- a/sci-libs/lapack/lapack-3.12.0-r1.ebuild +++ b/sci-libs/lapack/lapack-3.12.0-r1.ebuild @@ -39,6 +39,7 @@ PATCHES=( # https://github.com/Reference-LAPACK/lapack/issues/990#issuecomment-1973258284 # https://bugs.gentoo.org/878891 "${FILESDIR}"/lapack-3.12.0-correct-64bit-interface.patch + "${FILESDIR}"/lapack-3.12.0-test-summary.patch ) pkg_setup() {
