From 68304c9a0c6b1222cc56d8b39565c3baa67f31fd Mon Sep 17 00:00:00 2001 From: Jia Yue Hua <3423893+jiayuehua@users.noreply.github.com> Date: Fri, 11 Oct 2024 22:38:55 +0800 Subject: [PATCH] [nanopb] update to 0.4.9 (#41469) --- ports/nanopb/fix-cmakelist.patch | 13 +++++++------ ports/nanopb/portfile.cmake | 2 +- ports/nanopb/vcpkg.json | 3 +-- versions/baseline.json | 4 ++-- versions/n-/nanopb.json | 5 +++++ 5 files changed, 16 insertions(+), 11 deletions(-) diff --git a/ports/nanopb/fix-cmakelist.patch b/ports/nanopb/fix-cmakelist.patch index 9bbb4b8092..99bebfe57c 100644 --- a/ports/nanopb/fix-cmakelist.patch +++ b/ports/nanopb/fix-cmakelist.patch @@ -1,12 +1,13 @@ diff --git a/CMakeLists.txt b/CMakeLists.txt -index 273a841..02fb40c 100644 +index 301501d..c7e8e42 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt -@@ -16,11 +16,6 @@ option(nanopb_MSVC_STATIC_RUNTIME "Link static runtime libraries" ON) +@@ -16,12 +16,6 @@ option(nanopb_MSVC_STATIC_RUNTIME "Link static runtime libraries" ON) set(nanopb_PYTHON_INSTDIR_OVERRIDE "" CACHE PATH "Override the default python installation directory with the given path") --find_program(nanopb_PROTOC_PATH protoc HINTS generator-bin generator) +-find_program(nanopb_PROTOC_PATH protoc PATHS generator-bin generator NO_DEFAULT_PATH) +-find_program(nanopb_PROTOC_PATH protoc) -if(NOT EXISTS ${nanopb_PROTOC_PATH}) - message(FATAL_ERROR "protoc compiler not found") -endif() @@ -14,7 +15,7 @@ index 273a841..02fb40c 100644 if(NOT DEFINED CMAKE_DEBUG_POSTFIX) set(CMAKE_DEBUG_POSTFIX "d") endif() -@@ -43,7 +38,6 @@ endif() +@@ -44,7 +38,6 @@ endif() # Determine Python module installation path if (NOT nanopb_PYTHON_INSTDIR_OVERRIDE) @@ -22,7 +23,7 @@ index 273a841..02fb40c 100644 file(TO_CMAKE_PATH "${Python_SITELIB}" PYTHON_INSTDIR) else() set(PYTHON_INSTDIR ${nanopb_PYTHON_INSTDIR_OVERRIDE}) -@@ -53,6 +47,10 @@ message(STATUS "Python install dir: ${PYTHON_INSTDIR}") +@@ -54,6 +47,10 @@ message(STATUS "Python install dir: ${PYTHON_INSTDIR}") # Package nanopb generator as Python module 'nanopb' if(nanopb_BUILD_GENERATOR) # Copy Python code files related to the generator @@ -33,7 +34,7 @@ index 273a841..02fb40c 100644 add_custom_target(nanopb_generator ALL COMMAND ${CMAKE_COMMAND} -E make_directory ${PROJECT_BINARY_DIR}/nanopb/generator/proto -@@ -82,24 +80,14 @@ if(nanopb_BUILD_GENERATOR) +@@ -83,24 +80,14 @@ if(nanopb_BUILD_GENERATOR) # Install Python module files install( diff --git a/ports/nanopb/portfile.cmake b/ports/nanopb/portfile.cmake index d2fa1c6cc3..efbe880b12 100644 --- a/ports/nanopb/portfile.cmake +++ b/ports/nanopb/portfile.cmake @@ -4,7 +4,7 @@ vcpkg_from_github( OUT_SOURCE_PATH SOURCE_PATH REPO nanopb/nanopb REF ${VERSION} - SHA512 635577498dfbfb46fd64b8ec83b2a4a9b03b57c665f3c9f67d35c272810c0330b0e9011d7c0e43623e9da74d6ee3a4c1f012878e2bff7e1a7e57fb7c0857ad42 + SHA512 13b395e5bd5a356119a0139a5b3cb13aa821f9077a311714b88b71bd12b9b633f4158b09b5628eda39c90e52d3b78bf51314f16bc0e15621e43b09392049a284 HEAD_REF master PATCHES fix-cmakelist.patch diff --git a/ports/nanopb/vcpkg.json b/ports/nanopb/vcpkg.json index 3e836f62c1..c366165d61 100644 --- a/ports/nanopb/vcpkg.json +++ b/ports/nanopb/vcpkg.json @@ -1,7 +1,6 @@ { "name": "nanopb", - "version-semver": "0.4.8", - "port-version": 1, + "version-semver": "0.4.9", "description": "A small code-size Protocol Buffers implementation in ANSI C.", "homepage": "https://jpa.kapsi.fi/nanopb/", "license": "Zlib", diff --git a/versions/baseline.json b/versions/baseline.json index b6a2cfa718..d5377325d1 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -6193,8 +6193,8 @@ "port-version": 2 }, "nanopb": { - "baseline": "0.4.8", - "port-version": 1 + "baseline": "0.4.9", + "port-version": 0 }, "nanoprintf": { "baseline": "0.3.4", diff --git a/versions/n-/nanopb.json b/versions/n-/nanopb.json index 106481635e..e5ecd9292e 100644 --- a/versions/n-/nanopb.json +++ b/versions/n-/nanopb.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "1f5737c00d41a894367cab2acb6ef934043fcd8e", + "version-semver": "0.4.9", + "port-version": 0 + }, { "git-tree": "08dcb204cd192ab2022b8d2f1f84cf480db0fb44", "version-semver": "0.4.8",