commit:     18027275e55fc2a39d3ca393dff7b3fe195a98df
Author:     YiyangWu <xgreenlandforwyy <AT> gmail <DOT> com>
AuthorDate: Sat Nov  6 11:01:36 2021 +0000
Commit:     Benda XU <heroxbd <AT> gentoo <DOT> org>
CommitDate: Sat Nov  6 13:29:09 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=18027275

sci-libs/rocSPARSE: fix matrices dir for tests

Fix the following issue: Tests requiring data were skipped because of wrong 
directory.

Bug: https://github.com/ROCmSoftwarePlatform/rocSPARSE/issues/227
Closes: https://github.com/gentoo/gentoo/pull/22806
Package-Manager: Portage-3.0.22, Repoman-3.0.3
Signed-off-by: Yiyang Wu <xgreenlandforwyy <AT> gmail.com>
Signed-off-by: Benda Xu <heroxbd <AT> gentoo.org>

 sci-libs/rocSPARSE/rocSPARSE-4.3.0-r1.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sci-libs/rocSPARSE/rocSPARSE-4.3.0-r1.ebuild 
b/sci-libs/rocSPARSE/rocSPARSE-4.3.0-r1.ebuild
index a196780e222..7c554093db9 100644
--- a/sci-libs/rocSPARSE/rocSPARSE-4.3.0-r1.ebuild
+++ b/sci-libs/rocSPARSE/rocSPARSE-4.3.0-r1.ebuild
@@ -82,14 +82,14 @@ src_prepare() {
        # Test need download data from https://sparse.tamu.edu (or other mirror 
site), check MD5, unpack and convert them into csr format
        # This process is handled default by ${S}/cmake/ClientMatrices.cmake, 
but should be the responsibility of portage.
        if use test; then
-               mkdir -p "${BUILD_DIR}"/matrices
+               mkdir -p "${BUILD_DIR}"/clients/matrices
                # compile and use the mtx2csr converter. Do not use any 
optimization flags, because it causes error!
                ebegin "$(tc-getCXX) deps/convert.cpp -o deps/convert"
                $(tc-getCXX) deps/convert.cpp -o deps/convert
                eend $?
                find "${WORKDIR}" -maxdepth 2 -regextype egrep -regex 
".*/(.*)/\1\.mtx" -print0 |
                        while IFS= read -r -d '' mtxfile; do
-                               destination=${BUILD_DIR}/matrices/$(basename -s 
'.mtx' ${mtxfile}).csr
+                               
destination=${BUILD_DIR}/clients/matrices/$(basename -s '.mtx' ${mtxfile}).csr
                                ebegin "Converting ${mtxfile} to ${destination}"
                                deps/convert ${mtxfile} ${destination}
                                eend $?

Reply via email to