commit: 119cc91fa05a25f38e1416c6b322356151e3874a Author: Filip Kobierski <fkobi <AT> pm <DOT> me> AuthorDate: Sat Dec 21 17:20:22 2024 +0000 Commit: Amy Liffey <amynka <AT> gentoo <DOT> org> CommitDate: Wed Sep 24 18:58:03 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=119cc91f
sci-mathematics/gmm: add 5.4.2-r1 with improvements - do not force -O3 - https HOMEPAGE - fix variable order Closes: https://github.com/gentoo/gentoo/pull/39811 Signed-off-by: Filip Kobierski <fkobi <AT> pm.me> Signed-off-by: Amy Liffey <amynka <AT> gentoo.org> .../gmm/files/gmm-5.4.2_do-not-overoptimize.patch | 24 ++++++++++++++++++++++ sci-mathematics/gmm/gmm-5.4.2-r1.ebuild | 14 +++++++++++++ 2 files changed, 38 insertions(+) diff --git a/sci-mathematics/gmm/files/gmm-5.4.2_do-not-overoptimize.patch b/sci-mathematics/gmm/files/gmm-5.4.2_do-not-overoptimize.patch new file mode 100644 index 000000000000..86fd13de67c7 --- /dev/null +++ b/sci-mathematics/gmm/files/gmm-5.4.2_do-not-overoptimize.patch @@ -0,0 +1,24 @@ +From: Filip Kobierski <[email protected]> + +This patches removes -O3 for g++ and unknown compilers. + +Bug: https://bugs.gentoo.org/886443 +--- a/configure.ac ++++ b/configure.ac +@@ -115,7 +115,7 @@ + WSHADOW="-Wshadow" + ;; + esac +- CXXFLAGS="$CXXFLAGS -ftemplate-depth-40 -pedantic -O3 -Wall -W $WSHADOW -Wpointer-arith -Wcast-qual -Wwrite-strings -Wconversion -Wredundant-decls -Wno-long-long" ++ CXXFLAGS="$CXXFLAGS -ftemplate-depth-40 -pedantic -Wall -W $WSHADOW -Wpointer-arith -Wcast-qual -Wwrite-strings -Wconversion -Wredundant-decls -Wno-long-long" + ;; + icc | icpc) + echo "Using INTEL icc" +@@ -125,7 +125,6 @@ + ;; + *) + echo "Using a unknown compiler" +- CXXFLAGS="$CXXFLAGS -O3" + ;; + esac + diff --git a/sci-mathematics/gmm/gmm-5.4.2-r1.ebuild b/sci-mathematics/gmm/gmm-5.4.2-r1.ebuild new file mode 100644 index 000000000000..6e841fdad11f --- /dev/null +++ b/sci-mathematics/gmm/gmm-5.4.2-r1.ebuild @@ -0,0 +1,14 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="Generic C++ template library for sparse, dense and skyline matrices" +HOMEPAGE="https://getfem.org/gmm.html" +SRC_URI="mirror://nongnu/getfem/stable/${P}.tar.gz" + +LICENSE="|| ( LGPL-3 LGPL-3-with-linking-exception )" +SLOT="0" +KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux" + +PATCHES=( "${FILESDIR}"/${PN}-5.4.2_do-not-overoptimize.patch )
