commit:     4d2407de9d2fb7be9ff19d66343c3ef700801dab
Author:     Sv. Lockal <lockalsash <AT> gmail <DOT> com>
AuthorDate: Wed Oct 29 16:10:05 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Oct 29 19:23:25 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4d2407de

sci-libs/rocSOLVER: switch to sci-libs/flexiblas

This solution should be pretty decent given the fact that blas/lapack is
used only for validation here (not in performance tests).

Also fix various deps issues discovered on clean rebuild.

Closes: https://bugs.gentoo.org/965168
Signed-off-by: Sv. Lockal <lockalsash <AT> gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/44373
Signed-off-by: Sam James <sam <AT> gentoo.org>

 ...LVER-7.0.2.ebuild => rocSOLVER-7.0.2-r1.ebuild} | 25 ++++++++++++++++------
 1 file changed, 19 insertions(+), 6 deletions(-)

diff --git a/sci-libs/rocSOLVER/rocSOLVER-7.0.2.ebuild 
b/sci-libs/rocSOLVER/rocSOLVER-7.0.2-r1.ebuild
similarity index 83%
rename from sci-libs/rocSOLVER/rocSOLVER-7.0.2.ebuild
rename to sci-libs/rocSOLVER/rocSOLVER-7.0.2-r1.ebuild
index 1a84090e9976..04812f5361ed 100644
--- a/sci-libs/rocSOLVER/rocSOLVER-7.0.2.ebuild
+++ b/sci-libs/rocSOLVER/rocSOLVER-7.0.2-r1.ebuild
@@ -19,18 +19,23 @@ KEYWORDS="~amd64"
 IUSE="benchmark sparse test"
 REQUIRED_USE="${ROCM_REQUIRED_USE}"
 
-RDEPEND="dev-util/hip:${SLOT}
+RDEPEND="
+       dev-libs/libfmt:=
+       dev-util/hip:${SLOT}
        sci-libs/rocBLAS:${SLOT}
-       benchmark? ( virtual/blas )
+       benchmark? ( sci-libs/flexiblas )
        sparse? ( sci-libs/rocSPARSE:${SLOT} )
 "
 DEPEND="
        ${RDEPEND}
-       dev-libs/libfmt
+       sci-libs/rocPRIM:${SLOT}
+"
+BDEPEND="
+       test? (
+               dev-cpp/gtest
+               sci-libs/flexiblas
+       )
 "
-BDEPEND="test? ( dev-cpp/gtest
-       >=dev-build/cmake-3.22
-       virtual/blas )"
 
 RESTRICT="!test? ( test )"
 
@@ -56,6 +61,14 @@ src_configure() {
                -DBUILD_WITH_SPARSE=$(usex sparse ON OFF)
        )
 
+       if use benchmark || use test; then
+               mycmakeargs+=(
+                       -DROCSOLVER_FIND_PACKAGE_LAPACK_CONFIG=OFF
+                       -DBLA_PKGCONFIG_BLAS=ON
+                       -DBLA_VENDOR=FlexiBLAS
+               )
+       fi
+
        cmake_src_configure
 }
 

Reply via email to