Add patch for GCC14.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
include $(TOPDIR)/rules.mk
PKG_NAME:=sumo
-PKG_VERSION:=1.12.0
+PKG_VERSION:=1.16.0
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-src-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=@SF/sumo
-PKG_HASH:=163dd6f7ed718e2a30630be3d2ac2ddfc4abce24750ed7f4efce879a3ae9447e
+PKG_HASH:=33694b554a8c661ec407d04cc7c6534c473ccb2fbe7bf2ea97e1faddc70654fa
PKG_MAINTAINER:=Álvaro Fernández Rojas <noltari@gmail.com>
PKG_LICENSE:=GPL-3.0-or-later
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
-@@ -270,7 +270,6 @@ if (SUMO_LIBRARIES AND WIN32)
+@@ -303,7 +303,6 @@ if (SUMO_LIBRARIES AND WIN32)
file(GLOB TEXTTEST_EXECUTABLE "${SUMO_LIBRARIES}/TextTest-*/texttest.exe")
else ()
# for Linux and Mac only
--- /dev/null
+--- a/src/utils/router/IntermodalEdge.h
++++ b/src/utils/router/IntermodalEdge.h
+@@ -232,7 +232,7 @@ public:
+
+ // only used by AStar
+ inline double getMinimumTravelTime(const IntermodalTrip<E, N, V>* const trip) const {
+- return myLength / trip->getMaxSpeed();
++ return trip ? myLength / trip->getMaxSpeed() : myLength;
+ }
+
+ /// @brief only used by mono-modal routing