From: "Benda XU" <heroxbd@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/rocSPARSE/
Date: Mon, 20 Jun 2022 11:52:22 +0000 (UTC) [thread overview]
Message-ID: <1655725894.de8cf511f58071e19f69e47947e5946ad864943f.heroxbd@gentoo> (raw)
commit: de8cf511f58071e19f69e47947e5946ad864943f
Author: Yiyang Wu <xgreenlandforwyy <AT> gmail <DOT> com>
AuthorDate: Wed May 4 07:53:54 2022 +0000
Commit: Benda XU <heroxbd <AT> gentoo <DOT> org>
CommitDate: Mon Jun 20 11:51:34 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=de8cf511
sci-libs/rocSPARSE: fix data prepare under EAPI8
In EAPI=7 BUILD_DIR is set throghout src_prepare, while in
EAPI=8 BUILD_DIR is set after cmake_src_prepare. So run
cmake_src_prepare before converting test data.
Also, add LD_LIBRARY_PATH when testing
Closes: https://github.com/gentoo/gentoo/pull/25313
Package-Manager: Portage-3.0.30, 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-5.0.2.ebuild | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/sci-libs/rocSPARSE/rocSPARSE-5.0.2.ebuild b/sci-libs/rocSPARSE/rocSPARSE-5.0.2.ebuild
index b97857618b6c..3a6f6c8063ad 100644
--- a/sci-libs/rocSPARSE/rocSPARSE-5.0.2.ebuild
+++ b/sci-libs/rocSPARSE/rocSPARSE-5.0.2.ebuild
@@ -81,6 +81,8 @@ src_prepare() {
# use python interpreter specifyied by python-any-r1
sed -e "/COMMAND ..\/common\/rocsparse_gentest.py/s,COMMAND ,COMMAND ${EPYTHON} ," -i clients/tests/CMakeLists.txt || die
+ cmake_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
@@ -97,8 +99,6 @@ src_prepare() {
eend $?
done
fi
-
- cmake_src_prepare
}
src_configure() {
@@ -125,7 +125,7 @@ src_test() {
addwrite /dev/kfd
addwrite /dev/dri/
cd "${BUILD_DIR}/clients/staging" || die
- ./rocsparse-test || die
+ LD_LIBRARY_PATH="${BUILD_DIR}/library" ./rocsparse-test || die
}
src_install() {
next reply other threads:[~2022-06-20 11:52 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-20 11:52 Benda XU [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-03-04 10:55 [gentoo-commits] repo/gentoo:master commit in: sci-libs/rocSPARSE/ Patrick Lauer
2025-02-08 10:07 Patrick Lauer
2025-01-05 21:49 Sam James
2024-09-09 18:20 Sam James
2024-08-25 15:41 Sam James
2024-03-08 19:22 Sam James
2023-11-27 14:35 Benda XU
2023-07-05 18:15 Craig Andrews
2023-03-02 16:30 罗百科
2023-02-01 9:53 Andreas Sturmlechner
2022-12-04 14:50 Pacho Ramos
2022-10-15 15:01 Sam James
2022-05-15 1:00 Sam James
2022-03-20 8:57 Benda XU
2021-11-06 13:29 Benda XU
2021-10-10 14:53 Benda XU
2021-01-24 7:49 Benda XU
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1655725894.de8cf511f58071e19f69e47947e5946ad864943f.heroxbd@gentoo \
--to=heroxbd@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox