public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Marek Szuba" <marecki@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/opencl-icd-loader/
Date: Wed,  7 Sep 2022 15:42:48 +0000 (UTC)	[thread overview]
Message-ID: <1662565365.f8a008ea9f06f55adac6692c648f2de60f386a9c.marecki@gentoo> (raw)

commit:     f8a008ea9f06f55adac6692c648f2de60f386a9c
Author:     Marek Szuba <marecki <AT> gentoo <DOT> org>
AuthorDate: Wed Sep  7 15:38:55 2022 +0000
Commit:     Marek Szuba <marecki <AT> gentoo <DOT> org>
CommitDate: Wed Sep  7 15:42:45 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f8a008ea

dev-libs/opencl-icd-loader: various tweaks

1. Switch from the legacy approach of locating Khronos OpenCL headers
   to CMake package-config files, in line with the 2022.05.18 version
   of dev-libs/clhpp
2. No need to have dev-util/opencl-headers in RDEPEND;
3. In src_test(), try to make sure the loader loads ONLY the stub driver.
   This may or may not something to do with Bug #836476.

Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>

 ...2.05.18.ebuild => opencl-icd-loader-2022.05.18-r1.ebuild} | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/dev-libs/opencl-icd-loader/opencl-icd-loader-2022.05.18.ebuild b/dev-libs/opencl-icd-loader/opencl-icd-loader-2022.05.18-r1.ebuild
similarity index 65%
rename from dev-libs/opencl-icd-loader/opencl-icd-loader-2022.05.18.ebuild
rename to dev-libs/opencl-icd-loader/opencl-icd-loader-2022.05.18-r1.ebuild
index 0799e46d6593..082f069a5031 100644
--- a/dev-libs/opencl-icd-loader/opencl-icd-loader-2022.05.18.ebuild
+++ b/dev-libs/opencl-icd-loader/opencl-icd-loader-2022.05.18-r1.ebuild
@@ -19,21 +19,23 @@ IUSE="test"
 
 RESTRICT="!test? ( test )"
 
-DEPEND=">=dev-util/opencl-headers-${PV}
-	!dev-libs/ocl-icd"
-RDEPEND="${DEPEND}"
+RDEPEND="!dev-libs/ocl-icd"
+# Need an opencl-headers ebuild which installs cmake package configs
+# TODO: revert to the usual >=${PV} come next upstream version
+DEPEND="${RDEPEND}
+	>=dev-util/opencl-headers-2022.05.18-r1"
 
 S="${WORKDIR}/${MY_P}"
 
 multilib_src_configure() {
 	local mycmakeargs=(
 		-DBUILD_TESTING=$(usex test)
-		-DOPENCL_ICD_LOADER_HEADERS_DIR="${EPREFIX}/usr/include"
 	)
 	cmake_src_configure
 }
 
 multilib_src_test() {
-	OCL_ICD_FILENAMES="${BUILD_DIR}/test/driver_stub/libOpenCLDriverStub.so" \
+	local -x OCL_ICD_FILENAMES="${BUILD_DIR}/test/driver_stub/libOpenCLDriverStub.so"
+	local -x OCL_ICD_VENDORS="/dev/null"
 	cmake_src_test
 }


             reply	other threads:[~2022-09-07 15:42 UTC|newest]

Thread overview: 54+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-07 15:42 Marek Szuba [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-06-12 13:52 [gentoo-commits] repo/gentoo:master commit in: dev-libs/opencl-icd-loader/ Marek Szuba
2024-05-23 13:34 WANG Xuerui
2024-04-24 14:41 Sam James
2024-04-24 14:41 Sam James
2024-04-24 14:23 Sam James
2023-12-24 11:45 Marek Szuba
2023-08-16 12:01 Marek Szuba
2023-08-14 10:16 Marek Szuba
2023-07-15  8:19 Arthur Zamarin
2023-07-15  8:19 Arthur Zamarin
2023-07-15  3:10 Sam James
2023-04-21  8:56 Marek Szuba
2023-04-12  6:05 Yixun Lan
2023-04-08 18:49 Marek Szuba
2023-04-08 11:13 Arthur Zamarin
2023-04-08  9:00 Arthur Zamarin
2023-04-08  8:30 Arthur Zamarin
2023-02-24 22:07 Marek Szuba
2023-01-28 22:55 Marek Szuba
2023-01-28  1:40 Sam James
2023-01-28  0:26 Sam James
2023-01-28  0:15 Sam James
2022-10-04  0:53 Marek Szuba
2022-09-26  9:07 Marek Szuba
2022-08-19  8:14 Andreas Sturmlechner
2022-07-26  4:49 Sam James
2022-07-26  4:46 Sam James
2022-07-24  1:04 Sam James
2022-06-01 23:43 Marek Szuba
2022-04-11  6:35 Jakov Smolić
2022-04-10  9:05 Agostino Sarubbo
2022-03-01 16:47 Marek Szuba
2022-02-09  0:20 Marek Szuba
2021-09-29 14:07 Sam James
2021-09-29 14:07 Sam James
2021-08-28 20:21 Marek Szuba
2021-06-23  9:16 Marek Szuba
2021-06-23  6:29 Agostino Sarubbo
2021-06-23  4:43 Sam James
2021-05-13 19:50 Marek Szuba
2021-05-06 17:07 Marek Szuba
2021-04-27 11:05 Marek Szuba
2020-11-12 21:03 Thomas Deutschmann
2020-11-06 20:38 Sam James
2020-06-19 16:12 Marek Szuba
2020-05-14 21:29 Thomas Deutschmann
2020-05-12 12:50 Mikle Kolyada
2020-04-20 12:23 Marek Szuba
2020-04-10 13:31 Marek Szuba
2020-04-09 21:15 Marek Szuba
2020-04-08 22:52 Marek Szuba
2020-04-07  9:09 Marek Szuba
2020-04-02  0:21 Marek Szuba

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=1662565365.f8a008ea9f06f55adac6692c648f2de60f386a9c.marecki@gentoo \
    --to=marecki@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