From 51525dbb22987e18f1e326e22d5cd70be7943463 Mon Sep 17 00:00:00 2001 From: Paul Zander Date: Mon, 4 May 2026 13:59:45 +0200 Subject: [PATCH] dev-cpp/eigen: drop openmp from test backends, add openmp check Signed-off-by: Paul Zander Part-of: https://github.com/gentoo/gentoo/pull/44994 Signed-off-by: Sam James --- dev-cpp/eigen/eigen-3.4.9999.ebuild | 13 +++++++++++-- dev-cpp/eigen/eigen-9999.ebuild | 13 +++++++++++-- 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/dev-cpp/eigen/eigen-3.4.9999.ebuild b/dev-cpp/eigen/eigen-3.4.9999.ebuild index c507e8b7d33d5..e3be80f5eab25 100644 --- a/dev-cpp/eigen/eigen-3.4.9999.ebuild +++ b/dev-cpp/eigen/eigen-3.4.9999.ebuild @@ -84,7 +84,6 @@ IUSE_TEST_BACKENDS=( "fftw" "klu" "opengl" - "openmp" "pastix" "sparsehash" "spqr" @@ -92,7 +91,7 @@ IUSE_TEST_BACKENDS=( "umfpack" ) -IUSE="${CPU_FEATURES_MAP[*]%:*} cuda cuda-clang hip debug doc lapack mathjax test ${IUSE_TEST_BACKENDS[*]}" #zvector +IUSE="${CPU_FEATURES_MAP[*]%:*} cuda cuda-clang hip debug doc lapack mathjax openmp test ${IUSE_TEST_BACKENDS[*]}" #zvector REQUIRED_USE=" || ( ${IUSE_TEST_BACKENDS[*]} ) @@ -200,7 +199,17 @@ cuda_set_CUDAHOSTCXX() { export CUDAHOSTCXX } +pkg_pretend() { + if [[ ${MERGE_TYPE} != binary ]] && use openmp; then + tc-check-openmp + fi +} + pkg_setup() { + if [[ ${MERGE_TYPE} != binary ]] && use openmp; then + tc-check-openmp + fi + if use test && use cuda && use cuda-clang; then llvm-r2_pkg_setup fi diff --git a/dev-cpp/eigen/eigen-9999.ebuild b/dev-cpp/eigen/eigen-9999.ebuild index ef31ff4a4ba33..4fe62bd5626d4 100644 --- a/dev-cpp/eigen/eigen-9999.ebuild +++ b/dev-cpp/eigen/eigen-9999.ebuild @@ -84,7 +84,6 @@ IUSE_TEST_BACKENDS=( "fftw" "klu" "opengl" - "openmp" "pastix" "sparsehash" "spqr" @@ -92,7 +91,7 @@ IUSE_TEST_BACKENDS=( "umfpack" ) -IUSE="benchmark ${CPU_FEATURES_MAP[*]%:*} cuda cuda-clang hip debug doc lapack mathjax test ${IUSE_TEST_BACKENDS[*]}" #zvector +IUSE="benchmark ${CPU_FEATURES_MAP[*]%:*} cuda cuda-clang hip debug doc lapack mathjax openmp test ${IUSE_TEST_BACKENDS[*]}" #zvector REQUIRED_USE=" || ( ${IUSE_TEST_BACKENDS[*]} ) @@ -197,7 +196,17 @@ cuda_set_CUDAHOSTCXX() { export CUDAHOSTCXX } +pkg_pretend() { + if [[ ${MERGE_TYPE} != binary ]] && use openmp; then + tc-check-openmp + fi +} + pkg_setup() { + if [[ ${MERGE_TYPE} != binary ]] && use openmp; then + tc-check-openmp + fi + if use test && use cuda && use cuda-clang; then llvm-r2_pkg_setup fi