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 0000000000..404637e7ea --- /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 619aeb6eab..1a24909304 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() {