commit:     22d02ac13564e69c4235cc7a2e85b3c957e2e23c
Author:     Yiyang Wu <xgreenlandforwyy <AT> gmail <DOT> com>
AuthorDate: Tue Jun  7 06:10:38 2022 +0000
Commit:     Benda XU <heroxbd <AT> gentoo <DOT> org>
CommitDate: Tue Jun 21 08:38:40 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=22d02ac1

dev-libs/ocl-icd: change the vendors dir when use prefix

Closes: https://github.com/gentoo/gentoo/pull/25785
Signed-off-by: Yiyang Wu <xgreenlandforwyy <AT> gmail.com>
Signed-off-by: Benda Xu <heroxbd <AT> gentoo.org>

 dev-libs/ocl-icd/ocl-icd-2.3.0.ebuild | 5 +++--
 dev-libs/ocl-icd/ocl-icd-2.3.1.ebuild | 3 ++-
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/dev-libs/ocl-icd/ocl-icd-2.3.0.ebuild 
b/dev-libs/ocl-icd/ocl-icd-2.3.0.ebuild
index 341d58d9a219..84890c9fc9b8 100644
--- a/dev-libs/ocl-icd/ocl-icd-2.3.0.ebuild
+++ b/dev-libs/ocl-icd/ocl-icd-2.3.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -37,7 +37,8 @@ src_prepare() {
 multilib_src_configure() {
        # dev-util/opencl-headers ARE official Khronos Group headers, what this 
option
        # does is disable the use of the bundled ones
-       ECONF_SOURCE="${S}" econf --enable-pthread-once 
--disable-official-khronos-headers
+       ECONF_SOURCE="${S}" econf --enable-pthread-once 
--disable-official-khronos-headers \
+               --enable-custom-vendordir="${EPREFIX}/etc/OpenCL/vendors"
 }
 
 multilib_src_compile() {

diff --git a/dev-libs/ocl-icd/ocl-icd-2.3.1.ebuild 
b/dev-libs/ocl-icd/ocl-icd-2.3.1.ebuild
index 332354cf47a6..c991dc0798f9 100644
--- a/dev-libs/ocl-icd/ocl-icd-2.3.1.ebuild
+++ b/dev-libs/ocl-icd/ocl-icd-2.3.1.ebuild
@@ -33,7 +33,8 @@ src_prepare() {
 multilib_src_configure() {
        # dev-util/opencl-headers ARE official Khronos Group headers, what this 
option
        # does is disable the use of the bundled ones
-       ECONF_SOURCE="${S}" econf --enable-pthread-once 
--disable-official-khronos-headers
+       ECONF_SOURCE="${S}" econf --enable-pthread-once 
--disable-official-khronos-headers \
+               --enable-custom-vendordir="${EPREFIX}/etc/OpenCL/vendors"
 }
 
 multilib_src_compile() {

Reply via email to