From: "Andreas Sturmlechner" <asturm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-cpp/eigen/
Date: Thu, 16 May 2024 13:04:56 +0000 (UTC) [thread overview]
Message-ID: <1715864681.4287001e86ee127e39307e405e35c42bb50c41dc.asturm@gentoo> (raw)
commit: 4287001e86ee127e39307e405e35c42bb50c41dc
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Thu May 16 13:03:40 2024 +0000
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Thu May 16 13:04:41 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4287001e
dev-cpp/eigen: drop broken 3.4.9999 ebuild
Closes: https://bugs.gentoo.org/928160
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
dev-cpp/eigen/eigen-3.4.9999.ebuild | 432 ------------------------------------
1 file changed, 432 deletions(-)
diff --git a/dev-cpp/eigen/eigen-3.4.9999.ebuild b/dev-cpp/eigen/eigen-3.4.9999.ebuild
deleted file mode 100644
index e4f1e0613661..000000000000
--- a/dev-cpp/eigen/eigen-3.4.9999.ebuild
+++ /dev/null
@@ -1,432 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-FORTRAN_NEEDED="test"
-inherit cmake cuda fortran-2 llvm toolchain-funcs
-
-DESCRIPTION="C++ template library for linear algebra"
-HOMEPAGE="https://eigen.tuxfamily.org/index.php?title=Main_Page"
-
-if [[ ${PV} = *9999* ]] ; then
- inherit git-r3
- EGIT_REPO_URI="https://gitlab.com/lib${PN}/${PN}.git"
- if [[ ${PV} = 3.4.9999* ]] ; then
- EGIT_COMMIT="3.4"
- fi
-else
- SRC_URI="
- https://gitlab.com/lib${PN}/${PN}/-/archive/${PV}/${P}.tar.bz2
- test? ( lapack? ( https://downloads.tuxfamily.org/${PN}/lapack_addons_3.4.1.tgz -> ${PN}-lapack_addons-3.4.1.tgz ) )
- "
- KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~x64-macos"
-fi
-
-LICENSE="MPL-2.0"
-SLOT="3"
-
-# The following lines are shamelessly stolen from ffmpeg-9999.ebuild with modifications
-ARM_CPU_FEATURES=(
- neon:NEON
-)
-PPC_CPU_FEATURES=(
- altivec:ALTIVEC
- vsx:VSX
-)
-X86_CPU_FEATURES=(
- avx:AVX
- avx2:AVX2
- avx512f:AVX512
- avx512dq:AVX512DQ
- f16c:FP16C
- fma3:FMA
- popcnt:POPCNT
- sse:SSE
- sse2:SSE2
- sse3:SSE3
- ssse3:SSSE3
- sse4_1:SSE4_1
- sse4_2:SSE4_2
-)
-# MIPS_CPU_FEATURES=(
-# msa:MSA
-# )
-# S390_CPU_FEATURES=(
-# z13:Z13
-# z14:Z14
-# )
-
-CPU_FEATURES_MAP=(
- "${ARM_CPU_FEATURES[@]/#/cpu_flags_arm_}"
- "${PPC_CPU_FEATURES[@]/#/cpu_flags_ppc_}"
- "${X86_CPU_FEATURES[@]/#/cpu_flags_x86_}"
- # "${MIPS_CPU_FEATURES[@]/#/cpu_flags_mips_}"
- # "${S390_CPU_FEATURES[@]/#/cpu_flags_s390_}"
-)
-
-IUSE_TEST_BACKENDS=(
- "adolc"
- "boost"
- "cholmod"
- "fftw"
- "klu"
- "opengl"
- "openmp"
- "pastix"
- "sparsehash"
- "spqr"
- "superlu"
- "umfpack"
-)
-
-IUSE="benchmark ${CPU_FEATURES_MAP[*]%:*} clang cuda hip debug doc lapack mathjax test ${IUSE_TEST_BACKENDS[*]}" #zvector
-
-# Tests failing again because of compiler issues
-RESTRICT="!test? ( test )"
-
-BDEPEND="
- doc? (
- app-text/doxygen[dot]
- dev-texlive/texlive-bibtexextra
- dev-texlive/texlive-fontsextra
- dev-texlive/texlive-fontutils
- dev-texlive/texlive-latex
- dev-texlive/texlive-latexextra
- mathjax? ( dev-libs/mathjax )
- )
- test? ( virtual/pkgconfig )
-"
-
-# METIS
-# MPREAL
-# dev-libs/mpfr:0
-# dev-libs/gmp:0
-
-TEST_BACKENDS="
- boost? ( dev-libs/boost )
- adolc? ( sci-libs/adolc[sparse] )
- cholmod? ( sci-libs/cholmod:= )
- fftw? ( sci-libs/fftw )
- spqr? ( sci-libs/spqr )
- klu? ( sci-libs/klu )
- opengl? (
- media-libs/freeglut
- media-libs/glew
- media-libs/libglvnd
- )
- pastix? ( sci-libs/pastix[-mpi] )
- sparsehash? (
- amd64? ( dev-cpp/sparsehash )
- arm64? ( dev-cpp/sparsehash )
- ppc64? ( dev-cpp/sparsehash )
- x86? ( dev-cpp/sparsehash )
- )
- superlu? ( sci-libs/superlu )
- umfpack? ( sci-libs/umfpack )
-"
-DEPEND="
- test? (
- cuda? (
- !clang? (
- dev-util/nvidia-cuda-toolkit
- )
- clang? (
- sys-devel/clang[llvm_targets_NVPTX]
- openmp? ( sys-libs/libomp[llvm_targets_NVPTX,offload] )
- )
- )
- hip? ( dev-util/hip )
- lapack? ( virtual/lapacke )
- ${TEST_BACKENDS}
- )
-"
-
-REQUIRED_USE="
- || ( ${IUSE_TEST_BACKENDS[*]} )
-"
-
-PATCHES=(
- "${FILESDIR}/${PN}-3.3.9-max-macro.patch"
- "${FILESDIR}/${PN}-3.4.0-doc-nocompress.patch" # bug 830064
- "${FILESDIR}/${PN}-3.4.0-buildstring.patch"
- "${FILESDIR}/${PN}-3.4.0-noansi.patch"
- "${FILESDIR}/${PN}-3.4.0-cxxstandard.patch"
-)
-
-# TODO should be in cuda.eclass
-cuda_set_CUDAHOSTCXX() {
- local compiler
- tc-is-gcc && compiler="gcc"
- tc-is-clang && compiler="clang"
- [[ -z "$compiler" ]] && die "no compiler specified"
-
- local package="sys-devel/${compiler}"
- local version="${package}"
- local CUDAHOSTCXX_test
- while
- CUDAHOSTCXX="${CUDAHOSTCXX_test}"
- version=$(best_version "${version}")
- if [[ -z "${version}" ]]; then
- if [[ -z "${CUDAHOSTCXX}" ]]; then
- die "could not find supported version of ${package}"
- fi
- break
- fi
- CUDAHOSTCXX_test="$(
- dirname "$(
- realpath "$(
- which "${compiler}-$(echo "${version}" | grep -oP "(?<=${package}-)[0-9]*")"
- )"
- )"
- )"
- version="<${version}"
- do ! echo "int main(){}" | nvcc "-ccbin ${CUDAHOSTCXX_test}" - -x cu &>/dev/null; done
-
- export CUDAHOSTCXX
-}
-
-pkg_setup() {
- use test && use cuda && use clang && llvm_pkg_setup
-}
-
-src_unpack() {
- if [[ ${PV} = *9999* ]] ; then
- git-r3_src_unpack
- else
- unpack "${P}.tar.bz2"
-
- if use test && use lapack; then
- cd "${S}/lapack" || die
- unpack "${PN}-lapack_addons-3.4.1.tgz"
- fi
- fi
-}
-
-src_prepare() {
- cmake_src_prepare
-
- sed \
- -e "/add_subdirectory(bench\/spbench/s/^/#DONOTCOMPILE /g" \
- -e "/add_subdirectory(demos/s/^/#DONOTCOMPILE /g" \
- -i CMakeLists.txt || die
-
- if ! use test; then
- sed \
- -e "/add_subdirectory(test/s/^/#DONOTCOMPILE /g" \
- -e "/add_subdirectory(scripts/s/^/#DONOTCOMPILE /g" \
- -e "/add_subdirectory(failtest/s/^/#DONOTCOMPILE /g" \
- -e "/add_subdirectory(blas/s/^/#DONOTCOMPILE /g" \
- -e "/add_subdirectory(lapack/s/^/#DONOTCOMPILE /g" \
- -i CMakeLists.txt || die
- fi
-}
-
-src_configure() {
- local mycmakeargs=(
- -DBUILD_SHARED_LIBS="yes"
- -DBUILD_TESTING="$(usex test)"
-
- -DEIGEN_BUILD_BTL="$(usex benchmark)" # Build benchmark suite
- -DEIGEN_BUILD_DOC="$(usex doc)" # Enable creation of Eigen documentation
- -DEIGEN_BUILD_PKGCONFIG="yes" # Build pkg-config .pc file for Eigen
- )
- if use doc || use test; then
- mycmakeargs+=(
- # needs Qt4
- -DEIGEN_TEST_NOQT="yes" # Disable Qt support in unit tests
- )
- fi
-
- if use doc; then
- mycmakeargs+=(
- -DEIGEN_DOC_USE_MATHJAX="$(usex mathjax)" # Use MathJax for rendering math in HTML docs
- -DEIGEN_INTERNAL_DOCUMENTATION=no # Build internal documentation
- )
- fi
-
- if use test; then
- mycmakeargs+=(
- # the OpenGL testsuite is extremely brittle, bug #712808
- -DOpenGL_GL_PREFERENCE="GLVND"
- -DEIGEN_TEST_OPENGL="$(usex opengl)" # Enable OpenGL support in unit tests
- -DEIGEN_TEST_OPENMP="$(usex openmp)" # Enable/Disable OpenMP in tests/examples
-
- -DCMAKE_DISABLE_FIND_PACKAGE_MPREAL=ON
-
- -DEIGEN_TEST_CXX11=yes
-
- # -DEIGEN_TEST_CUSTOM_CXX_FLAGS= # Additional compiler flags when compiling unit tests.
- # -DEIGEN_TEST_CUSTOM_LINKER_FLAGS= # Additional linker flags when linking unit tests.
- # -DEIGEN_TEST_BUILD_FLAGS= # Options passed to the build command of unit tests
-
- # -DEIGEN_BUILD_BTL=yes # Build benchmark suite
-
- -DEIGEN_TEST_BUILD_DOCUMENTATION="$(usex doc)" # Test building the doxygen documentation
-
- # -DEIGEN_COVERAGE_TESTING=no # Enable/disable gcov
- # -DEIGEN_CTEST_ERROR_EXCEPTION= # Regular expression for build error messages to be filtered out
- # -DEIGEN_DEBUG_ASSERTS=no # Enable advanced debugging of assertions
- # -DEIGEN_NO_ASSERTION_CHECKING=no # Disable checking of assertions using exceptions
- # -DEIGEN_TEST_NO_EXCEPTIONS=no # Disables C++ exceptions
- # -DEIGEN_TEST_NO_EXPLICIT_ALIGNMENT=no # Disable explicit alignment (hence vectorization) in tests/examples
- # -DEIGEN_TEST_NO_EXPLICIT_VECTORIZATION=no # Disable explicit vectorization in tests/examples
-
- # -DEIGEN_DASHBOARD_BUILD_TARGET=buildtests # Target to be built in dashboard mode, default is buildtests
-
- # -DEIGEN_DEFAULT_TO_ROW_MAJOR=no # Use row-major as default matrix storage order
-
- # -DEIGEN_TEST_MATRIX_DIR=yes # Enable testing of realword sparse matrices contained in the specified path
- # -DEIGEN_TEST_MAX_SIZE=320 # Maximal matrix/vector size, default is 320
- # -DEIGEN_SPLIT_LARGE_TESTS=no # Split large tests into smaller executables
- )
-
- use !adolc && mycmakeargs+=( -DCMAKE_DISABLE_FIND_PACKAGE_Adolc="TRUE" )
- use !boost && mycmakeargs+=( -DCMAKE_DISABLE_FIND_PACKAGE_Boost="TRUE" )
- use !cholmod && mycmakeargs+=( -DCMAKE_DISABLE_FIND_PACKAGE_CHOLMOD="TRUE" )
- use !fftw && mycmakeargs+=( -DCMAKE_DISABLE_FIND_PACKAGE_FFTW="TRUE" )
- use !sparsehash && mycmakeargs+=( -DCMAKE_DISABLE_FIND_PACKAGE_GoogleHash="TRUE" )
- use !klu && mycmakeargs+=( -DCMAKE_DISABLE_FIND_PACKAGE_KLU="TRUE" )
- use !opengl && mycmakeargs+=( -DCMAKE_DISABLE_FIND_PACKAGE_OpenGL="TRUE" )
- use !openmp && mycmakeargs+=( -DCMAKE_DISABLE_FIND_PACKAGE_OpenMP="TRUE" )
- use !pastix && mycmakeargs+=( -DCMAKE_DISABLE_FIND_PACKAGE_PASTIX="TRUE" )
- use !spqr && mycmakeargs+=( -DCMAKE_DISABLE_FIND_PACKAGE_SPQR="TRUE" )
- use !superlu && mycmakeargs+=( -DCMAKE_DISABLE_FIND_PACKAGE_SuperLU="TRUE" )
- use !umfpack && mycmakeargs+=( -DCMAKE_DISABLE_FIND_PACKAGE_UMFPACK="TRUE" )
-
- if use lapack; then
- mycmakeargs+=(
- -DEIGEN_ENABLE_LAPACK_TESTS=yes
- -DEIGEN_TEST_EXTERNAL_BLAS=yes # Use external BLAS library for testsuite
- -DCMAKE_DISABLE_FIND_PACKAGE_SuperLU=ON
- )
- fi
-
- if use arm; then
- mycmakeargs+=(
- -DEIGEN_TEST_NEON="$(usex cpu_flags_arm_neon)"
- )
- fi
-
- if use arm64; then
- mycmakeargs+=(
- -DEIGEN_TEST_NEON64="$(usex cpu_flags_arm_neon)"
- )
- fi
-
- if use ppc || use ppc64; then
- mycmakeargs+=(
- -DEIGEN_TEST_ALTIVEC="$(usex cpu_flags_ppc_altivec)"
- -DEIGEN_TEST_VSX="$(usex cpu_flags_ppc_vsx)"
- )
- fi
-
- if use amd64 || use x86; then
- mycmakeargs+=(
- # -DEIGEN_TEST_32BIT=no # Force generating 32bit code.
- # -DEIGEN_TEST_X87=no # Force using X87 instructions. Implies no vectorization.
- -DEIGEN_TEST_SSE2="$(usex cpu_flags_x86_sse2)"
- -DEIGEN_TEST_SSE3="$(usex cpu_flags_x86_sse3)"
- -DEIGEN_TEST_SSSE3="$(usex cpu_flags_x86_ssse3)"
- -DEIGEN_TEST_FMA="$(usex cpu_flags_x86_fma3)"
- -DEIGEN_TEST_SSE4_1="$(usex cpu_flags_x86_sse4_1)"
- -DEIGEN_TEST_SSE4_2="$(usex cpu_flags_x86_sse4_2)"
- -DEIGEN_TEST_AVX="$(usex cpu_flags_x86_avx)"
- -DEIGEN_TEST_F16C="$(usex cpu_flags_x86_f16c)"
- -DEIGEN_TEST_AVX2="$(usex cpu_flags_x86_avx2)"
- -DEIGEN_TEST_AVX512="$(usex cpu_flags_x86_avx512f)"
- -DEIGEN_TEST_AVX512DQ="$(usex cpu_flags_x86_avx512dq)"
- )
- fi
-
- if use mips; then
- mycmakeargs+=(
- # -DEIGEN_TEST_MSA=no # Enable/Disable MSA in tests/examples
- )
- fi
-
- if use s390; then
- mycmakeargs+=(
- # -DEIGEN_TEST_Z13=no # Enable/Disable S390X(zEC13) ZVECTOR in tests/examples
- # -DEIGEN_TEST_Z14=no # Enable/Disable S390X(zEC14) ZVECTOR in tests/examples
- )
- fi
-
- mycmakeargs+=(
- -DEIGEN_TEST_CUDA="$(usex cuda)" # Enable CUDA support in unit tests
- -DEIGEN_TEST_CUDA_CLANG="$(usex cuda "$(usex clang)")" # Use clang instead of nvcc to compile the CUDA tests
-
- -DEIGEN_TEST_HIP="$(usex hip)" # Add HIP support.
-
- # -DEIGEN_TEST_SYCL=no # Add Sycl support.
- # -DEIGEN_SYCL_TRISYCL=no # Use the triSYCL Sycl implementation (ComputeCPP by default).
- )
-
- if use cuda; then
- cuda_add_sandbox -w
- if use clang; then
- local llvm_prefix
- llvm_prefix="$(get_llvm_prefix -b)"
- export CC="${llvm_prefix}/bin/clang"
- export CXX="${llvm_prefix}/bin/clang++"
- export LIBRARY_PATH="${ESYSROOT}/usr/$(get_libdir)"
- else
- cuda_set_CUDAHOSTCXX
- mycmakeargs+=(
- -DCUDA_HOST_COMPILER="${CUDAHOSTCXX}"
- )
- fi
- if [[ "${CUDA_VERBOSE}" == true ]]; then
- mycmakeargs+=(
- -DCUDA_VERBOSE_BUILD=yes
- )
- NVCCFLAGS+=" -v"
- fi
-
- export CUDAFLAGS="${NVCCFLAGS}"
-
- [[ -z "${CUDAARCHS}" ]] && einfo "trying to determine host CUDAARCHS"
- : "${CUDAARCHS:=$(__nvcc_device_query)}"
- export CUDAARCHS
-
- mycmakeargs+=(
- -DEIGEN_CUDA_COMPUTE_ARCH="${CUDAARCHS}"
- )
- fi
- fi
-
- cmake_src_configure
-}
-
-src_compile() {
- local targets=()
- if use doc; then
- targets+=( doc )
- HTML_DOCS=( "${BUILD_DIR}"/doc/html/. )
- fi
- if use test; then
- targets+=( buildtests )
- if ! use lapack; then
- targets+=( blas )
- fi
- # tests generate random data, which
- # obviously fails for some seeds
- export EIGEN_SEED=712808
- fi
-
- if use doc || use test; then
- cmake_src_compile "${targets[@]}"
- fi
-}
-
-src_test() {
- if use cuda ; then
- cuda_add_sandbox -w
- fi
-
- local myctestargs=(
- -j1 # otherwise breaks due to cmake reruns
- )
-
- cmake_src_test
-}
next reply other threads:[~2024-05-16 13:05 UTC|newest]
Thread overview: 83+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-16 13:04 Andreas Sturmlechner [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-01-23 21:56 [gentoo-commits] repo/gentoo:master commit in: dev-cpp/eigen/ Sam James
2025-01-08 21:24 Sam James
2025-01-08 21:24 Sam James
2025-01-08 21:24 Sam James
2025-01-08 21:24 Sam James
2025-01-08 21:23 Sam James
2024-11-24 10:46 Andreas Sturmlechner
2024-09-24 15:09 Arthur Zamarin
2024-07-16 23:05 Sam James
2024-04-20 14:51 Arthur Zamarin
2024-04-20 14:51 Arthur Zamarin
2024-01-21 4:02 Sam James
2024-01-20 13:10 Sam James
2023-03-03 17:48 Arthur Zamarin
2023-01-14 10:00 Arthur Zamarin
2022-12-02 18:44 WANG Xuerui
2022-01-02 8:11 Andreas Sturmlechner
2021-12-31 18:12 Arthur Zamarin
2021-12-19 22:09 Agostino Sarubbo
2021-12-19 22:06 Agostino Sarubbo
2021-12-17 16:37 Arthur Zamarin
2021-12-17 8:41 Arthur Zamarin
2021-12-17 7:56 Arthur Zamarin
2021-12-16 13:37 Andreas Sturmlechner
2021-11-14 3:23 Sam James
2021-11-05 18:02 Sam James
2021-11-05 18:02 Sam James
2021-10-05 16:47 Sam James
2021-10-05 3:01 Sam James
2021-10-02 23:17 Sam James
2021-07-02 10:12 Marek Szuba
2021-07-02 10:12 Marek Szuba
2021-06-08 7:41 Sam James
2021-05-24 2:44 Sam James
2021-05-16 18:58 Sam James
2021-05-16 18:53 Sam James
2021-05-09 22:50 Andreas Sturmlechner
2021-05-09 22:02 Andreas Sturmlechner
2021-02-19 4:16 Sam James
2021-02-19 4:14 Sam James
2020-11-20 14:19 Sam James
2020-11-14 1:48 Thomas Deutschmann
2020-10-12 11:03 Sam James
2020-10-11 21:33 Andreas Sturmlechner
2020-09-17 18:16 Sam James
2020-09-17 18:14 Sam James
2020-07-21 15:50 Andreas Sturmlechner
2020-06-19 3:23 Georgy Yakovlev
2020-03-01 18:36 Matthias Maier
2019-09-13 20:41 Andreas Sturmlechner
2019-05-14 17:53 Aaron Bauman
2019-02-17 18:07 Sergei Trofimovich
2019-01-25 10:08 Mikle Kolyada
2018-12-28 10:52 Andreas Sturmlechner
2018-12-22 14:03 Andreas Sturmlechner
2018-10-28 22:19 Andreas Sturmlechner
2018-09-10 11:36 Andreas Sturmlechner
2018-09-04 20:49 Andreas Sturmlechner
2018-03-03 9:46 Michał Górny
2018-02-01 1:34 Andreas Sturmlechner
2018-01-22 23:13 Andreas Sturmlechner
2018-01-22 22:41 Andreas Sturmlechner
2017-10-23 13:05 Michael Palimaka
2017-10-10 10:40 Michael Palimaka
2017-09-02 13:18 Michael Palimaka
2017-07-09 9:48 Alexis Ballier
2017-04-30 22:07 David Seifert
2017-04-29 16:21 Jeroen Roovers
2017-03-07 0:17 Sebastien Fabbro
2017-02-01 23:13 Matthias Maier
2017-02-01 23:13 Matthias Maier
2017-01-02 21:43 Justin Lecher
2016-11-24 16:56 Justin Lecher
2016-06-23 13:40 Michael Palimaka
2016-02-27 12:52 Jeroen Roovers
2016-02-26 14:15 Patrick Lauer
2016-02-22 6:22 Patrick Lauer
2016-02-20 15:39 Justin Lecher
2015-12-24 9:24 Justin Lecher
2015-12-24 9:24 Justin Lecher
2015-10-27 14:01 Michael Palimaka
2015-08-09 18:11 Michael Palimaka
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1715864681.4287001e86ee127e39307e405e35c42bb50c41dc.asturm@gentoo \
--to=asturm@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox