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) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 5FC4915800F for ; Mon, 23 Jan 2023 09:37:00 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 79649E07B2; Mon, 23 Jan 2023 09:36:59 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 56C81E07B2 for ; Mon, 23 Jan 2023 09:36:59 +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) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 1F52D335DB5 for ; Mon, 23 Jan 2023 09:36:58 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 760A9882 for ; Mon, 23 Jan 2023 09:36:56 +0000 (UTC) From: "Andrew Ammerlaan" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andrew Ammerlaan" Message-ID: <1674466357.2e4ccd369ca6972fe56b606d3e3885249a1d4362.andrewammerlaan@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/ X-VCS-Repository: repo/gentoo X-VCS-Files: sci-libs/vtk/vtk-9.0.3-r7.ebuild sci-libs/vtk/vtk-9.1.0-r6.ebuild sci-libs/vtk/vtk-9.2.2-r1.ebuild X-VCS-Directories: sci-libs/vtk/ X-VCS-Committer: andrewammerlaan X-VCS-Committer-Name: Andrew Ammerlaan X-VCS-Revision: 2e4ccd369ca6972fe56b606d3e3885249a1d4362 X-VCS-Branch: master Date: Mon, 23 Jan 2023 09:36:56 +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: bf12fb39-5787-435e-860f-9e40f1c48ead X-Archives-Hash: 2fca50678349a795ddbd2e15c3edc5d5 commit: 2e4ccd369ca6972fe56b606d3e3885249a1d4362 Author: Bernd Waibel posteo net> AuthorDate: Sun Jan 22 09:46:06 2023 +0000 Commit: Andrew Ammerlaan gentoo org> CommitDate: Mon Jan 23 09:32:37 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2e4ccd36 sci-libs/vtk: drop native CUDA arch Backport from 9.2.5, until detection is fixed upstream, don't allow the use of VTK_CUDA_ARCH=native. Bug: https://bugs.gentoo.org/835659 Signed-off-by: Bernd Waibel posteo.net> Closes: https://github.com/gentoo/gentoo/pull/29200 Signed-off-by: Andrew Ammerlaan gentoo.org> sci-libs/vtk/vtk-9.0.3-r7.ebuild | 12 ++++++++++++ sci-libs/vtk/vtk-9.1.0-r6.ebuild | 12 ++++++++++++ sci-libs/vtk/vtk-9.2.2-r1.ebuild | 32 ++++++++++++++++++++++++++------ 3 files changed, 50 insertions(+), 6 deletions(-) diff --git a/sci-libs/vtk/vtk-9.0.3-r7.ebuild b/sci-libs/vtk/vtk-9.0.3-r7.ebuild index 29ec066862cb..704b90b94032 100644 --- a/sci-libs/vtk/vtk-9.0.3-r7.ebuild +++ b/sci-libs/vtk/vtk-9.0.3-r7.ebuild @@ -151,6 +151,12 @@ pkg_pretend() { # 10.2 GiB install directory, 6.4 GiB build directory with max. USE flags CHECKREQS_MEMORY="7G" CHECKREQS_DISK_BUILD="14G" + if [[ ${VTK_CUDA_ARCH} = native ]]; then + eerror "Using native CUDA arches is currently broken." + eerror "Please set it to one of the common arch names:" + eerror "kepler, maxwell, pascal, turing or ampere." + die "Please set VTK_CUDA_ARCH environment variable!" + fi fi check-reqs_pkg_setup } @@ -162,6 +168,12 @@ pkg_setup() { if use cuda; then CHECKREQS_MEMORY="7G" CHECKREQS_DISK_BUILD="14G" + if [[ ${VTK_CUDA_ARCH} = native ]]; then + eerror "Using native CUDA arches is currently broken." + eerror "Please set it to one of the common arch names:" + eerror "kepler, maxwell, pascal, turing or ampere." + die "Please set VTK_CUDA_ARCH environment variable!" + fi fi check-reqs_pkg_setup diff --git a/sci-libs/vtk/vtk-9.1.0-r6.ebuild b/sci-libs/vtk/vtk-9.1.0-r6.ebuild index f2d49d2249e2..e781751ccfda 100644 --- a/sci-libs/vtk/vtk-9.1.0-r6.ebuild +++ b/sci-libs/vtk/vtk-9.1.0-r6.ebuild @@ -188,6 +188,12 @@ pkg_pretend() { # 10.2 GiB install directory, 6.4 GiB build directory with max. USE flags CHECKREQS_MEMORY="7G" CHECKREQS_DISK_BUILD="14G" + if [[ ${VTK_CUDA_ARCH} = native ]]; then + eerror "Using native CUDA arches is currently broken." + eerror "Please set it to one of the common arch names:" + eerror "kepler, maxwell, pascal, turing or ampere." + die "Please set VTK_CUDA_ARCH environment variable!" + fi fi if use qt6 && use qt5; then @@ -217,6 +223,12 @@ pkg_setup() { if use cuda; then CHECKREQS_MEMORY="7G" CHECKREQS_DISK_BUILD="14G" + if [[ ${VTK_CUDA_ARCH} = native ]]; then + eerror "Using native CUDA arches is currently broken." + eerror "Please set it to one of the common arch names:" + eerror "kepler, maxwell, pascal, turing or ampere." + die "Please set VTK_CUDA_ARCH environment variable!" + fi fi if use qt6 && use qt5; then diff --git a/sci-libs/vtk/vtk-9.2.2-r1.ebuild b/sci-libs/vtk/vtk-9.2.2-r1.ebuild index f5432d511348..cd85af34661c 100644 --- a/sci-libs/vtk/vtk-9.2.2-r1.ebuild +++ b/sci-libs/vtk/vtk-9.2.2-r1.ebuild @@ -204,6 +204,16 @@ pkg_pretend() { ewarn "Both qt5 and qt6 USE flags have been selected. Using qt5!" fi + # bug #835659 + if use cuda; then + if [[ ${VTK_CUDA_ARCH} = native ]]; then + eerror "Using native CUDA arches is currently broken." + eerror "Please set it to one of the common arch names:" + eerror "kepler, maxwell, pascal, turing or ampere." + die "Please set VTK_CUDA_ARCH environment variable!" + fi + fi + vtk_check_reqs } @@ -220,6 +230,16 @@ pkg_setup() { ewarn "Both qt5 and qt6 USE flags have been selected. Using qt5!" fi + # bug #835659 + if use cuda; then + if [[ ${VTK_CUDA_ARCH} = native ]]; then + eerror "Using native CUDA arches is currently broken." + eerror "Please set it to one of the common arch names:" + eerror "kepler, maxwell, pascal, turing or ampere." + die "Please set VTK_CUDA_ARCH environment variable!" + fi + fi + vtk_check_reqs use java && java-pkg-opt-2_pkg_setup @@ -399,12 +419,12 @@ src_configure() { kepler|maxwell|pascal|volta|turing|ampere|all) cuda_arch=${VTK_CUDA_ARCH} ;; - native) - ewarn "If auto detection fails for you, please try and export the" - ewarn "VTK_CUDA_ARCH environment variable to one of the common arch" - ewarn "names: kepler, maxwell, pascal, volta, turing, ampere or all." - cuda_arch=native - ;; +# native) +# ewarn "If auto detection fails for you, please try and export the" +# ewarn "VTK_CUDA_ARCH environment variable to one of the common arch" +# ewarn "names: kepler, maxwell, pascal, volta, turing, ampere or all." +# cuda_arch=native +# ;; *) eerror "Please properly set the VTK_CUDA_ARCH environment variable to" eerror "one of: kepler, maxwell, pascal, volta, turing, ampere, all"