From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id BD7C7158091 for ; Mon, 20 Jun 2022 11:52:25 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 046E5E0B1D; Mon, 20 Jun 2022 11:52:25 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E1023E0B1D for ; Mon, 20 Jun 2022 11:52:24 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 29D953412F2 for ; Mon, 20 Jun 2022 11:52:24 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 65E2034C for ; Mon, 20 Jun 2022 11:52:22 +0000 (UTC) From: "Benda XU" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Benda XU" Message-ID: <1655725894.de8cf511f58071e19f69e47947e5946ad864943f.heroxbd@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/rocSPARSE/ X-VCS-Repository: repo/gentoo X-VCS-Files: sci-libs/rocSPARSE/rocSPARSE-5.0.2.ebuild X-VCS-Directories: sci-libs/rocSPARSE/ X-VCS-Committer: heroxbd X-VCS-Committer-Name: Benda XU X-VCS-Revision: de8cf511f58071e19f69e47947e5946ad864943f X-VCS-Branch: master Date: Mon, 20 Jun 2022 11:52:22 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 23e5f658-c7ab-44e2-a6d5-e5604db12ce2 X-Archives-Hash: 5a6c30bdb62b1556b71fe09866e7aa21 commit: de8cf511f58071e19f69e47947e5946ad864943f Author: Yiyang Wu gmail com> AuthorDate: Wed May 4 07:53:54 2022 +0000 Commit: Benda XU gentoo 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 gmail.com> Signed-off-by: Benda Xu 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() {