commit: 0245b7ef1b5a051927e4e91e4c7a35dfe3e8469b Author: Paul Zander <negril.nx+gentoo <AT> gmail <DOT> com> AuthorDate: Wed Mar 4 12:53:11 2026 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Thu Mar 5 12:52:47 2026 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0245b7ef
llvm-runtimes/offload: prevent GPU lookup via SPIRV LLVM added support for Intel oneAPI Level Zero in f125c8d. This results in trying to find and execute `offload-arch`, which tries to access `/dev/dri/renderD*`. Closes: https://bugs.gentoo.org/970894 Signed-off-by: Paul Zander <negril.nx+gentoo <AT> gmail.com> Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> llvm-runtimes/offload/offload-23.0.0.9999.ebuild | 1 + llvm-runtimes/offload/offload-23.0.0_pre20260214.ebuild | 1 + llvm-runtimes/offload/offload-23.0.0_pre20260223.ebuild | 1 + llvm-runtimes/offload/offload-23.0.0_pre20260303.ebuild | 1 + 4 files changed, 4 insertions(+) diff --git a/llvm-runtimes/offload/offload-23.0.0.9999.ebuild b/llvm-runtimes/offload/offload-23.0.0.9999.ebuild index 770ad5a171c3..b684fc63965f 100644 --- a/llvm-runtimes/offload/offload-23.0.0.9999.ebuild +++ b/llvm-runtimes/offload/offload-23.0.0.9999.ebuild @@ -115,6 +115,7 @@ src_configure() { # prevent trying to access the GPU -DLIBOMPTARGET_AMDGPU_ARCH=LIBOMPTARGET_AMDGPU_ARCH-NOTFOUND -DLIBOMPTARGET_NVPTX_ARCH=LIBOMPTARGET_NVPTX_ARCH-NOTFOUND + -DLIBOMPTARGET_OFFLOAD_ARCH=LIBOMPTARGET_OFFLOAD_ARCH-NOTFOUND ) use test && mycmakeargs+=( # this project does not use standard LLVM cmake macros diff --git a/llvm-runtimes/offload/offload-23.0.0_pre20260214.ebuild b/llvm-runtimes/offload/offload-23.0.0_pre20260214.ebuild index 770ad5a171c3..b684fc63965f 100644 --- a/llvm-runtimes/offload/offload-23.0.0_pre20260214.ebuild +++ b/llvm-runtimes/offload/offload-23.0.0_pre20260214.ebuild @@ -115,6 +115,7 @@ src_configure() { # prevent trying to access the GPU -DLIBOMPTARGET_AMDGPU_ARCH=LIBOMPTARGET_AMDGPU_ARCH-NOTFOUND -DLIBOMPTARGET_NVPTX_ARCH=LIBOMPTARGET_NVPTX_ARCH-NOTFOUND + -DLIBOMPTARGET_OFFLOAD_ARCH=LIBOMPTARGET_OFFLOAD_ARCH-NOTFOUND ) use test && mycmakeargs+=( # this project does not use standard LLVM cmake macros diff --git a/llvm-runtimes/offload/offload-23.0.0_pre20260223.ebuild b/llvm-runtimes/offload/offload-23.0.0_pre20260223.ebuild index 770ad5a171c3..b684fc63965f 100644 --- a/llvm-runtimes/offload/offload-23.0.0_pre20260223.ebuild +++ b/llvm-runtimes/offload/offload-23.0.0_pre20260223.ebuild @@ -115,6 +115,7 @@ src_configure() { # prevent trying to access the GPU -DLIBOMPTARGET_AMDGPU_ARCH=LIBOMPTARGET_AMDGPU_ARCH-NOTFOUND -DLIBOMPTARGET_NVPTX_ARCH=LIBOMPTARGET_NVPTX_ARCH-NOTFOUND + -DLIBOMPTARGET_OFFLOAD_ARCH=LIBOMPTARGET_OFFLOAD_ARCH-NOTFOUND ) use test && mycmakeargs+=( # this project does not use standard LLVM cmake macros diff --git a/llvm-runtimes/offload/offload-23.0.0_pre20260303.ebuild b/llvm-runtimes/offload/offload-23.0.0_pre20260303.ebuild index 770ad5a171c3..b684fc63965f 100644 --- a/llvm-runtimes/offload/offload-23.0.0_pre20260303.ebuild +++ b/llvm-runtimes/offload/offload-23.0.0_pre20260303.ebuild @@ -115,6 +115,7 @@ src_configure() { # prevent trying to access the GPU -DLIBOMPTARGET_AMDGPU_ARCH=LIBOMPTARGET_AMDGPU_ARCH-NOTFOUND -DLIBOMPTARGET_NVPTX_ARCH=LIBOMPTARGET_NVPTX_ARCH-NOTFOUND + -DLIBOMPTARGET_OFFLOAD_ARCH=LIBOMPTARGET_OFFLOAD_ARCH-NOTFOUND ) use test && mycmakeargs+=( # this project does not use standard LLVM cmake macros
