commit: 0d0da46122a69c1ff7541124dfc570234be64bd1 Author: Ivan Lloro <ivan.lloro.boada <AT> gmail <DOT> com> AuthorDate: Sun Aug 4 21:16:35 2024 +0000 Commit: Ivan Lloro <ivan.lloro.boada <AT> gmail <DOT> com> CommitDate: Sun Aug 4 21:27:13 2024 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=0d0da461
sci-physics/openmodelica: Add missing include statement to fix compilation issue with GCC 14 Signed-off-by: Ivan Lloro <ivan.lloro.boada <AT> gmail.com> .../files/openmodelica-1.23.1-include_algorithm.patch | 14 ++++++++++++++ sci-physics/openmodelica/openmodelica-1.23.1.ebuild | 1 + 2 files changed, 15 insertions(+) diff --git a/sci-physics/openmodelica/files/openmodelica-1.23.1-include_algorithm.patch b/sci-physics/openmodelica/files/openmodelica-1.23.1-include_algorithm.patch new file mode 100644 index 000000000..404637e7e --- /dev/null +++ b/sci-physics/openmodelica/files/openmodelica-1.23.1-include_algorithm.patch @@ -0,0 +1,14 @@ +add <algorithm> to define std::unique and std::find +Fixes compilation error with GCC 14 + +See https://github.com/OpenModelica/OMSimulator/pull/1295 +--- a/OMSimulator/src/OMSimulatorLib/Model.cpp ++++ b/OMSimulator/src/OMSimulatorLib/Model.cpp +@@ -43,6 +43,7 @@ + + #include "minizip.h" + #include <thread> ++#include <algorithm> + + oms::Model::Model(const oms::ComRef& cref, const std::string& tempDir) + : cref(cref), tempDir(tempDir), resultFilename(std::string(cref) + "_res.mat") diff --git a/sci-physics/openmodelica/openmodelica-1.23.1.ebuild b/sci-physics/openmodelica/openmodelica-1.23.1.ebuild index 619aeb6ea..1a2490930 100644 --- a/sci-physics/openmodelica/openmodelica-1.23.1.ebuild +++ b/sci-physics/openmodelica/openmodelica-1.23.1.ebuild @@ -85,6 +85,7 @@ DEPEND="${RDEPEND}" PATCHES=( "${FILESDIR}"/"${P}"-raw_strings.patch + "${FILESDIR}"/"${P}"-include_algorithm.patch ) src_unpack() {
