git: 103dc9c43f8a - main - misc/py-onnxruntime: update 1.30.0 → 1.31.0

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Sun, 18 Oct 2026 08:49:49 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=103dc9c43f8a098006cede30a4b74629e3f648da

commit 103dc9c43f8a098006cede30a4b74629e3f648da
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2026-10-18 07:27:17 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2026-10-18 08:49:45 +0000

    misc/py-onnxruntime: update 1.30.0 → 1.31.0
---
 misc/py-onnxruntime/Makefile                       |  2 +-
 misc/py-onnxruntime/Makefile.DISTFILES             | 14 +++----
 misc/py-onnxruntime/distinfo                       | 30 +++++++-------
 ...make_external_onnxruntime__external__deps.cmake | 47 +++++++++-------------
 4 files changed, 42 insertions(+), 51 deletions(-)

diff --git a/misc/py-onnxruntime/Makefile b/misc/py-onnxruntime/Makefile
index 7355487fa941..673958c5c44b 100644
--- a/misc/py-onnxruntime/Makefile
+++ b/misc/py-onnxruntime/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	onnxruntime
 DISTVERSIONPREFIX=	v
-DISTVERSION=	1.30.0
+DISTVERSION=	1.31.0
 CATEGORIES=	misc # machine-learning
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 DIST_SUBDIR=	${PORTNAME}
diff --git a/misc/py-onnxruntime/Makefile.DISTFILES b/misc/py-onnxruntime/Makefile.DISTFILES
index 6e90935c9b88..c1ff6bf62a01 100644
--- a/misc/py-onnxruntime/Makefile.DISTFILES
+++ b/misc/py-onnxruntime/Makefile.DISTFILES
@@ -1,6 +1,6 @@
 DISTFILES=	\
 		20250814.0.zip:abseil_cpp \
-		7.1.zip:coremltools \
+		9.0.zip:coremltools \
 		3c73d91c0b04e2b59462f0a741be8c07024c1bc0.zip:cxxopts \
 		v3.0.1.zip:date \
 		5c210da409e7f1e51ddf445134a4376fdbd70d7d.zip:dlpack \
@@ -8,7 +8,7 @@ DISTFILES=	\
 		v23.5.26.zip:flatbuffers \
 		0a92994d729ff76a58f692d3028ca1b64b145d91.zip:fp16 \
 		63058eff77e11aa15bf531df5dd34395ec3017c8.zip:fxdiv \
-		v1.8.5.zip:google_benchmark \
+		v1.9.5.zip:google_benchmark \
 		v1.17.0.zip:googletest \
 		3cf85e705098622d59056dcb8f5f963ea7bb0a00.zip:googlexnnpack \
 		v3.11.3.zip:json \
@@ -37,11 +37,11 @@ DISTFILES=	\
 		c24b7bab0c12f53da76d0c31b03b9f0f8ec8f3b4.zip:extensions \
 		v1.613.1.zip:directx_headers \
 		v1.27.0.zip:cudnn_frontend \
-		v20260818.211311.zip:dawn \
-		1.721.0-preview:dawn_agility_sdk \
-		v1.20.0.tar.gz:kleidiai \
-		2f10c9a8d32f81ffeeb6d4885a29cc35d2b0da87.zip:kleidiai_qmx \
+		v20260916.214021.zip:dawn \
+		1.721.3-preview:dawn_agility_sdk \
+		v1.30.0.tar.gz:kleidiai \
+		2f10c9a8d32f81ffeeb6d4885a29cc35d2b0da87.zip:kleidiai-qmx \
 		v1.4.344:vulkan_headers \
-		v3.10.173.1.zip:cpp_client_telemetry \
+		v3.10.279.1.zip:cpp_client_telemetry \
 		curl-8.21.0.tar.xz:curl \
 		mbedtls-3.6.7.tar.bz2:mbedtls \
diff --git a/misc/py-onnxruntime/distinfo b/misc/py-onnxruntime/distinfo
index 4368e9251f4a..bad44da4afae 100644
--- a/misc/py-onnxruntime/distinfo
+++ b/misc/py-onnxruntime/distinfo
@@ -1,8 +1,8 @@
-TIMESTAMP = 1790093436
+TIMESTAMP = 1792307624
 SHA256 (onnxruntime/20250814.0.zip) = b2bdcf6682d8cb53df365bcc5d6c318a22e55821d9978a10fdb61404c026daff
 SIZE (onnxruntime/20250814.0.zip) = 3194036
-SHA256 (onnxruntime/7.1.zip) = a9a95d3b3d1cbf9b9e00c145bcae4050f89042dc5b777635421dcdaf85010890
-SIZE (onnxruntime/7.1.zip) = 20043908
+SHA256 (onnxruntime/9.0.zip) = 326b5ee99dae22fb294a40d04096174b1ee287f9193bd9fbeb23deae60a126c7
+SIZE (onnxruntime/9.0.zip) = 30459932
 SHA256 (onnxruntime/3c73d91c0b04e2b59462f0a741be8c07024c1bc0.zip) = 57b5f012372d4c0e0a975b2e534e9af647cd20530fc72f73a75a61e05e0f997e
 SIZE (onnxruntime/3c73d91c0b04e2b59462f0a741be8c07024c1bc0.zip) = 98330
 SHA256 (onnxruntime/v3.0.1.zip) = f4300b96f7a304d4ef9bf6e0fa3ded72159f7f2d0f605bdde3e030a0dba7cf9f
@@ -17,8 +17,8 @@ SHA256 (onnxruntime/0a92994d729ff76a58f692d3028ca1b64b145d91.zip) = e66e65515fa0
 SIZE (onnxruntime/0a92994d729ff76a58f692d3028ca1b64b145d91.zip) = 91373
 SHA256 (onnxruntime/63058eff77e11aa15bf531df5dd34395ec3017c8.zip) = 3d7b0e9c4c658a84376a1086126be02f9b7f753caa95e009d9ac38d11da444db
 SIZE (onnxruntime/63058eff77e11aa15bf531df5dd34395ec3017c8.zip) = 16646
-SHA256 (onnxruntime/v1.8.5.zip) = 39f57865cdbfa06f02ae91ea76465246046cc47d5908aa5a3abeb9026fb73dcc
-SIZE (onnxruntime/v1.8.5.zip) = 327614
+SHA256 (onnxruntime/v1.9.5.zip) = 68c9c65cee4864db42c3af9ff5b5cfa32ce1b01d9653136c5f4ff96e18a9b8f2
+SIZE (onnxruntime/v1.9.5.zip) = 347679
 SHA256 (onnxruntime/v1.17.0.zip) = 40d4ec942217dcc84a9ebe2a68584ada7d4a33a8ee958755763278ea1c5e18ff
 SIZE (onnxruntime/v1.17.0.zip) = 1114942
 SHA256 (onnxruntime/3cf85e705098622d59056dcb8f5f963ea7bb0a00.zip) = e4af7bc17f1e0bce0e83098af24c3c3c2ade70351c2e29318aff1404a8974544
@@ -75,24 +75,24 @@ SHA256 (onnxruntime/v1.613.1.zip) = c356d242e63f6c8e6fa8dec01f7d526b172621f0f668
 SIZE (onnxruntime/v1.613.1.zip) = 472978
 SHA256 (onnxruntime/v1.27.0.zip) = 0190120bfc8b1f8288c19beffa5a21af643650d6f65e8bad89ab5d7ed74f4273
 SIZE (onnxruntime/v1.27.0.zip) = 9842175
-SHA256 (onnxruntime/v20260818.211311.zip) = 1be7cfe31af3bc3e99bfbb98b845fc523fff8f5807f20f3372d33a8626b0fdda
-SIZE (onnxruntime/v20260818.211311.zip) = 84329853
-SHA256 (onnxruntime/1.721.0-preview) = 857bfb52a3ae5b05510e1504a8e8b3df3209e02022a1641004de13f18f2d982f
-SIZE (onnxruntime/1.721.0-preview) = 35307550
-SHA256 (onnxruntime/v1.20.0.tar.gz) = e4b84c369f0f39af1660ac71c30f74038d4b89e1f20dde070bb96398382a111f
-SIZE (onnxruntime/v1.20.0.tar.gz) = 2372189
+SHA256 (onnxruntime/v20260916.214021.zip) = 507949fd45d7ca0cfc672617fd1e06ee02ce23c4f32856b342c48133e71d682e
+SIZE (onnxruntime/v20260916.214021.zip) = 84407897
+SHA256 (onnxruntime/1.721.3-preview) = 0131bce1e4bace3fc08c03018c29a09ede2570b263721c6449b0ec75762ab22d
+SIZE (onnxruntime/1.721.3-preview) = 35353560
+SHA256 (onnxruntime/v1.30.0.tar.gz) = a5b3a7195b5302d3d68a067e19db63e663f9dfc8d19b46bd5253a68a7b8f1247
+SIZE (onnxruntime/v1.30.0.tar.gz) = 4525173
 SHA256 (onnxruntime/2f10c9a8d32f81ffeeb6d4885a29cc35d2b0da87.zip) = ee43dee0fac9a641f87285fa357c5db3849aa7a4955e86f6818390313e610e5e
 SIZE (onnxruntime/2f10c9a8d32f81ffeeb6d4885a29cc35d2b0da87.zip) = 2994473
 SHA256 (onnxruntime/v1.4.344) = 88b86b441eed931fb4cba595aff46fbb14177d72274c1554411d6bbd2117e86f
 SIZE (onnxruntime/v1.4.344) = 3018460
-SHA256 (onnxruntime/v3.10.173.1.zip) = 854e774b6d2c87e7a233b1c3c71dcf89ef009b8ff4ae38d30132802d44ddbe02
-SIZE (onnxruntime/v3.10.173.1.zip) = 23978560
+SHA256 (onnxruntime/v3.10.279.1.zip) = ef150addc9c39843dda24b0e1905cf0d52ea5871beee11949f1c6bd093c59571
+SIZE (onnxruntime/v3.10.279.1.zip) = 24105530
 SHA256 (onnxruntime/curl-8.21.0.tar.xz) = aa1b66a70eace83dc624508745646c08ae561de512ab403adffb93ac87fc72e6
 SIZE (onnxruntime/curl-8.21.0.tar.xz) = 2882336
 SHA256 (onnxruntime/mbedtls-3.6.7.tar.bz2) = a7e8bcbec0e6f761b4af24f25677626b35f762f68eef79c08677a363212d11f6
 SIZE (onnxruntime/mbedtls-3.6.7.tar.bz2) = 5473689
-SHA256 (onnxruntime/microsoft-onnxruntime-v1.30.0_GH0.tar.gz) = f6681ecbddf53898adf0cc9e8e9e84657485b84d2eca3c8aa353de6d7dd417ef
-SIZE (onnxruntime/microsoft-onnxruntime-v1.30.0_GH0.tar.gz) = 278619110
+SHA256 (onnxruntime/microsoft-onnxruntime-v1.31.0_GH0.tar.gz) = a7e84230b5d509e48fbd6b73c2453a56345ccb22da34a46dac1f0cb4a2d6507b
+SIZE (onnxruntime/microsoft-onnxruntime-v1.31.0_GH0.tar.gz) = 280355422
 SHA256 (onnxruntime/emscripten-core-emsdk-0742117_GH0.tar.gz) = ebd5a51e31742e6ae1d11271bd5d84c2083623b746b98ef5b32adf6e223d48b8
 SIZE (onnxruntime/emscripten-core-emsdk-0742117_GH0.tar.gz) = 114343
 SHA256 (onnxruntime/google-libprotobuf-mutator-7a2ed51a6b682a83e345ff49fc4cfd7ca47550db_GH0.tar.gz) = d51365191580c4bf5e9ff104eebcfe34f7ff5f471006d7a460c15dcb3657501c
diff --git a/misc/py-onnxruntime/files/patch-cmake_external_onnxruntime__external__deps.cmake b/misc/py-onnxruntime/files/patch-cmake_external_onnxruntime__external__deps.cmake
index 51f450f82a76..7f0c6faa7656 100644
--- a/misc/py-onnxruntime/files/patch-cmake_external_onnxruntime__external__deps.cmake
+++ b/misc/py-onnxruntime/files/patch-cmake_external_onnxruntime__external__deps.cmake
@@ -3,9 +3,9 @@
 -- targets like absl::if_constexpr and utf8_range::utf8_range that are
 -- not provided by the bundled dependencies and break the build.
 
---- cmake/external/onnxruntime_external_deps.cmake.orig	2026-09-10 06:09:41 UTC
+--- cmake/external/onnxruntime_external_deps.cmake.orig	2026-10-08 21:06:05 UTC
 +++ cmake/external/onnxruntime_external_deps.cmake
-@@ -186,10 +186,10 @@ if(Patch_FOUND)
+@@ -188,10 +188,10 @@ if(Patch_FOUND)
  #   for cross-compiling
  #2. if ONNX_CUSTOM_PROTOC_EXECUTABLE is not set, Compile everything(including protoc) from source code.
  if(Patch_FOUND)
@@ -20,7 +20,7 @@
  else()
   set(ONNXRUNTIME_PROTOBUF_PATCH_COMMAND "")
  endif()
-@@ -201,7 +201,6 @@ onnxruntime_fetchcontent_declare(
+@@ -203,7 +203,6 @@ onnxruntime_fetchcontent_declare(
    URL_HASH SHA1=${DEP_SHA1_protobuf}
    PATCH_COMMAND ${ONNXRUNTIME_PROTOBUF_PATCH_COMMAND}
    EXCLUDE_FROM_ALL
@@ -28,7 +28,7 @@
  )
  
  set(protobuf_BUILD_TESTS OFF CACHE BOOL "Build protobuf tests" FORCE)
-@@ -277,7 +276,7 @@ onnxruntime_fetchcontent_declare(
+@@ -279,7 +278,7 @@ onnxruntime_fetchcontent_declare(
    URL_HASH SHA1=${DEP_SHA1_date}
    EXCLUDE_FROM_ALL
    PATCH_COMMAND
@@ -37,7 +37,7 @@
    FIND_PACKAGE_ARGS 3...<4 NAMES date
  )
  onnxruntime_fetchcontent_makeavailable(date)
-@@ -378,7 +377,7 @@ if (CPUINFO_SUPPORTED)
+@@ -380,7 +379,7 @@ if (CPUINFO_SUPPORTED)
            # https://github.com/pytorch/cpuinfo/pull/324
            ${Patch_EXECUTABLE} -p1 < ${PROJECT_SOURCE_DIR}/patches/cpuinfo/patch_vcpkg_arm64ec_support.patch &&
            # https://github.com/pytorch/cpuinfo/pull/400
@@ -46,7 +46,7 @@
            ${PROJECT_SOURCE_DIR}/patches/cpuinfo/enable_deinit_refcounting.patch
        )
      elseif(CMAKE_SYSTEM_NAME STREQUAL "Linux")
-@@ -392,7 +391,7 @@ if (CPUINFO_SUPPORTED)
+@@ -394,7 +393,7 @@ if (CPUINFO_SUPPORTED)
            # https://github.com/microsoft/onnxruntime/issues/10038
            ${Patch_EXECUTABLE} -p1 < ${PROJECT_SOURCE_DIR}/patches/cpuinfo/fix_missing_sysfs_fallback.patch &&
            # https://github.com/pytorch/cpuinfo/pull/400
@@ -55,7 +55,7 @@
            ${PROJECT_SOURCE_DIR}/patches/cpuinfo/enable_deinit_refcounting.patch
        )
      else()
-@@ -403,7 +402,7 @@ if (CPUINFO_SUPPORTED)
+@@ -405,7 +404,7 @@ if (CPUINFO_SUPPORTED)
          EXCLUDE_FROM_ALL
          PATCH_COMMAND
            # https://github.com/pytorch/cpuinfo/pull/400
@@ -64,7 +64,7 @@
            ${PROJECT_SOURCE_DIR}/patches/cpuinfo/enable_deinit_refcounting.patch
        )
      endif()
-@@ -421,7 +420,7 @@ onnxruntime_fetchcontent_declare(
+@@ -423,7 +422,7 @@ onnxruntime_fetchcontent_declare(
    URL_HASH SHA1=${DEP_SHA1_microsoft_gsl}
    # Stringify fix for GSL_SUPPRESS on MSVC (C4875). Remove when GSL ships a release
    # containing microsoft/GSL#1213 (commit 543d0dd).
@@ -73,7 +73,7 @@
    EXCLUDE_FROM_ALL
    FIND_PACKAGE_ARGS 4.0 NAMES Microsoft.GSL
  )
-@@ -466,7 +465,7 @@ if(Patch_FOUND)
+@@ -468,7 +467,7 @@ if(Patch_FOUND)
  set(FLATBUFFERS_BUILD_FLATHASH OFF CACHE BOOL "FLATBUFFERS_BUILD_FLATHASH" FORCE)
  set(FLATBUFFERS_BUILD_FLATLIB ON CACHE BOOL "FLATBUFFERS_BUILD_FLATLIB" FORCE)
  if(Patch_FOUND)
@@ -82,7 +82,7 @@
  else()
   set(ONNXRUNTIME_FLATBUFFERS_PATCH_COMMAND "")
  endif()
-@@ -517,7 +516,7 @@ if(Patch_FOUND)
+@@ -519,7 +518,7 @@ if(Patch_FOUND)
  endif()
  
  if(Patch_FOUND)
@@ -91,7 +91,7 @@
  else()
    set(ONNXRUNTIME_ONNX_PATCH_COMMAND "")
  endif()
-@@ -543,7 +542,6 @@ onnxruntime_fetchcontent_declare(
+@@ -545,7 +544,6 @@ onnxruntime_fetchcontent_declare(
    URL_HASH SHA1=${DEP_SHA1_onnx}
    PATCH_COMMAND ${ONNXRUNTIME_ONNX_PATCH_COMMAND}
    EXCLUDE_FROM_ALL
@@ -99,7 +99,7 @@
  )
  
  onnxruntime_fetchcontent_makeavailable(onnx)
-@@ -627,7 +625,7 @@ if(onnxruntime_ENABLE_TRAINING OR (onnxruntime_ENABLE_
+@@ -671,7 +669,7 @@ if(onnxruntime_ENABLE_TRAINING OR (onnxruntime_ENABLE_
    # Once code under orttraining/orttraining/models dir is removed "onnxruntime_ENABLE_TRAINING" should be removed from
    # this conditional
    if(Patch_FOUND)
@@ -108,7 +108,7 @@
    else()
      set(ONNXRUNTIME_CXXOPTS_PATCH_COMMAND "")
    endif()
-@@ -795,20 +793,20 @@ if (onnxruntime_USE_WEBGPU)
+@@ -883,20 +881,20 @@ if (onnxruntime_USE_WEBGPU)
            #   in emwgpu implementation, the buffer destroy won't happen. This change adds a destructor to the buffer class
            #   to destroy the buffer when the refcount is 0 for non-external buffers.
            #
@@ -132,7 +132,7 @@
  
            # The dawn_device_lost_keepalive.patch contains the following changes:
            #
-@@ -818,7 +816,7 @@ if (onnxruntime_USE_WEBGPU)
+@@ -906,7 +904,7 @@ if (onnxruntime_USE_WEBGPU)
            #   was 0. This silently dropped all subsequent WebGPU callbacks (e.g. requestAdapter),
            #   breaking session re-creation after device destruction.
            #
@@ -141,16 +141,16 @@
  
            # The dawn_dxc_output_dir.patch contains the following changes:
            #
-@@ -828,7 +826,7 @@ if (onnxruntime_USE_WEBGPU)
-           #   because dxcompiler.dll ends up in the default output path instead of CMAKE_BINARY_DIR/$<CONFIG>,
-           #   and the copy_dxil_dll target copies dxil.dll to a different location.
+@@ -915,7 +913,7 @@ if (onnxruntime_USE_WEBGPU)
+           #   build failures when using multi-config generators (like Visual Studio) with RelWithDebInfo
+           #   because dxcompiler.dll ends up in the default output path instead of CMAKE_BINARY_DIR/$<CONFIG>.
            #
 -          ${Patch_EXECUTABLE} --binary --ignore-whitespace -p1 < ${PROJECT_SOURCE_DIR}/patches/dawn/dawn_dxc_output_dir.patch &&
 +          ${Patch_EXECUTABLE} --ignore-whitespace -p1 < ${PROJECT_SOURCE_DIR}/patches/dawn/dawn_dxc_output_dir.patch &&
  
            # The dawn_parallel_build_fix.patch contains the following changes:
            #
-@@ -855,7 +853,7 @@ if (onnxruntime_USE_WEBGPU)
+@@ -942,7 +940,7 @@ if (onnxruntime_USE_WEBGPU)
            #      build ordering is preserved through the emdawnwebgpu_c -> emdawnwebgpu_c_include
            #      -> emdawnwebgpu_headers_gen dependency chain.
            #
@@ -159,7 +159,7 @@
  
            # Remove the test folder to speed up potential file scan operations (70k+ files not needed for build).
            # Using <SOURCE_DIR> token ensures the correct absolute path regardless of working directory.
-@@ -934,7 +932,7 @@ if(onnxruntime_USE_COREML)
+@@ -1022,7 +1020,7 @@ if(onnxruntime_USE_COREML)
      coremltools
      URL ${DEP_URL_coremltools}
      URL_HASH SHA1=${DEP_SHA1_coremltools}
@@ -168,12 +168,3 @@
      EXCLUDE_FROM_ALL
    )
    # we don't build directly so use Populate. selected files are built from onnxruntime_providers_coreml.cmake
-@@ -1074,7 +1072,7 @@ if(onnxruntime_USE_TELEMETRY AND NOT WIN32)
-               "onnxruntime_USE_TELEMETRY with the FetchContent cpp_client_telemetry fallback requires the patch tool.")
-     endif()
-     set(ONNXRUNTIME_CPP_CLIENT_TELEMETRY_PATCH_COMMAND
--        ${Patch_EXECUTABLE} --binary --ignore-whitespace -p1 <
-+        ${Patch_EXECUTABLE} --ignore-whitespace -p1 <
-         ${PROJECT_SOURCE_DIR}/patches/cpp_client_telemetry/cpp_client_telemetry.patch)
-     onnxruntime_fetchcontent_declare(
-       cpp_client_telemetry