From 0d0da46122a69c1ff7541124dfc570234be64bd1 Mon Sep 17 00:00:00 2001 From: Ivan Lloro Date: Sun, 4 Aug 2024 23:16:35 +0200 Subject: sci-physics/openmodelica: Add missing include statement to fix compilation issue with GCC 14 Signed-off-by: Ivan Lloro --- .../files/openmodelica-1.23.1-include_algorithm.patch | 14 ++++++++++++++ sci-physics/openmodelica/openmodelica-1.23.1.ebuild | 1 + 2 files changed, 15 insertions(+) create mode 100644 sci-physics/openmodelica/files/openmodelica-1.23.1-include_algorithm.patch (limited to 'sci-physics') 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 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 ++#include + + 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() { -- cgit v1.2.3-65-gdbad