From 4a022613b821558c9877843cc45587d12f339bc2 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Tue, 8 Jul 2025 17:45:58 -0700 Subject: [PATCH] sumo: update to 1.23.1 Remove no longer needed GCC14 patch. Make python optional. It's not used anyway. Signed-off-by: Rosen Penev --- utils/sumo/Makefile | 7 ++++--- utils/sumo/patches/010-gtest.patch | 2 +- utils/sumo/patches/020-gcc14.patch | 11 ----------- utils/sumo/patches/020-python.patch | 11 +++++++++++ 4 files changed, 16 insertions(+), 15 deletions(-) delete mode 100644 utils/sumo/patches/020-gcc14.patch create mode 100644 utils/sumo/patches/020-python.patch diff --git a/utils/sumo/Makefile b/utils/sumo/Makefile index b2143bfc36..01ce97ee14 100644 --- a/utils/sumo/Makefile +++ b/utils/sumo/Makefile @@ -8,12 +8,12 @@ include $(TOPDIR)/rules.mk PKG_NAME:=sumo -PKG_VERSION:=1.16.0 +PKG_VERSION:=1.23.1 PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)-src-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=@SF/sumo -PKG_HASH:=33694b554a8c661ec407d04cc7c6534c473ccb2fbe7bf2ea97e1faddc70654fa +PKG_HASH:=016c506d8bd5d0b6f8e2229ac5dbb9e948535a041559cdd2ff6b616293ac21a8 PKG_MAINTAINER:=Álvaro Fernández Rojas PKG_LICENSE:=GPL-3.0-or-later @@ -40,7 +40,8 @@ define Package/sumo/description endef CMAKE_OPTIONS += \ - -DCCACHE_SUPPORT=OFF + -DCCACHE_SUPPORT=OFF \ + -DENABLE_PYTHON_BINDINGS=OFF define Package/sumo/install $(INSTALL_DIR) $(1)/usr/bin diff --git a/utils/sumo/patches/010-gtest.patch b/utils/sumo/patches/010-gtest.patch index a3ebc1307d..21e2b8771b 100644 --- a/utils/sumo/patches/010-gtest.patch +++ b/utils/sumo/patches/010-gtest.patch @@ -1,6 +1,6 @@ --- a/CMakeLists.txt +++ b/CMakeLists.txt -@@ -303,7 +303,6 @@ if (SUMO_LIBRARIES AND WIN32) +@@ -366,7 +366,6 @@ if (SUMO_LIBRARIES AND WIN32) file(GLOB TEXTTEST_EXECUTABLE "${SUMO_LIBRARIES}/TextTest-*/texttest.exe") else () # for Linux and Mac only diff --git a/utils/sumo/patches/020-gcc14.patch b/utils/sumo/patches/020-gcc14.patch deleted file mode 100644 index 682a78331d..0000000000 --- a/utils/sumo/patches/020-gcc14.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- 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* const trip) const { -- return myLength / trip->getMaxSpeed(); -+ return trip ? myLength / trip->getMaxSpeed() : myLength; - } - - /// @brief only used by mono-modal routing diff --git a/utils/sumo/patches/020-python.patch b/utils/sumo/patches/020-python.patch new file mode 100644 index 0000000000..743c498ac5 --- /dev/null +++ b/utils/sumo/patches/020-python.patch @@ -0,0 +1,11 @@ +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -197,7 +197,7 @@ if (SKBUILD OR ${CMAKE_VERSION} VERSION_ + find_package(PythonInterp REQUIRED) + find_package(PythonLibs) + else() +- find_package(Python REQUIRED COMPONENTS Interpreter Development) ++ find_package(Python COMPONENTS Interpreter Development) + # define variables for compatibility. refactor once older cmake unsupported + if (Python_FOUND) + set(PYTHONLIBS_FOUND ${Python_FOUND}) -- 2.30.2