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 02EA5158041 for ; Tue, 12 Mar 2024 17:52:00 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C2AC8E2A10; Tue, 12 Mar 2024 17:51:57 +0000 (UTC) Received: from smtp.gentoo.org (dev.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 A0080E2A10 for ; Tue, 12 Mar 2024 17:51:57 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 smtp.gentoo.org (Postfix) with ESMTPS id DA0A133FE7D for ; Tue, 12 Mar 2024 17:51:56 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 428A31528 for ; Tue, 12 Mar 2024 17:51:53 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1710265906.78d0452d48984926f5ebc5102dfc1539a264f3bc.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-libs/libomp/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-libs/libomp/libomp-18.1.0.ebuild sys-libs/libomp/libomp-19.0.0.9999.ebuild sys-libs/libomp/libomp-19.0.0_pre20240309.ebuild X-VCS-Directories: sys-libs/libomp/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 78d0452d48984926f5ebc5102dfc1539a264f3bc X-VCS-Branch: master Date: Tue, 12 Mar 2024 17:51:53 +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: b94d7ad7-f3e0-4e0d-a933-51eb3e953670 X-Archives-Hash: 7953301c8d33af0dd27a9d0764870805 commit: 78d0452d48984926f5ebc5102dfc1539a264f3bc Author: Michał Górny gentoo org> AuthorDate: Tue Mar 12 16:54:51 2024 +0000 Commit: Michał Górny gentoo org> CommitDate: Tue Mar 12 17:51:46 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=78d0452d sys-libs/libomp: Block calling nvptx-arch Block calling nvptx-arch as well as amdgpu-arch. Upstream is using this executable to determine the GPU architecture and implement the "native" card selection. However, it is called even if the option is not used (we are following upstream in building support for all GPUs) and it may cause sandbox violations. Closes: https://bugs.gentoo.org/926613 Signed-off-by: Michał Górny gentoo.org> sys-libs/libomp/libomp-18.1.0.ebuild | 6 ++++-- sys-libs/libomp/libomp-19.0.0.9999.ebuild | 6 ++++-- sys-libs/libomp/libomp-19.0.0_pre20240309.ebuild | 6 ++++-- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/sys-libs/libomp/libomp-18.1.0.ebuild b/sys-libs/libomp/libomp-18.1.0.ebuild index b61e605f2abd..79490dd692cb 100644 --- a/sys-libs/libomp/libomp-18.1.0.ebuild +++ b/sys-libs/libomp/libomp-18.1.0.ebuild @@ -114,8 +114,6 @@ multilib_src_configure() { -DLIBOMP_INSTALL_ALIASES=OFF # disable unnecessary hack copying stuff back to srcdir -DLIBOMP_COPY_EXPORTS=OFF - # prevent trying to access the GPU - -DLIBOMPTARGET_AMDGPU_ARCH=LIBOMPTARGET_AMDGPU_ARCH-NOTFOUND ) if [[ ${build_omptarget} == ON ]]; then @@ -130,6 +128,10 @@ multilib_src_configure() { mycmakeargs+=( -DLIBOMPTARGET_BUILD_AMDGPU_PLUGIN=$(usex llvm_targets_AMDGPU) -DLIBOMPTARGET_BUILD_CUDA_PLUGIN=$(usex llvm_targets_NVPTX) + + # prevent trying to access the GPU + -DLIBOMPTARGET_AMDGPU_ARCH=LIBOMPTARGET_AMDGPU_ARCH-NOTFOUND + -DLIBOMPTARGET_NVPTX_ARCH=LIBOMPTARGET_NVPTX_ARCH-NOTFOUND ) else mycmakeargs+=( diff --git a/sys-libs/libomp/libomp-19.0.0.9999.ebuild b/sys-libs/libomp/libomp-19.0.0.9999.ebuild index ce432b31535d..a40d0aed1c41 100644 --- a/sys-libs/libomp/libomp-19.0.0.9999.ebuild +++ b/sys-libs/libomp/libomp-19.0.0.9999.ebuild @@ -113,8 +113,6 @@ multilib_src_configure() { -DLIBOMP_INSTALL_ALIASES=OFF # disable unnecessary hack copying stuff back to srcdir -DLIBOMP_COPY_EXPORTS=OFF - # prevent trying to access the GPU - -DLIBOMPTARGET_AMDGPU_ARCH=LIBOMPTARGET_AMDGPU_ARCH-NOTFOUND ) if [[ ${build_omptarget} == ON ]]; then @@ -129,6 +127,10 @@ multilib_src_configure() { mycmakeargs+=( -DLIBOMPTARGET_BUILD_AMDGPU_PLUGIN=$(usex llvm_targets_AMDGPU) -DLIBOMPTARGET_BUILD_CUDA_PLUGIN=$(usex llvm_targets_NVPTX) + + # prevent trying to access the GPU + -DLIBOMPTARGET_AMDGPU_ARCH=LIBOMPTARGET_AMDGPU_ARCH-NOTFOUND + -DLIBOMPTARGET_NVPTX_ARCH=LIBOMPTARGET_NVPTX_ARCH-NOTFOUND ) else mycmakeargs+=( diff --git a/sys-libs/libomp/libomp-19.0.0_pre20240309.ebuild b/sys-libs/libomp/libomp-19.0.0_pre20240309.ebuild index ce432b31535d..a40d0aed1c41 100644 --- a/sys-libs/libomp/libomp-19.0.0_pre20240309.ebuild +++ b/sys-libs/libomp/libomp-19.0.0_pre20240309.ebuild @@ -113,8 +113,6 @@ multilib_src_configure() { -DLIBOMP_INSTALL_ALIASES=OFF # disable unnecessary hack copying stuff back to srcdir -DLIBOMP_COPY_EXPORTS=OFF - # prevent trying to access the GPU - -DLIBOMPTARGET_AMDGPU_ARCH=LIBOMPTARGET_AMDGPU_ARCH-NOTFOUND ) if [[ ${build_omptarget} == ON ]]; then @@ -129,6 +127,10 @@ multilib_src_configure() { mycmakeargs+=( -DLIBOMPTARGET_BUILD_AMDGPU_PLUGIN=$(usex llvm_targets_AMDGPU) -DLIBOMPTARGET_BUILD_CUDA_PLUGIN=$(usex llvm_targets_NVPTX) + + # prevent trying to access the GPU + -DLIBOMPTARGET_AMDGPU_ARCH=LIBOMPTARGET_AMDGPU_ARCH-NOTFOUND + -DLIBOMPTARGET_NVPTX_ARCH=LIBOMPTARGET_NVPTX_ARCH-NOTFOUND ) else mycmakeargs+=(