From 17cd8b6b21fc762fb49d9c23174d0bd57f11ff6d Mon Sep 17 00:00:00 2001 From: Sandro Mani Date: Oct 05 2020 14:45:04 +0000 Subject: Add eigen_assert_exception.patch --- diff --git a/eigen3.spec b/eigen3.spec index dd2bf5e..b4e185a 100644 --- a/eigen3.spec +++ b/eigen3.spec @@ -12,13 +12,16 @@ Name: eigen3 Version: 3.3.8 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A lightweight C++ template library for vector and matrix math License: MPLv2.0 and LGPLv2+ and BSD URL: http://eigen.tuxfamily.org/index.php?title=Main_Page Source0: https://gitlab.com/libeigen/eigen/-/archive/%{version}/eigen-%{version}.tar.bz2 +# Drop reference to undefined Eigen::eigen_assert_exception (FIXME??) +Patch0: eigen_assert_exception.patch + BuildRequires: %{blaslib}-devel BuildRequires: fftw-devel BuildRequires: glew-devel @@ -106,6 +109,9 @@ rm -f %{_vpath_builddir}/doc/html/unsupported/installdox %changelog +* Mon Oct 05 2020 Sandro Mani - 3.3.8-2 +- Drop reference to undefined Eigen::eigen_assert_exception + * Mon Oct 05 2020 Sandro Mani - 3.3.8-1 - Update to 3.3.8 diff --git a/eigen_assert_exception.patch b/eigen_assert_exception.patch new file mode 100644 index 0000000..8757392 --- /dev/null +++ b/eigen_assert_exception.patch @@ -0,0 +1,12 @@ +diff -rupN eigen-3.3.8/Eigen/src/Core/products/Parallelizer.h eigen-3.3.8-new/Eigen/src/Core/products/Parallelizer.h +--- eigen-3.3.8/Eigen/src/Core/products/Parallelizer.h 2020-10-05 13:24:15.000000000 +0200 ++++ eigen-3.3.8-new/Eigen/src/Core/products/Parallelizer.h 2020-10-05 16:34:48.959757073 +0200 +@@ -159,7 +159,7 @@ void parallelize_gemm(const Functor& fun + ++errorCount; + } + } +- if (errorCount) EIGEN_THROW_X(Eigen::eigen_assert_exception()); ++// if (errorCount) EIGEN_THROW_X(Eigen::eigen_assert_exception()); + #endif + } +