[packages/eigen3] - up to 5.0.1
baggins
baggins at pld-linux.org
Wed Nov 11 10:15:40 CET 2026
commit 973095ac7a70095bdb6c860765e895500a310f1d
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Wed Nov 11 10:15:28 2026 +0100
- up to 5.0.1
cmake.patch | 15 ++++++++++++++
eigen3-cxx20-this-capture.patch | 44 -----------------------------------------
eigen3.spec | 11 +++++++----
3 files changed, 22 insertions(+), 48 deletions(-)
---
diff --git a/eigen3.spec b/eigen3.spec
index c6c9b7a..95fbe92 100644
--- a/eigen3.spec
+++ b/eigen3.spec
@@ -6,14 +6,14 @@
Summary: C++ template library for linear algebra
Summary(pl.UTF-8): Biblioteka szablonów C++ do algebry liniowej
Name: eigen3
-Version: 3.4.1
-Release: 2
+Version: 5.0.1
+Release: 1
License: MPL v2.0 with LGPL v2.1+ parts
Group: Development/Libraries
#Source0Download: https://libeigen.gitlab.io/
Source0: https://gitlab.com/libeigen/eigen/-/archive/%{version}/eigen-%{version}.tar.bz2
-# Source0-md5: e066eafde28de575ed6530a5ecb06462
-Patch0: %{name}-cxx20-this-capture.patch
+# Source0-md5: 457323cbf3688f52b3623c0aa85044b7
+Patch0: cmake.patch
URL: https://libeigen.gitlab.io/
BuildRequires: cmake >= 3.10.0
%{?with_gdb:BuildRequires: python3-modules >= 1:3.2}
@@ -94,6 +94,9 @@ install -d build
cd build
# CMakeLists.txt requires CMAKE_INSTALL_INCLUDEDIR to be relative (for proper .pc file generation)
%cmake .. \
+ -DEIGEN_TEST_NOQT=ON \
+ -DEIGEN_TEST_SYCL=OFF \
+ -DEIGEN_TEST_CXX11=ON \
-DEIGEN_BUILD_BLAS=OFF \
-DEIGEN_BUILD_LAPACK=OFF \
-DCMAKE_CXX_COMPILER_WORKS=1 \
diff --git a/cmake.patch b/cmake.patch
new file mode 100644
index 0000000..2c7339e
--- /dev/null
+++ b/cmake.patch
@@ -0,0 +1,15 @@
+--- eigen-5.0.1/unsupported/test/CMakeLists.txt~ 2025-11-08 21:44:56.000000000 +0100
++++ eigen-5.0.1/unsupported/test/CMakeLists.txt 2026-11-11 10:10:42.051605913 +0100
+@@ -68,11 +68,7 @@
+ if(FFTW_FOUND)
+ ei_add_property(EIGEN_TESTED_BACKENDS "fftw, ")
+ include_directories( ${FFTW_INCLUDES} )
+- if(FFTWL_LIB)
+- ei_add_test(FFTW "-DEIGEN_HAS_FFTWL" "${FFTW_LIBRARIES}" )
+- else()
+- ei_add_test(FFTW "${FFTW_LIBRARIES}" )
+- endif()
++ ei_add_test(FFTW "-DEIGEN_HAS_FFTWL" "${FFTW_LIBRARIES}" )
+ else()
+ ei_add_property(EIGEN_MISSING_BACKENDS "fftw, ")
+ endif()
diff --git a/eigen3-cxx20-this-capture.patch b/eigen3-cxx20-this-capture.patch
deleted file mode 100644
index a7ee8e3..0000000
--- a/eigen3-cxx20-this-capture.patch
+++ /dev/null
@@ -1,44 +0,0 @@
-Member-function lambdas capturing this implicitly through [=] are deprecated in
-C++20 and fail consumers building with -Werror=deprecated (onnxruntime). Upstream
-3.4 branch past 3.4.1 already spells the captures out; same change, minimal form.
-
---- eigen-3.4.1/unsupported/Eigen/CXX11/src/Tensor/TensorContractionThreadPool.h.orig 2025-09-30 01:25:14.000000000 +0200
-+++ eigen-3.4.1/unsupported/Eigen/CXX11/src/Tensor/TensorContractionThreadPool.h 2026-09-20 21:57:10.394768287 +0200
-@@ -1006,7 +1006,7 @@
- } else {
- eigen_assert(!use_thread_local);
- device_.enqueueNoNotification(
-- [=]() { kernel(m, n, k, use_thread_local); });
-+ [this, m, n, k, use_thread_local]() { kernel(m, n, k, use_thread_local); });
- }
- }
-
-@@ -1060,7 +1060,7 @@
- while (end - start > 1) {
- Index mid = (start + end) / 2;
- device_.enqueueNoNotification(
-- [=]() { enqueue_packing_helper(mid, end, k, rhs); });
-+ [this, mid, end, k, rhs]() { enqueue_packing_helper(mid, end, k, rhs); });
- end = mid;
- }
-
-@@ -1079,7 +1079,7 @@
-
- if (pack_async) {
- device_.enqueueNoNotification(
-- [=]() { enqueue_packing_helper(start, end, k, rhs); });
-+ [this, start, end, k, rhs]() { enqueue_packing_helper(start, end, k, rhs); });
- } else {
- enqueue_packing_helper(start, end, k, rhs);
- }
---- eigen-3.4.1/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h.orig 2025-09-30 01:25:14.000000000 +0200
-+++ eigen-3.4.1/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h 2026-09-20 21:57:10.395388483 +0200
-@@ -207,7 +207,7 @@
- // block_count leaves that do actual computations.
- Barrier barrier(static_cast<unsigned int>(block.count));
- std::function<void(Index, Index)> handleRange;
-- handleRange = [=, &handleRange, &barrier, &f](Index firstIdx,
-+ handleRange = [this, block, &handleRange, &barrier, &f](Index firstIdx,
- Index lastIdx) {
- while (lastIdx - firstIdx > block.size) {
- // Split into halves and schedule the second half on a different thread.
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/eigen3.git/commitdiff/973095ac7a70095bdb6c860765e895500a310f1d
More information about the pld-cvs-commit
mailing list