1 |
commit: f8a008ea9f06f55adac6692c648f2de60f386a9c |
2 |
Author: Marek Szuba <marecki <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Sep 7 15:38:55 2022 +0000 |
4 |
Commit: Marek Szuba <marecki <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Sep 7 15:42:45 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f8a008ea |
7 |
|
8 |
dev-libs/opencl-icd-loader: various tweaks |
9 |
|
10 |
1. Switch from the legacy approach of locating Khronos OpenCL headers |
11 |
to CMake package-config files, in line with the 2022.05.18 version |
12 |
of dev-libs/clhpp |
13 |
2. No need to have dev-util/opencl-headers in RDEPEND; |
14 |
3. In src_test(), try to make sure the loader loads ONLY the stub driver. |
15 |
This may or may not something to do with Bug #836476. |
16 |
|
17 |
Signed-off-by: Marek Szuba <marecki <AT> gentoo.org> |
18 |
|
19 |
...2.05.18.ebuild => opencl-icd-loader-2022.05.18-r1.ebuild} | 12 +++++++----- |
20 |
1 file changed, 7 insertions(+), 5 deletions(-) |
21 |
|
22 |
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 |
23 |
similarity index 65% |
24 |
rename from dev-libs/opencl-icd-loader/opencl-icd-loader-2022.05.18.ebuild |
25 |
rename to dev-libs/opencl-icd-loader/opencl-icd-loader-2022.05.18-r1.ebuild |
26 |
index 0799e46d6593..082f069a5031 100644 |
27 |
--- a/dev-libs/opencl-icd-loader/opencl-icd-loader-2022.05.18.ebuild |
28 |
+++ b/dev-libs/opencl-icd-loader/opencl-icd-loader-2022.05.18-r1.ebuild |
29 |
@@ -19,21 +19,23 @@ IUSE="test" |
30 |
|
31 |
RESTRICT="!test? ( test )" |
32 |
|
33 |
-DEPEND=">=dev-util/opencl-headers-${PV} |
34 |
- !dev-libs/ocl-icd" |
35 |
-RDEPEND="${DEPEND}" |
36 |
+RDEPEND="!dev-libs/ocl-icd" |
37 |
+# Need an opencl-headers ebuild which installs cmake package configs |
38 |
+# TODO: revert to the usual >=${PV} come next upstream version |
39 |
+DEPEND="${RDEPEND} |
40 |
+ >=dev-util/opencl-headers-2022.05.18-r1" |
41 |
|
42 |
S="${WORKDIR}/${MY_P}" |
43 |
|
44 |
multilib_src_configure() { |
45 |
local mycmakeargs=( |
46 |
-DBUILD_TESTING=$(usex test) |
47 |
- -DOPENCL_ICD_LOADER_HEADERS_DIR="${EPREFIX}/usr/include" |
48 |
) |
49 |
cmake_src_configure |
50 |
} |
51 |
|
52 |
multilib_src_test() { |
53 |
- OCL_ICD_FILENAMES="${BUILD_DIR}/test/driver_stub/libOpenCLDriverStub.so" \ |
54 |
+ local -x OCL_ICD_FILENAMES="${BUILD_DIR}/test/driver_stub/libOpenCLDriverStub.so" |
55 |
+ local -x OCL_ICD_VENDORS="/dev/null" |
56 |
cmake_src_test |
57 |
} |