public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Benjamin A. Beasley <code@musicinmybrain.net>
To: git-commits@fedoraproject.org
Subject: [rpms/onnxruntime] rawhide: Remove spurious downstream patch that broke linking abseil-cpp
Date: Tue, 22 Sep 2026 21:04:06 GMT	[thread overview]
Message-ID: <179011104626.1.5461688225936400792.rpms-onnxruntime-c69100436152@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/onnxruntime
Branch : rawhide
Commit : c6910043615268f557d1696c280eb5861c8af596
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date   : 2026-09-20T08:42:07+01:00
Stats  : +1057/-1082 in 23 file(s)
URL    : https://src.fedoraproject.org/rpms/onnxruntime/c/c6910043615268f557d1696c280eb5861c8af596?branch=rawhide

Log:
Remove spurious downstream patch that broke linking abseil-cpp

---
diff --git a/0001-Disable-download-deps.patch b/0001-Disable-download-deps.patch
index 3c4d285..276798b 100644
--- a/0001-Disable-download-deps.patch
+++ b/0001-Disable-download-deps.patch
@@ -1,7 +1,7 @@
 From 10051c2bb365bc5f634dcebd67036ef019d6d95f Mon Sep 17 00:00:00 2001
 From: Diego Herrera <dherrera@redhat.com>
 Date: Sun, 14 Jun 2026 19:16:49 -0400
-Subject: [PATCH 01/12] Disable download deps
+Subject: [PATCH 01/11] Disable download deps
 
 
 diff --git a/cmake/external/onnxruntime_external_deps.cmake b/cmake/external/onnxruntime_external_deps.cmake

diff --git a/0002-System-abseil.patch b/0002-System-abseil.patch
deleted file mode 100644
index 3118f56..0000000
--- a/0002-System-abseil.patch
+++ /dev/null
@@ -1,23 +0,0 @@
-From 87ff9d5aafbde9e4fa252cdafb9cf1063ea9e21c Mon Sep 17 00:00:00 2001
-From: Diego Herrera <dherrera@redhat.com>
-Date: Sun, 14 Jun 2026 19:18:08 -0400
-Subject: [PATCH 02/12] System abseil
-
-
-diff --git a/cmake/external/onnxruntime_external_deps.cmake b/cmake/external/onnxruntime_external_deps.cmake
-index e6ca63a330..c564f68467 100644
---- a/cmake/external/onnxruntime_external_deps.cmake
-+++ b/cmake/external/onnxruntime_external_deps.cmake
-@@ -5,9 +5,6 @@ message(STATUS "Loading Dependencies URLs ...")
- 
- include(external/helper_functions.cmake)
- 
--# ABSL should be included before protobuf because protobuf may use absl
--include(external/abseil-cpp.cmake)
--
- set(RE2_BUILD_TESTING OFF CACHE BOOL "" FORCE)
- 
- onnxruntime_fetchcontent_declare(
--- 
-2.55.0
-

diff --git a/0002-System-date-and-mp11.patch b/0002-System-date-and-mp11.patch
new file mode 100644
index 0000000..6b974fa
--- /dev/null
+++ b/0002-System-date-and-mp11.patch
@@ -0,0 +1,645 @@
+From 018cc19acbd092f8912ce8f63584c3341eb0183d Mon Sep 17 00:00:00 2001
+From: Diego Herrera <dherrera@redhat.com>
+Date: Sun, 14 Jun 2026 19:06:32 -0400
+Subject: [PATCH 02/11] System date and mp11
+
+
+diff --git a/cmake/external/onnxruntime_external_deps.cmake b/cmake/external/onnxruntime_external_deps.cmake
+index e6ca63a330..e893b0ee89 100644
+--- a/cmake/external/onnxruntime_external_deps.cmake
++++ b/cmake/external/onnxruntime_external_deps.cmake
+@@ -241,36 +241,8 @@ endif()
+ set(ENABLE_DATE_TESTING  OFF CACHE BOOL "" FORCE)
+ set(USE_SYSTEM_TZ_DB  ON CACHE BOOL "" FORCE)
+ 
+-onnxruntime_fetchcontent_declare(
+-  date
+-  URL ${DEP_URL_date}
+-  URL_HASH SHA1=${DEP_SHA1_date}
+-  EXCLUDE_FROM_ALL
+-  PATCH_COMMAND
+-    ${Patch_EXECUTABLE} --binary --ignore-whitespace -p1 < ${PROJECT_SOURCE_DIR}/patches/date/date.patch
+-  FIND_PACKAGE_ARGS 3...<4 NAMES date
+-)
+-onnxruntime_fetchcontent_makeavailable(date)
+-
+-if(NOT TARGET Boost::mp11)
+-  if(onnxruntime_USE_VCPKG)
+-     find_package(Boost REQUIRED)
+-     message(STATUS "Aliasing Boost::headers to Boost::mp11")
+-     add_library(Boost::mp11 ALIAS Boost::headers)
+-  else()
+-    onnxruntime_fetchcontent_declare(
+-     mp11
+-     URL ${DEP_URL_mp11}
+-     EXCLUDE_FROM_ALL
+-     FIND_PACKAGE_ARGS NAMES Boost
+-    )
+-    FetchContent_Populate(mp11)
+-    if(NOT TARGET Boost::mp11)
+-      add_library(Boost::mp11 IMPORTED INTERFACE)
+-      target_include_directories(Boost::mp11 INTERFACE $<BUILD_INTERFACE:${mp11_SOURCE_DIR}/include>)
+-    endif()
+-  endif()
+-endif()
++find_package(date)
++find_package(Boost COMPONENTS mp11)
+ 
+ set(JSON_BuildTests OFF CACHE INTERNAL "")
+ set(JSON_Install ON CACHE INTERNAL "")
+@@ -566,7 +538,7 @@ if (onnxruntime_USE_XNNPACK)
+ endif()
+ 
+ set(onnxruntime_EXTERNAL_LIBRARIES ${onnxruntime_EXTERNAL_LIBRARIES_XNNPACK} ${WIL_TARGET} nlohmann_json::nlohmann_json
+-                                   onnx onnx_proto ${PROTOBUF_LIB} re2::re2 Boost::mp11 safeint_interface
++                                   onnx onnx_proto ${PROTOBUF_LIB} re2::re2 Boost::boost safeint_interface
+                                    flatbuffers::flatbuffers ${GSL_TARGET} ${ABSEIL_LIBS} date::date Eigen3::Eigen)
+ 
+ # The source code of onnx_proto is generated, we must build this lib first before starting to compile the other source code that uses ONNX protobuf types.
+diff --git a/cmake/onnxruntime_framework.cmake b/cmake/onnxruntime_framework.cmake
+index 15f3105b34..615e51beb0 100644
+--- a/cmake/onnxruntime_framework.cmake
++++ b/cmake/onnxruntime_framework.cmake
+@@ -81,7 +81,7 @@ endif()
+ if (onnxruntime_ENABLE_ATEN)
+   onnxruntime_add_include_to_target(onnxruntime_framework dlpack::dlpack)
+ endif()
+-onnxruntime_add_include_to_target(onnxruntime_framework onnxruntime_common onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers safeint_interface Boost::mp11 nlohmann_json::nlohmann_json Eigen3::Eigen)
++onnxruntime_add_include_to_target(onnxruntime_framework onnxruntime_common onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers safeint_interface Boost::boost nlohmann_json::nlohmann_json Eigen3::Eigen)
+ 
+ if (onnxruntime_USE_MIMALLOC)
+     onnxruntime_add_include_to_target(onnxruntime_framework mimalloc-static)
+diff --git a/cmake/onnxruntime_graph.cmake b/cmake/onnxruntime_graph.cmake
+index fba1a680bb..11fa2bbbe6 100644
+--- a/cmake/onnxruntime_graph.cmake
++++ b/cmake/onnxruntime_graph.cmake
+@@ -96,7 +96,7 @@ endif()
+ 
+ onnxruntime_add_static_library(onnxruntime_graph ${onnxruntime_graph_src} ${orttraining_graph_src})
+ add_dependencies(onnxruntime_graph onnx_proto flatbuffers::flatbuffers)
+-onnxruntime_add_include_to_target(onnxruntime_graph onnxruntime_common ${WIL_TARGET} onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers safeint_interface Boost::mp11)
++onnxruntime_add_include_to_target(onnxruntime_graph onnxruntime_common ${WIL_TARGET} onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers safeint_interface Boost::boost)
+ 
+ if (MSVC)
+   set(ONNX_PROTOBUF_NATVIS_FILE "onnx_protobuf.natvis")
+diff --git a/cmake/onnxruntime_lora.cmake b/cmake/onnxruntime_lora.cmake
+index e0579f571e..130ca3d5e1 100644
+--- a/cmake/onnxruntime_lora.cmake
++++ b/cmake/onnxruntime_lora.cmake
+@@ -10,7 +10,7 @@ file(GLOB onnxruntime_lora_srcs CONFIGURE_DEPENDS
+ source_group(TREE ${REPO_ROOT} FILES ${onnxruntime_lora_srcs})
+ 
+ onnxruntime_add_static_library(onnxruntime_lora ${onnxruntime_lora_srcs})
+-onnxruntime_add_include_to_target(onnxruntime_lora onnxruntime_framework onnxruntime_common onnx flatbuffers::flatbuffers Boost::mp11 ${GSL_TARGET})
++onnxruntime_add_include_to_target(onnxruntime_lora onnxruntime_framework onnxruntime_common onnx flatbuffers::flatbuffers Boost::boost ${GSL_TARGET})
+ 
+ if(onnxruntime_ENABLE_INSTRUMENT)
+   target_compile_definitions(onnxruntime_lora PUBLIC ONNXRUNTIME_ENABLE_INSTRUMENT)
+diff --git a/cmake/onnxruntime_opschema_lib.cmake b/cmake/onnxruntime_opschema_lib.cmake
+index 8a5b4bc907..52dd9ba343 100644
+--- a/cmake/onnxruntime_opschema_lib.cmake
++++ b/cmake/onnxruntime_opschema_lib.cmake
+@@ -27,10 +27,10 @@ target_compile_options(ort_opschema_lib PRIVATE -D_OPSCHEMA_LIB_=1)
+ if(NOT MSVC)
+   target_compile_options(ort_opschema_lib PRIVATE "-Wno-parentheses")
+ endif()
+-set (OPSCHEMA_LIB_DEPENDENCIES onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers safeint_interface Boost::mp11 safeint_interface)
++set (OPSCHEMA_LIB_DEPENDENCIES onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers safeint_interface Boost::boost safeint_interface)
+ 
+ # ${CMAKE_CURRENT_BINARY_DIR} is so that #include "onnxruntime_config.h" is found
+ target_include_directories(ort_opschema_lib PRIVATE ${ONNXRUNTIME_ROOT} ${ORTTRAINING_ROOT} ${CMAKE_CURRENT_BINARY_DIR})
+-onnxruntime_add_include_to_target(ort_opschema_lib onnxruntime_common onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::mp11 safeint_interface)
++onnxruntime_add_include_to_target(ort_opschema_lib onnxruntime_common onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::boost safeint_interface)
+ add_dependencies(ort_opschema_lib ${OPSCHEMA_LIB_DEPENDENCIES})
+ 
+diff --git a/cmake/onnxruntime_optimizer.cmake b/cmake/onnxruntime_optimizer.cmake
+index c4aa2c522b..d992afef26 100644
+--- a/cmake/onnxruntime_optimizer.cmake
++++ b/cmake/onnxruntime_optimizer.cmake
+@@ -115,7 +115,7 @@ endif()
+ 
+ onnxruntime_add_static_library(onnxruntime_optimizer ${onnxruntime_optimizer_srcs})
+ 
+-onnxruntime_add_include_to_target(onnxruntime_optimizer onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::mp11 safeint_interface)
++onnxruntime_add_include_to_target(onnxruntime_optimizer onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::boost safeint_interface)
+ target_include_directories(onnxruntime_optimizer PRIVATE ${ONNXRUNTIME_ROOT})
+ if (onnxruntime_ENABLE_TRAINING)
+   target_include_directories(onnxruntime_optimizer PRIVATE ${ORTTRAINING_ROOT})
+diff --git a/cmake/onnxruntime_providers_acl.cmake b/cmake/onnxruntime_providers_acl.cmake
+index afa41d72c1..baa4de0b4f 100644
+--- a/cmake/onnxruntime_providers_acl.cmake
++++ b/cmake/onnxruntime_providers_acl.cmake
+@@ -10,7 +10,7 @@
+   source_group(TREE ${ONNXRUNTIME_ROOT}/core FILES ${onnxruntime_providers_acl_cc_srcs})
+   onnxruntime_add_static_library(onnxruntime_providers_acl ${onnxruntime_providers_acl_cc_srcs})
+   onnxruntime_add_include_to_target(onnxruntime_providers_acl
+-    onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::mp11 safeint_interface Eigen3::Eigen
++    onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::boost safeint_interface Eigen3::Eigen
+   )
+ 
+   if (DEFINED ENV{LD_LIBRARY_PATH})
+diff --git a/cmake/onnxruntime_providers_azure.cmake b/cmake/onnxruntime_providers_azure.cmake
+index 1b03563848..b856ce2e56 100644
+--- a/cmake/onnxruntime_providers_azure.cmake
++++ b/cmake/onnxruntime_providers_azure.cmake
+@@ -8,7 +8,7 @@
+   source_group(TREE ${ONNXRUNTIME_ROOT}/core FILES ${onnxruntime_providers_azure_src})
+   onnxruntime_add_static_library(onnxruntime_providers_azure ${onnxruntime_providers_azure_src})
+   add_dependencies(onnxruntime_providers_azure ${onnxruntime_EXTERNAL_DEPENDENCIES})
+-  onnxruntime_add_include_to_target(onnxruntime_providers_azure onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::mp11)
++  onnxruntime_add_include_to_target(onnxruntime_providers_azure onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::boost)
+   target_link_libraries(onnxruntime_providers_azure PRIVATE onnx onnxruntime_common onnxruntime_framework)
+   set_target_properties(onnxruntime_providers_azure PROPERTIES FOLDER "ONNXRuntime")
+   set_target_properties(onnxruntime_providers_azure PROPERTIES LINKER_LANGUAGE CXX)
+diff --git a/cmake/onnxruntime_providers_cann.cmake b/cmake/onnxruntime_providers_cann.cmake
+index 30c13c0b4a..fa5ee74b26 100644
+--- a/cmake/onnxruntime_providers_cann.cmake
++++ b/cmake/onnxruntime_providers_cann.cmake
+@@ -18,7 +18,7 @@
+   set(onnxruntime_providers_cann_src ${onnxruntime_providers_cann_cc_srcs} ${onnxruntime_providers_cann_shared_srcs})
+ 
+   onnxruntime_add_shared_library_module(onnxruntime_providers_cann ${onnxruntime_providers_cann_src})
+-  onnxruntime_add_include_to_target(onnxruntime_providers_cann onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::mp11 safeint_interface)
++  onnxruntime_add_include_to_target(onnxruntime_providers_cann onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::boost safeint_interface)
+ 
+   add_dependencies(onnxruntime_providers_cann onnxruntime_providers_shared ${onnxruntime_EXTERNAL_DEPENDENCIES})
+   target_link_libraries(onnxruntime_providers_cann PRIVATE Eigen3::Eigen ascendcl acl_op_compiler fmk_onnx_parser  ${ABSEIL_LIBS} ${ONNXRUNTIME_PROVIDERS_SHARED})
+diff --git a/cmake/onnxruntime_providers_coreml.cmake b/cmake/onnxruntime_providers_coreml.cmake
+index 757198ffb6..10d6cb9271 100644
+--- a/cmake/onnxruntime_providers_coreml.cmake
++++ b/cmake/onnxruntime_providers_coreml.cmake
+@@ -151,7 +151,7 @@ onnxruntime_add_static_library(onnxruntime_providers_coreml
+ )
+ 
+ onnxruntime_add_include_to_target(onnxruntime_providers_coreml
+-  onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::mp11
++  onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::boost
+   safeint_interface nlohmann_json::nlohmann_json
+ )
+ 
+diff --git a/cmake/onnxruntime_providers_cpu.cmake b/cmake/onnxruntime_providers_cpu.cmake
+index f6efcb3fad..c7618c85b8 100644
+--- a/cmake/onnxruntime_providers_cpu.cmake
++++ b/cmake/onnxruntime_providers_cpu.cmake
+@@ -154,7 +154,7 @@ if (MSVC)
+ #      target_compile_options(onnxruntime_providers PRIVATE "/wd4244")
+ #   endif()
+ endif()
+-onnxruntime_add_include_to_target(onnxruntime_providers onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::mp11 safeint_interface)
++onnxruntime_add_include_to_target(onnxruntime_providers onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::boost safeint_interface)
+ 
+ if (onnxruntime_BUILD_MS_EXPERIMENTAL_OPS)
+   target_compile_definitions(onnxruntime_providers PRIVATE BUILD_MS_EXPERIMENTAL_OPS=1)
+@@ -239,7 +239,7 @@ if (NOT onnxruntime_MINIMAL_BUILD AND NOT onnxruntime_EXTENDED_MINIMAL_BUILD
+ 
+ 
+   # On Apple/Unix we don't directly link with this library as we load it with RTLD_GLOBAL, so this is only set to the actual library on WIN32
+-  # But, in exchange we need to manually add Boost::mp11 to include dirs for every EP.
++  # But, in exchange we need to manually add Boost::boost to include dirs for every EP.
+   # It is because "provider_api.h" includes core/framework/op_kernel.h which includes op_kernel.h which includes "boost/mp11.hpp"
+   set(ONNXRUNTIME_PROVIDERS_SHARED)
+ 
+diff --git a/cmake/onnxruntime_providers_cuda.cmake b/cmake/onnxruntime_providers_cuda.cmake
+index 624057dd43..78e1b681c1 100644
+--- a/cmake/onnxruntime_providers_cuda.cmake
++++ b/cmake/onnxruntime_providers_cuda.cmake
+@@ -300,7 +300,7 @@
+     add_dependencies(${target} onnxruntime_providers_shared ${onnxruntime_EXTERNAL_DEPENDENCIES})
+     if(onnxruntime_CUDA_MINIMAL)
+       target_compile_definitions(${target} PRIVATE USE_CUDA_MINIMAL)
+-      target_link_libraries(${target} PRIVATE ${ABSEIL_LIBS} ${ONNXRUNTIME_PROVIDERS_SHARED} Boost::mp11 safeint_interface CUDA::cudart)
++      target_link_libraries(${target} PRIVATE ${ABSEIL_LIBS} ${ONNXRUNTIME_PROVIDERS_SHARED} Boost::boost safeint_interface CUDA::cudart)
+     else()
+       include(cudnn_frontend) # also defines CUDNN::*
+       if (onnxruntime_USE_CUDA_NHWC_OPS)
+@@ -311,7 +311,7 @@
+         endif()
+       endif()
+       target_link_libraries(${target} PRIVATE CUDA::cublasLt CUDA::cublas CUDNN::cudnn_all cudnn_frontend CUDA::curand CUDA::cufft CUDA::cudart
+-              ${ABSEIL_LIBS} ${ONNXRUNTIME_PROVIDERS_SHARED} Boost::mp11 safeint_interface)
++              ${ABSEIL_LIBS} ${ONNXRUNTIME_PROVIDERS_SHARED} Boost::boost safeint_interface)
+     endif()
+ 
+     include(cutlass)
+diff --git a/cmake/onnxruntime_providers_cuda_plugin.cmake b/cmake/onnxruntime_providers_cuda_plugin.cmake
+index e345c944dc..e27a6fa22b 100644
+--- a/cmake/onnxruntime_providers_cuda_plugin.cmake
++++ b/cmake/onnxruntime_providers_cuda_plugin.cmake
+@@ -252,7 +252,7 @@ target_link_libraries(onnxruntime_providers_cuda_plugin PRIVATE
+     CUDA::cufft
+     CUDNN::cudnn_all
+     cudnn_frontend
+-    Boost::mp11
++    Boost::boost
+     safeint_interface
+     onnxruntime_framework
+     onnxruntime_graph
+diff --git a/cmake/onnxruntime_providers_dml.cmake b/cmake/onnxruntime_providers_dml.cmake
+index ac4f0103ea..19ffe5b50b 100644
+--- a/cmake/onnxruntime_providers_dml.cmake
++++ b/cmake/onnxruntime_providers_dml.cmake
+@@ -9,7 +9,7 @@
+   source_group(TREE ${ONNXRUNTIME_ROOT}/core FILES ${onnxruntime_providers_dml_cc_srcs})
+   onnxruntime_add_static_library(onnxruntime_providers_dml ${onnxruntime_providers_dml_cc_srcs})
+   onnxruntime_add_include_to_target(onnxruntime_providers_dml
+-    onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::mp11 safeint_interface ${WIL_TARGET}
++    onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::boost safeint_interface ${WIL_TARGET}
+   )
+   if(TARGET Microsoft::DirectX-Headers)
+     onnxruntime_add_include_to_target(onnxruntime_providers_dml Microsoft::DirectX-Headers)
+diff --git a/cmake/onnxruntime_providers_dnnl.cmake b/cmake/onnxruntime_providers_dnnl.cmake
+index 07926a34d5..965c4df7a0 100644
+--- a/cmake/onnxruntime_providers_dnnl.cmake
++++ b/cmake/onnxruntime_providers_dnnl.cmake
+@@ -19,7 +19,7 @@
+   add_dependencies(onnxruntime_providers_dnnl onnxruntime_providers_shared project_dnnl ${onnxruntime_EXTERNAL_DEPENDENCIES})
+   target_include_directories(onnxruntime_providers_dnnl PRIVATE ${ONNXRUNTIME_ROOT} ${DNNL_INCLUDE_DIR} ${DNNL_OCL_INCLUDE_DIR})
+   # ${CMAKE_CURRENT_BINARY_DIR} is so that #include "onnxruntime_config.h" inside tensor_shape.h is found
+-  target_link_libraries(onnxruntime_providers_dnnl PRIVATE dnnl ${ONNXRUNTIME_PROVIDERS_SHARED} Boost::mp11 ${ABSEIL_LIBS} ${GSL_TARGET} safeint_interface Eigen3::Eigen)
++  target_link_libraries(onnxruntime_providers_dnnl PRIVATE dnnl ${ONNXRUNTIME_PROVIDERS_SHARED} Boost::boost ${ABSEIL_LIBS} ${GSL_TARGET} safeint_interface Eigen3::Eigen)
+   install(FILES ${PROJECT_SOURCE_DIR}/../include/onnxruntime/core/providers/dnnl/dnnl_provider_options.h
+     DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/onnxruntime/)
+   set_target_properties(onnxruntime_providers_dnnl PROPERTIES FOLDER "ONNXRuntime")
+diff --git a/cmake/onnxruntime_providers_js.cmake b/cmake/onnxruntime_providers_js.cmake
+index fefbab5082..800c31b83d 100644
+--- a/cmake/onnxruntime_providers_js.cmake
++++ b/cmake/onnxruntime_providers_js.cmake
+@@ -19,7 +19,7 @@
+   source_group(TREE ${ONNXRUNTIME_ROOT} FILES ${onnxruntime_providers_js_cc_srcs})
+   onnxruntime_add_static_library(onnxruntime_providers_js ${onnxruntime_providers_js_cc_srcs})
+   onnxruntime_add_include_to_target(onnxruntime_providers_js
+-    onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers Boost::mp11 Eigen3::Eigen
++    onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers Boost::boost Eigen3::Eigen
+   )
+ 
+   add_dependencies(onnxruntime_providers_js ${onnxruntime_EXTERNAL_DEPENDENCIES})
+diff --git a/cmake/onnxruntime_providers_migraphx.cmake b/cmake/onnxruntime_providers_migraphx.cmake
+index 8cb5dcf951..dae4ef20ee 100644
+--- a/cmake/onnxruntime_providers_migraphx.cmake
++++ b/cmake/onnxruntime_providers_migraphx.cmake
+@@ -31,9 +31,9 @@
+   )
+   source_group(TREE ${ONNXRUNTIME_ROOT}/core FILES ${onnxruntime_providers_migraphx_cc_srcs})
+   onnxruntime_add_shared_library(onnxruntime_providers_migraphx ${onnxruntime_providers_migraphx_cc_srcs})
+-  onnxruntime_add_include_to_target(onnxruntime_providers_migraphx onnxruntime_common onnx flatbuffers::flatbuffers Boost::mp11 safeint_interface)
++  onnxruntime_add_include_to_target(onnxruntime_providers_migraphx onnxruntime_common onnx flatbuffers::flatbuffers Boost::boost safeint_interface)
+   add_dependencies(onnxruntime_providers_migraphx ${onnxruntime_EXTERNAL_DEPENDENCIES})
+-  target_link_libraries(onnxruntime_providers_migraphx PRIVATE migraphx::c hip::host ${ONNXRUNTIME_PROVIDERS_SHARED} onnx flatbuffers::flatbuffers Boost::mp11 safeint_interface)
++  target_link_libraries(onnxruntime_providers_migraphx PRIVATE migraphx::c hip::host ${ONNXRUNTIME_PROVIDERS_SHARED} onnx flatbuffers::flatbuffers Boost::boost safeint_interface)
+   target_include_directories(onnxruntime_providers_migraphx PRIVATE ${ONNXRUNTIME_ROOT} ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR}/migraphx/onnxruntime)
+   set_target_properties(onnxruntime_providers_migraphx PROPERTIES LINKER_LANGUAGE CXX)
+   set_target_properties(onnxruntime_providers_migraphx PROPERTIES FOLDER "ONNXRuntime")
+diff --git a/cmake/onnxruntime_providers_nnapi.cmake b/cmake/onnxruntime_providers_nnapi.cmake
+index 06364ebd49..b202c15e11 100644
+--- a/cmake/onnxruntime_providers_nnapi.cmake
++++ b/cmake/onnxruntime_providers_nnapi.cmake
+@@ -60,7 +60,7 @@
+   source_group(TREE ${ONNXRUNTIME_ROOT}/core FILES ${onnxruntime_providers_nnapi_cc_srcs})
+   onnxruntime_add_static_library(onnxruntime_providers_nnapi ${onnxruntime_providers_nnapi_cc_srcs})
+   onnxruntime_add_include_to_target(onnxruntime_providers_nnapi
+-    onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::mp11 safeint_interface
++    onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::boost safeint_interface
+   )
+   target_link_libraries(onnxruntime_providers_nnapi)
+   add_dependencies(onnxruntime_providers_nnapi onnx ${onnxruntime_EXTERNAL_DEPENDENCIES})
+diff --git a/cmake/onnxruntime_providers_nv.cmake b/cmake/onnxruntime_providers_nv.cmake
+index 92fc0ccadd..38830f9c4d 100644
+--- a/cmake/onnxruntime_providers_nv.cmake
++++ b/cmake/onnxruntime_providers_nv.cmake
+@@ -147,7 +147,7 @@ endif ()
+   source_group(TREE ${ONNXRUNTIME_ROOT}/core FILES ${onnxruntime_providers_nv_tensorrt_rtx_cc_srcs})
+   onnxruntime_add_shared_library_module(onnxruntime_providers_nv_tensorrt_rtx ${onnxruntime_providers_nv_tensorrt_rtx_cc_srcs})
+   onnxruntime_add_include_to_target(onnxruntime_providers_nv_tensorrt_rtx onnxruntime_common)
+-  target_link_libraries(onnxruntime_providers_nv_tensorrt_rtx PRIVATE Eigen3::Eigen  onnx flatbuffers::flatbuffers Boost::mp11 safeint_interface Eigen3::Eigen)
++  target_link_libraries(onnxruntime_providers_nv_tensorrt_rtx PRIVATE Eigen3::Eigen  onnx flatbuffers::flatbuffers Boost::boost safeint_interface Eigen3::Eigen)
+   add_dependencies(onnxruntime_providers_nv_tensorrt_rtx onnxruntime_providers_shared ${onnxruntime_EXTERNAL_DEPENDENCIES})
+   # Make NVML linkage optional: only link CUDA::nvml if the target exists.
+   set(_nvml_lib "")
+@@ -155,7 +155,7 @@ endif ()
+     set(_nvml_lib CUDA::nvml)
+   endif()
+   if (onnxruntime_USE_TENSORRT_BUILTIN_PARSER)
+-    target_link_libraries(onnxruntime_providers_nv_tensorrt_rtx PRIVATE ${trt_link_libs} ${ONNXRUNTIME_PROVIDERS_SHARED} ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::mp11 safeint_interface ${ABSEIL_LIBS} ${_nvml_lib} PUBLIC CUDA::cudart CUDA::cuda_driver)
++    target_link_libraries(onnxruntime_providers_nv_tensorrt_rtx PRIVATE ${trt_link_libs} ${ONNXRUNTIME_PROVIDERS_SHARED} ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::boost safeint_interface ${ABSEIL_LIBS} ${_nvml_lib} PUBLIC CUDA::cudart CUDA::cuda_driver)
+   else()
+     target_link_libraries(onnxruntime_providers_nv_tensorrt_rtx PRIVATE ${onnxparser_link_libs} ${trt_link_libs} ${ONNXRUNTIME_PROVIDERS_SHARED} ${PROTOBUF_LIB} flatbuffers::flatbuffers ${ABSEIL_LIBS} ${_nvml_lib} PUBLIC CUDA::cudart CUDA::cuda_driver)
+   endif()
+diff --git a/cmake/onnxruntime_providers_openvino.cmake b/cmake/onnxruntime_providers_openvino.cmake
+index 882fc56d9a..819bdb7adc 100644
+--- a/cmake/onnxruntime_providers_openvino.cmake
++++ b/cmake/onnxruntime_providers_openvino.cmake
+@@ -54,7 +54,7 @@
+   endif()
+   add_dependencies(onnxruntime_providers_openvino onnxruntime_providers_shared ${onnxruntime_EXTERNAL_DEPENDENCIES})
+   target_include_directories(onnxruntime_providers_openvino SYSTEM PUBLIC ${ONNXRUNTIME_ROOT} ${CMAKE_CURRENT_BINARY_DIR} ${OpenVINO_INCLUDE_DIR} ${OPENVINO_INCLUDE_DIR_LIST} ${PYTHON_INCLUDE_DIRS} $ENV{OPENCL_INCS} $ENV{OPENCL_INCS}/../../cl_headers/)
+-  target_link_libraries(onnxruntime_providers_openvino ${ONNXRUNTIME_PROVIDERS_SHARED} Boost::mp11 ${OPENVINO_LIB_LIST} ${ABSEIL_LIBS} Eigen3::Eigen onnx_proto)
++  target_link_libraries(onnxruntime_providers_openvino ${ONNXRUNTIME_PROVIDERS_SHARED} Boost::boost ${OPENVINO_LIB_LIST} ${ABSEIL_LIBS} Eigen3::Eigen onnx_proto)
+ 
+   # ETW TraceLogging depends on Advapi32 on Windows
+   if(WIN32)
+diff --git a/cmake/onnxruntime_providers_qnn.cmake b/cmake/onnxruntime_providers_qnn.cmake
+index f499c83d5f..fad6234cb3 100644
+--- a/cmake/onnxruntime_providers_qnn.cmake
++++ b/cmake/onnxruntime_providers_qnn.cmake
+@@ -43,7 +43,7 @@
+     onnxruntime_add_static_library(onnxruntime_providers_qnn ${onnxruntime_providers_qnn_srcs})
+     onnxruntime_add_include_to_target(onnxruntime_providers_qnn onnxruntime_common onnxruntime_framework onnx
+                                                                 onnx_proto protobuf::libprotobuf-lite
+-                                                                flatbuffers::flatbuffers Boost::mp11
++                                                                flatbuffers::flatbuffers Boost::boost
+                                                                 nlohmann_json::nlohmann_json)
+     add_dependencies(onnxruntime_providers_qnn onnx ${onnxruntime_EXTERNAL_DEPENDENCIES})
+     set_target_properties(onnxruntime_providers_qnn PROPERTIES CXX_STANDARD_REQUIRED ON)
+@@ -94,7 +94,7 @@
+ 
+     onnxruntime_add_shared_library_module(onnxruntime_providers_qnn ${onnxruntime_providers_qnn_all_srcs})
+     onnxruntime_add_include_to_target(onnxruntime_providers_qnn ${ONNXRUNTIME_PROVIDERS_SHARED} ${GSL_TARGET} onnx
+-                                                                onnxruntime_common Boost::mp11 safeint_interface
++                                                                onnxruntime_common Boost::boost safeint_interface
+                                                                 nlohmann_json::nlohmann_json)
+     target_link_libraries(onnxruntime_providers_qnn PRIVATE ${ONNXRUNTIME_PROVIDERS_SHARED} ${ABSEIL_LIBS} ${CMAKE_DL_LIBS})
+     add_dependencies(onnxruntime_providers_qnn onnxruntime_providers_shared ${onnxruntime_EXTERNAL_DEPENDENCIES})
+diff --git a/cmake/onnxruntime_providers_rknpu.cmake b/cmake/onnxruntime_providers_rknpu.cmake
+index 831df84aa6..312cf86e68 100644
+--- a/cmake/onnxruntime_providers_rknpu.cmake
++++ b/cmake/onnxruntime_providers_rknpu.cmake
+@@ -24,7 +24,7 @@
+   source_group(TREE ${ONNXRUNTIME_ROOT}/core FILES ${onnxruntime_providers_rknpu_cc_srcs})
+   onnxruntime_add_static_library(onnxruntime_providers_rknpu ${onnxruntime_providers_rknpu_cc_srcs})
+   onnxruntime_add_include_to_target(onnxruntime_providers_rknpu
+-    onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::mp11 safeint_interface
++    onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::boost safeint_interface
+   )
+   target_link_libraries(onnxruntime_providers_rknpu PRIVATE -lrknpu_ddk)
+   add_dependencies(onnxruntime_providers_rknpu onnx ${onnxruntime_EXTERNAL_DEPENDENCIES})
+diff --git a/cmake/onnxruntime_providers_tensorrt.cmake b/cmake/onnxruntime_providers_tensorrt.cmake
+index 4184e0b049..d0bfdbee0d 100644
+--- a/cmake/onnxruntime_providers_tensorrt.cmake
++++ b/cmake/onnxruntime_providers_tensorrt.cmake
+@@ -175,10 +175,10 @@
+ 
+   onnxruntime_add_shared_library_module(onnxruntime_providers_tensorrt ${onnxruntime_providers_tensorrt_all_srcs})
+   onnxruntime_add_include_to_target(onnxruntime_providers_tensorrt onnxruntime_common)
+-  target_link_libraries(onnxruntime_providers_tensorrt PRIVATE Eigen3::Eigen  onnx flatbuffers::flatbuffers Boost::mp11 safeint_interface Eigen3::Eigen)
++  target_link_libraries(onnxruntime_providers_tensorrt PRIVATE Eigen3::Eigen  onnx flatbuffers::flatbuffers Boost::boost safeint_interface Eigen3::Eigen)
+   add_dependencies(onnxruntime_providers_tensorrt onnxruntime_providers_shared ${onnxruntime_EXTERNAL_DEPENDENCIES})
+   if (onnxruntime_USE_TENSORRT_BUILTIN_PARSER)
+-    target_link_libraries(onnxruntime_providers_tensorrt PRIVATE ${trt_link_libs} ${ONNXRUNTIME_PROVIDERS_SHARED} ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::mp11 safeint_interface ${ABSEIL_LIBS} PUBLIC CUDA::cudart)
++    target_link_libraries(onnxruntime_providers_tensorrt PRIVATE ${trt_link_libs} ${ONNXRUNTIME_PROVIDERS_SHARED} ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::boost safeint_interface ${ABSEIL_LIBS} PUBLIC CUDA::cudart)
+   else()
+     target_link_libraries(onnxruntime_providers_tensorrt PRIVATE ${onnxparser_link_libs} ${trt_link_libs} ${ONNXRUNTIME_PROVIDERS_SHARED} ${PROTOBUF_LIB} flatbuffers::flatbuffers ${ABSEIL_LIBS} PUBLIC CUDA::cudart)
+   endif()
+diff --git a/cmake/onnxruntime_providers_vitisai.cmake b/cmake/onnxruntime_providers_vitisai.cmake
+index d59c944c89..f925190908 100644
+--- a/cmake/onnxruntime_providers_vitisai.cmake
++++ b/cmake/onnxruntime_providers_vitisai.cmake
+@@ -29,7 +29,7 @@
+     # FILE_NAME preprocessor definition is used in onnxruntime_providers_vitisai.rc
+     target_compile_definitions(onnxruntime_providers_vitisai PRIVATE FILE_NAME=\"onnxruntime_providers_vitisai.dll\")
+   endif()
+-  onnxruntime_add_include_to_target(onnxruntime_providers_vitisai ${ONNXRUNTIME_PROVIDERS_SHARED} ${GSL_TARGET} safeint_interface flatbuffers::flatbuffers  Boost::mp11)
++  onnxruntime_add_include_to_target(onnxruntime_providers_vitisai ${ONNXRUNTIME_PROVIDERS_SHARED} ${GSL_TARGET} safeint_interface flatbuffers::flatbuffers  Boost::boost)
+   target_link_libraries(onnxruntime_providers_vitisai PRIVATE ${ONNXRUNTIME_PROVIDERS_SHARED} ${ABSEIL_LIBS})
+   if(MSVC)
+     onnxruntime_add_include_to_target(onnxruntime_providers_vitisai dbghelp)
+diff --git a/cmake/onnxruntime_providers_vsinpu.cmake b/cmake/onnxruntime_providers_vsinpu.cmake
+index e3b6c3c302..1d86af395e 100644
+--- a/cmake/onnxruntime_providers_vsinpu.cmake
++++ b/cmake/onnxruntime_providers_vsinpu.cmake
+@@ -10,7 +10,7 @@
+   source_group(TREE ${ONNXRUNTIME_ROOT}/core FILES ${onnxruntime_providers_vsinpu_srcs})
+   add_library(onnxruntime_providers_vsinpu ${onnxruntime_providers_vsinpu_srcs})
+   onnxruntime_add_include_to_target(onnxruntime_providers_vsinpu
+-    onnxruntime_common onnxruntime_framework onnx onnx_proto protobuf::libprotobuf-lite flatbuffers Boost::mp11
++    onnxruntime_common onnxruntime_framework onnx onnx_proto protobuf::libprotobuf-lite flatbuffers Boost::boost
+     safeint_interface )
+   add_dependencies(onnxruntime_providers_vsinpu ${onnxruntime_EXTERNAL_DEPENDENCIES})
+   set_target_properties(onnxruntime_providers_vsinpu PROPERTIES FOLDER "ONNXRuntime" LINKER_LANGUAGE CXX)
+diff --git a/cmake/onnxruntime_providers_webgpu.cmake b/cmake/onnxruntime_providers_webgpu.cmake
+index f64aafa161..fbbaaecc9d 100644
+--- a/cmake/onnxruntime_providers_webgpu.cmake
++++ b/cmake/onnxruntime_providers_webgpu.cmake
+@@ -45,7 +45,7 @@
+     source_group(TREE ${ONNXRUNTIME_ROOT} FILES ${onnxruntime_providers_webgpu_cc_srcs})
+     onnxruntime_add_static_library(onnxruntime_providers_webgpu ${onnxruntime_providers_webgpu_cc_srcs})
+     onnxruntime_add_include_to_target(onnxruntime_providers_webgpu
+-      onnxruntime_common onnx onnx_proto flatbuffers::flatbuffers Boost::mp11 safeint_interface)
++      onnxruntime_common onnx onnx_proto flatbuffers::flatbuffers Boost::boost safeint_interface)
+   else()
+     #
+     # Build WebGPU EP as a shared library
+@@ -63,7 +63,7 @@
+         onnx
+         onnx_proto
+         flatbuffers::flatbuffers
+-        Boost::mp11
++        Boost::boost
+         safeint_interface)
+ 
+     target_link_libraries(onnxruntime_providers_webgpu PRIVATE
+diff --git a/cmake/onnxruntime_providers_webnn.cmake b/cmake/onnxruntime_providers_webnn.cmake
+index da5720a9f7..d27275cbbc 100644
+--- a/cmake/onnxruntime_providers_webnn.cmake
++++ b/cmake/onnxruntime_providers_webnn.cmake
+@@ -18,7 +18,7 @@
+ 
+   source_group(TREE ${REPO_ROOT} FILES ${onnxruntime_providers_webnn_cc_srcs})
+   onnxruntime_add_static_library(onnxruntime_providers_webnn ${onnxruntime_providers_webnn_cc_srcs})
+-  onnxruntime_add_include_to_target(onnxruntime_providers_webnn onnxruntime_common onnx onnx_proto flatbuffers::flatbuffers Boost::mp11 safeint_interface)
++  onnxruntime_add_include_to_target(onnxruntime_providers_webnn onnxruntime_common onnx onnx_proto flatbuffers::flatbuffers Boost::boost safeint_interface)
+ 
+   add_dependencies(onnxruntime_providers_webnn onnx ${onnxruntime_EXTERNAL_DEPENDENCIES})
+   set_target_properties(onnxruntime_providers_webnn PROPERTIES FOLDER "ONNXRuntime")
+diff --git a/cmake/onnxruntime_providers_xnnpack.cmake b/cmake/onnxruntime_providers_xnnpack.cmake
+index 1fbe553fa5..614417b80a 100644
+--- a/cmake/onnxruntime_providers_xnnpack.cmake
++++ b/cmake/onnxruntime_providers_xnnpack.cmake
+@@ -13,7 +13,7 @@
+   onnxruntime_add_static_library(onnxruntime_providers_xnnpack ${onnxruntime_providers_xnnpack_cc_srcs})
+   onnxruntime_add_include_to_target(onnxruntime_providers_xnnpack
+     onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} XNNPACK pthreadpool
+-    flatbuffers::flatbuffers Boost::mp11 safeint_interface
++    flatbuffers::flatbuffers Boost::boost safeint_interface
+   )
+ 
+   # TODO fix stringop-overflow warnings
+diff --git a/cmake/onnxruntime_session.cmake b/cmake/onnxruntime_session.cmake
+index 1e3357464e..adcfc219b6 100644
+--- a/cmake/onnxruntime_session.cmake
++++ b/cmake/onnxruntime_session.cmake
+@@ -42,7 +42,7 @@ endif()
+ source_group(TREE ${REPO_ROOT} FILES ${onnxruntime_session_srcs})
+ 
+ onnxruntime_add_static_library(onnxruntime_session ${onnxruntime_session_srcs})
+-onnxruntime_add_include_to_target(onnxruntime_session onnxruntime_common onnxruntime_framework onnxruntime_lora onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::mp11 safeint_interface nlohmann_json::nlohmann_json Eigen3::Eigen)
++onnxruntime_add_include_to_target(onnxruntime_session onnxruntime_common onnxruntime_framework onnxruntime_lora onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::boost safeint_interface nlohmann_json::nlohmann_json Eigen3::Eigen)
+ target_link_libraries(onnxruntime_session PRIVATE onnxruntime_lora)
+ if(onnxruntime_ENABLE_INSTRUMENT)
+   target_compile_definitions(onnxruntime_session PUBLIC ONNXRUNTIME_ENABLE_INSTRUMENT)
+diff --git a/cmake/onnxruntime_training.cmake b/cmake/onnxruntime_training.cmake
+index fab40da157..818d002395 100644
+--- a/cmake/onnxruntime_training.cmake
++++ b/cmake/onnxruntime_training.cmake
+@@ -30,7 +30,7 @@ list(REMOVE_ITEM onnxruntime_training_srcs ${onnxruntime_training_framework_excl
+ 
+ onnxruntime_add_static_library(onnxruntime_training ${onnxruntime_training_srcs})
+ add_dependencies(onnxruntime_training onnx tensorboard ${onnxruntime_EXTERNAL_DEPENDENCIES})
+-onnxruntime_add_include_to_target(onnxruntime_training onnxruntime_common onnx onnx_proto tensorboard ${PROTOBUF_LIB} flatbuffers::flatbuffers re2::re2 Boost::mp11 safeint_interface Eigen3::Eigen)
++onnxruntime_add_include_to_target(onnxruntime_training onnxruntime_common onnx onnx_proto tensorboard ${PROTOBUF_LIB} flatbuffers::flatbuffers re2::re2 Boost::boost safeint_interface Eigen3::Eigen)
+ 
+ # fix event_writer.cc 4100 warning
+ if(WIN32)
+@@ -73,7 +73,7 @@ if (onnxruntime_BUILD_UNIT_TESTS)
+     target_link_libraries(onnxruntime_training_runner PRIVATE Python::Python)
+   endif()
+ 
+-  onnxruntime_add_include_to_target(onnxruntime_training_runner onnxruntime_training onnxruntime_framework onnxruntime_common onnx onnx_proto ${PROTOBUF_LIB} onnxruntime_training flatbuffers::flatbuffers Boost::mp11 safeint_interface Eigen3::Eigen)
++  onnxruntime_add_include_to_target(onnxruntime_training_runner onnxruntime_training onnxruntime_framework onnxruntime_common onnx onnx_proto ${PROTOBUF_LIB} onnxruntime_training flatbuffers::flatbuffers Boost::boost safeint_interface Eigen3::Eigen)
+ 
+   target_include_directories(onnxruntime_training_runner PRIVATE ${CMAKE_CURRENT_BINARY_DIR} ${ONNXRUNTIME_ROOT} ${ORTTRAINING_ROOT} PUBLIC ${onnxruntime_graph_header})
+   target_link_libraries(onnxruntime_training_runner PRIVATE nlohmann_json::nlohmann_json)
+@@ -101,7 +101,7 @@ if (onnxruntime_BUILD_UNIT_TESTS)
+       "${ORTTRAINING_SOURCE_DIR}/models/mnist/main.cc"
+   )
+   onnxruntime_add_executable(onnxruntime_training_mnist ${training_mnist_src})
+-  onnxruntime_add_include_to_target(onnxruntime_training_mnist onnxruntime_common onnx onnx_proto ${PROTOBUF_LIB} onnxruntime_training flatbuffers::flatbuffers Boost::mp11 safeint_interface)
++  onnxruntime_add_include_to_target(onnxruntime_training_mnist onnxruntime_common onnx onnx_proto ${PROTOBUF_LIB} onnxruntime_training flatbuffers::flatbuffers Boost::boost safeint_interface)
+   target_include_directories(onnxruntime_training_mnist PUBLIC ${CMAKE_CURRENT_BINARY_DIR} ${ONNXRUNTIME_ROOT} ${ORTTRAINING_ROOT} ${CXXOPTS} ${extra_includes} ${onnxruntime_graph_header} ${onnxruntime_exec_src_dir} ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR}/onnx onnxruntime_training_runner)
+ 
+   set(ONNXRUNTIME_LIBS
+@@ -124,7 +124,7 @@ if (onnxruntime_BUILD_UNIT_TESTS)
+       ${ONNXRUNTIME_MLAS_LIBS}
+       onnxruntime_common
+       onnxruntime_flatbuffers
+-      Boost::mp11 safeint_interface Eigen3::Eigen
++      Boost::boost safeint_interface Eigen3::Eigen
+   )
+ 
+   if(UNIX AND NOT APPLE)
+@@ -143,7 +143,7 @@ if (onnxruntime_BUILD_UNIT_TESTS)
+       "${ORTTRAINING_SOURCE_DIR}/models/squeezenet/*.cc"
+   )
+   onnxruntime_add_executable(onnxruntime_training_squeezenet ${training_squeezene_src})
+-  onnxruntime_add_include_to_target(onnxruntime_training_squeezenet onnxruntime_common onnx onnx_proto ${PROTOBUF_LIB} onnxruntime_training flatbuffers::flatbuffers Boost::mp11 safeint_interface)
++  onnxruntime_add_include_to_target(onnxruntime_training_squeezenet onnxruntime_common onnx onnx_proto ${PROTOBUF_LIB} onnxruntime_training flatbuffers::flatbuffers Boost::boost safeint_interface)
+   target_include_directories(onnxruntime_training_squeezenet PUBLIC ${ONNXRUNTIME_ROOT} ${ORTTRAINING_ROOT} ${extra_includes} ${onnxruntime_graph_header} ${onnxruntime_exec_src_dir} ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR}/onnx onnxruntime_training_runner)
+ 
+   if(UNIX AND NOT APPLE)
+@@ -166,7 +166,7 @@ if (onnxruntime_BUILD_UNIT_TESTS)
+     endif()
+   endif()
+ 
+-  onnxruntime_add_include_to_target(onnxruntime_training_bert onnxruntime_common onnx onnx_proto ${PROTOBUF_LIB} onnxruntime_training flatbuffers::flatbuffers Boost::mp11 safeint_interface)
++  onnxruntime_add_include_to_target(onnxruntime_training_bert onnxruntime_common onnx onnx_proto ${PROTOBUF_LIB} onnxruntime_training flatbuffers::flatbuffers Boost::boost safeint_interface)
+   target_include_directories(onnxruntime_training_bert PUBLIC ${CMAKE_CURRENT_BINARY_DIR} ${ONNXRUNTIME_ROOT} ${ORTTRAINING_ROOT} ${MPI_CXX_INCLUDE_DIRS} ${CXXOPTS} ${extra_includes} ${onnxruntime_graph_header} ${onnxruntime_exec_src_dir} ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR}/onnx onnxruntime_training_runner)
+ 
+   target_link_libraries(onnxruntime_training_bert PRIVATE onnxruntime_training_runner onnxruntime_training ${ONNXRUNTIME_LIBS} ${onnxruntime_EXTERNAL_LIBRARIES})
+@@ -185,7 +185,7 @@ if (onnxruntime_BUILD_UNIT_TESTS)
+     endif()
+   endif()
+ 
+-  onnxruntime_add_include_to_target(onnxruntime_training_pipeline_poc onnxruntime_common onnx onnx_proto ${PROTOBUF_LIB} onnxruntime_training flatbuffers::flatbuffers Boost::mp11 safeint_interface)
++  onnxruntime_add_include_to_target(onnxruntime_training_pipeline_poc onnxruntime_common onnx onnx_proto ${PROTOBUF_LIB} onnxruntime_training flatbuffers::flatbuffers Boost::boost safeint_interface)
+   target_include_directories(onnxruntime_training_pipeline_poc PUBLIC ${CMAKE_CURRENT_BINARY_DIR} ${ONNXRUNTIME_ROOT} ${ORTTRAINING_ROOT} ${MPI_CXX_INCLUDE_DIRS} ${CXXOPTS} ${extra_includes} ${onnxruntime_graph_header} ${onnxruntime_exec_src_dir} ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR}/onnx onnxruntime_training_runner)
+   if (onnxruntime_USE_NCCL)
+     target_include_directories(onnxruntime_training_pipeline_poc PRIVATE ${NCCL_INCLUDE_DIRS})
+diff --git a/cmake/onnxruntime_unittests.cmake b/cmake/onnxruntime_unittests.cmake
+index 7f361aa639..9e3860969c 100644
+--- a/cmake/onnxruntime_unittests.cmake
++++ b/cmake/onnxruntime_unittests.cmake
+@@ -854,7 +854,7 @@ endif()
+ if (onnxruntime_USE_NCCL)
+   target_include_directories(onnxruntime_test_utils PRIVATE ${NCCL_INCLUDE_DIRS})
+ endif()
+-onnxruntime_add_include_to_target(onnxruntime_test_utils onnxruntime_common onnxruntime_framework onnxruntime_session GTest::gtest GTest::gmock onnx onnx_proto flatbuffers::flatbuffers nlohmann_json::nlohmann_json Boost::mp11 safeint_interface Eigen3::Eigen)
++onnxruntime_add_include_to_target(onnxruntime_test_utils onnxruntime_common onnxruntime_framework onnxruntime_session GTest::gtest GTest::gmock onnx onnx_proto flatbuffers::flatbuffers nlohmann_json::nlohmann_json Boost::boost safeint_interface Eigen3::Eigen)
+ if (onnxruntime_USE_DML)
+   target_add_dml(onnxruntime_test_utils)
+ endif()
+@@ -944,7 +944,7 @@ if(NOT IOS)
+       target_compile_options(onnx_test_runner_common PRIVATE "/wd4244")
+     endif()
+     onnxruntime_add_include_to_target(onnx_test_runner_common onnxruntime_common onnxruntime_framework
+-            onnxruntime_test_utils onnx onnx_proto re2::re2 flatbuffers::flatbuffers Boost::mp11 safeint_interface Eigen3::Eigen)
++            onnxruntime_test_utils onnx onnx_proto re2::re2 flatbuffers::flatbuffers Boost::boost safeint_interface Eigen3::Eigen)
+ 
+     add_dependencies(onnx_test_runner_common onnx_test_data_proto ${onnxruntime_EXTERNAL_DEPENDENCIES})
+     target_include_directories(onnx_test_runner_common PRIVATE ${CMAKE_CURRENT_BINARY_DIR} ${ONNXRUNTIME_ROOT})
+diff --git a/cmake/onnxruntime_util.cmake b/cmake/onnxruntime_util.cmake
+index 851b68a4b6..7db9321551 100644
+--- a/cmake/onnxruntime_util.cmake
++++ b/cmake/onnxruntime_util.cmake
+@@ -9,7 +9,7 @@ file(GLOB_RECURSE onnxruntime_util_srcs CONFIGURE_DEPENDS
+ source_group(TREE ${ONNXRUNTIME_ROOT}/core FILES ${onnxruntime_util_srcs})
+ 
+ onnxruntime_add_static_library(onnxruntime_util ${onnxruntime_util_srcs})
+-onnxruntime_add_include_to_target(onnxruntime_util onnxruntime_common onnx onnx_proto ${PROTOBUF_LIB} Boost::mp11 Eigen3::Eigen)
++onnxruntime_add_include_to_target(onnxruntime_util onnxruntime_common onnx onnx_proto ${PROTOBUF_LIB} Boost::boost Eigen3::Eigen)
+ if(UNIX)
+     target_compile_options(onnxruntime_util PUBLIC "-Wno-error=comment")
+ endif()
+diff --git a/cmake/winml.cmake b/cmake/winml.cmake
+index 8f80299cc4..2701da407a 100644
+--- a/cmake/winml.cmake
++++ b/cmake/winml.cmake
+@@ -320,7 +320,7 @@ set_target_properties(winml_adapter PROPERTIES CXX_STANDARD 20)
+ set_target_properties(winml_adapter PROPERTIES CXX_STANDARD_REQUIRED ON)
+ 
+ # Compiler definitions
+-onnxruntime_add_include_to_target(winml_adapter onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers safeint_interface Boost::mp11 Eigen3::Eigen)
++onnxruntime_add_include_to_target(winml_adapter onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers safeint_interface Boost::boost Eigen3::Eigen)
+ target_include_directories(winml_adapter PRIVATE ${ONNXRUNTIME_ROOT})
+ add_dependencies(winml_adapter ${onnxruntime_EXTERNAL_DEPENDENCIES})
+ 
+@@ -404,7 +404,7 @@ target_include_directories(winml_lib_image PRIVATE ${winml_lib_api_image_dir})
+ target_include_directories(winml_lib_image PRIVATE ${winml_lib_common_dir}/inc)
+ target_include_directories(winml_lib_image PRIVATE ${ONNXRUNTIME_ROOT})
+ target_include_directories(winml_lib_image PRIVATE ${ONNXRUNTIME_INCLUDE_DIR})                                                        # for status.h
+-onnxruntime_add_include_to_target(winml_lib_image onnx onnx_proto ${PROTOBUF_LIB} re2::re2 flatbuffers::flatbuffers Boost::mp11)
++onnxruntime_add_include_to_target(winml_lib_image onnx onnx_proto ${PROTOBUF_LIB} re2::re2 flatbuffers::flatbuffers Boost::boost)
+ target_include_directories(winml_lib_image PRIVATE ${ONNXRUNTIME_INCLUDE_DIR}/core/platform/windows)
+ target_include_directories(winml_lib_image PRIVATE ${REPO_ROOT}/winml)
+ target_include_directories(winml_lib_image PRIVATE ${GSL_INCLUDE_DIR})
+@@ -515,7 +515,7 @@ target_include_directories(winml_lib_api PRIVATE ${ONNXRUNTIME_INCLUDE_DIR}/core
+ target_include_directories(winml_lib_api PRIVATE ${ONNXRUNTIME_ROOT})
+ target_include_directories(winml_lib_api PRIVATE ${ONNXRUNTIME_ROOT}/core/graph)
+ target_include_directories(winml_lib_api PRIVATE ${REPO_ROOT}/winml)
+-target_link_libraries(winml_lib_api PRIVATE ${GSL_TARGET} safeint_interface flatbuffers::flatbuffers Boost::mp11 onnx onnx_proto Eigen3::Eigen)
++target_link_libraries(winml_lib_api PRIVATE ${GSL_TARGET} safeint_interface flatbuffers::flatbuffers Boost::boost onnx onnx_proto Eigen3::Eigen)
+ 
+ # Properties
+ set_target_properties(winml_lib_api
+@@ -601,7 +601,7 @@ target_include_directories(winml_lib_api_experimental PRIVATE ${ONNXRUNTIME_INCL
+ target_include_directories(winml_lib_api_experimental PRIVATE ${REPO_ROOT}/winml)
+ target_include_directories(winml_lib_api_experimental PRIVATE ${ONNXRUNTIME_ROOT})
+ target_include_directories(winml_lib_api_experimental PRIVATE ${ONNXRUNTIME_ROOT}/core/graph)
+-onnxruntime_add_include_to_target(winml_lib_api_experimental PRIVATE ${PROTOBUF_LIB} safeint_interface flatbuffers::flatbuffers Boost::mp11 onnx onnx_proto ${GSL_TARGET} Eigen3::Eigen)
++onnxruntime_add_include_to_target(winml_lib_api_experimental PRIVATE ${PROTOBUF_LIB} safeint_interface flatbuffers::flatbuffers Boost::boost onnx onnx_proto ${GSL_TARGET} Eigen3::Eigen)
+ 
+ # Properties
+ set_target_properties(winml_lib_api_experimental
+@@ -750,7 +750,7 @@ target_include_directories(winml_dll PRIVATE ${ONNXRUNTIME_ROOT})
+ target_include_directories(winml_dll PRIVATE ${ONNXRUNTIME_ROOT}/core/graph)
+ 
+ target_include_directories(winml_dll PRIVATE ${REPO_ROOT}/winml)
+-target_link_libraries(winml_dll PRIVATE onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers safeint_interface Boost::mp11 ${GSL_TARGET} Eigen3::Eigen)
++target_link_libraries(winml_dll PRIVATE onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers safeint_interface Boost::boost ${GSL_TARGET} Eigen3::Eigen)
+ target_link_libraries(winml_dll PRIVATE debug Dbghelp)
+ # Properties
+ set_target_properties(winml_dll
+diff --git a/cmake/winml_unittests.cmake b/cmake/winml_unittests.cmake
+index eb2d69e162..7b46d1b559 100644
+--- a/cmake/winml_unittests.cmake
++++ b/cmake/winml_unittests.cmake
+@@ -273,7 +273,7 @@ target_include_directories(winml_test_adapter PRIVATE ${winml_lib_common_dir}/in
+ target_include_directories(winml_test_adapter PRIVATE ${ONNXRUNTIME_INCLUDE_DIR})
+ target_include_directories(winml_test_adapter PRIVATE ${ONNXRUNTIME_ROOT})
+ 
+-onnxruntime_add_include_to_target(winml_test_adapter onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers safeint_interface Boost::mp11)
++onnxruntime_add_include_to_target(winml_test_adapter onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers safeint_interface Boost::boost)
+ add_dependencies(winml_test_adapter ${onnxruntime_EXTERNAL_DEPENDENCIES})
+ target_include_directories(winml_test_adapter PRIVATE ${winml_adapter_dir})
+ target_include_directories(winml_test_adapter PRIVATE ${winml_lib_common_dir}/inc)
+-- 
+2.55.0
+

diff --git a/0003-System-date-and-mp11.patch b/0003-System-date-and-mp11.patch
deleted file mode 100644
index f0940cb..0000000
--- a/0003-System-date-and-mp11.patch
+++ /dev/null
@@ -1,645 +0,0 @@
-From e544a66775c4b53605857dc8385f8540fb4d1d93 Mon Sep 17 00:00:00 2001
-From: Diego Herrera <dherrera@redhat.com>
-Date: Sun, 14 Jun 2026 19:06:32 -0400
-Subject: [PATCH 03/12] System date and mp11
-
-
-diff --git a/cmake/external/onnxruntime_external_deps.cmake b/cmake/external/onnxruntime_external_deps.cmake
-index c564f68467..e64ad4a2d6 100644
---- a/cmake/external/onnxruntime_external_deps.cmake
-+++ b/cmake/external/onnxruntime_external_deps.cmake
-@@ -238,36 +238,8 @@ endif()
- set(ENABLE_DATE_TESTING  OFF CACHE BOOL "" FORCE)
- set(USE_SYSTEM_TZ_DB  ON CACHE BOOL "" FORCE)
- 
--onnxruntime_fetchcontent_declare(
--  date
--  URL ${DEP_URL_date}
--  URL_HASH SHA1=${DEP_SHA1_date}
--  EXCLUDE_FROM_ALL
--  PATCH_COMMAND
--    ${Patch_EXECUTABLE} --binary --ignore-whitespace -p1 < ${PROJECT_SOURCE_DIR}/patches/date/date.patch
--  FIND_PACKAGE_ARGS 3...<4 NAMES date
--)
--onnxruntime_fetchcontent_makeavailable(date)
--
--if(NOT TARGET Boost::mp11)
--  if(onnxruntime_USE_VCPKG)
--     find_package(Boost REQUIRED)
--     message(STATUS "Aliasing Boost::headers to Boost::mp11")
--     add_library(Boost::mp11 ALIAS Boost::headers)
--  else()
--    onnxruntime_fetchcontent_declare(
--     mp11
--     URL ${DEP_URL_mp11}
--     EXCLUDE_FROM_ALL
--     FIND_PACKAGE_ARGS NAMES Boost
--    )
--    FetchContent_Populate(mp11)
--    if(NOT TARGET Boost::mp11)
--      add_library(Boost::mp11 IMPORTED INTERFACE)
--      target_include_directories(Boost::mp11 INTERFACE $<BUILD_INTERFACE:${mp11_SOURCE_DIR}/include>)
--    endif()
--  endif()
--endif()
-+find_package(date)
-+find_package(Boost COMPONENTS mp11)
- 
- set(JSON_BuildTests OFF CACHE INTERNAL "")
- set(JSON_Install ON CACHE INTERNAL "")
-@@ -563,7 +535,7 @@ if (onnxruntime_USE_XNNPACK)
- endif()
- 
- set(onnxruntime_EXTERNAL_LIBRARIES ${onnxruntime_EXTERNAL_LIBRARIES_XNNPACK} ${WIL_TARGET} nlohmann_json::nlohmann_json
--                                   onnx onnx_proto ${PROTOBUF_LIB} re2::re2 Boost::mp11 safeint_interface
-+                                   onnx onnx_proto ${PROTOBUF_LIB} re2::re2 Boost::boost safeint_interface
-                                    flatbuffers::flatbuffers ${GSL_TARGET} ${ABSEIL_LIBS} date::date Eigen3::Eigen)
- 
- # The source code of onnx_proto is generated, we must build this lib first before starting to compile the other source code that uses ONNX protobuf types.
-diff --git a/cmake/onnxruntime_framework.cmake b/cmake/onnxruntime_framework.cmake
-index 15f3105b34..615e51beb0 100644
---- a/cmake/onnxruntime_framework.cmake
-+++ b/cmake/onnxruntime_framework.cmake
-@@ -81,7 +81,7 @@ endif()
- if (onnxruntime_ENABLE_ATEN)
-   onnxruntime_add_include_to_target(onnxruntime_framework dlpack::dlpack)
- endif()
--onnxruntime_add_include_to_target(onnxruntime_framework onnxruntime_common onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers safeint_interface Boost::mp11 nlohmann_json::nlohmann_json Eigen3::Eigen)
-+onnxruntime_add_include_to_target(onnxruntime_framework onnxruntime_common onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers safeint_interface Boost::boost nlohmann_json::nlohmann_json Eigen3::Eigen)
- 
- if (onnxruntime_USE_MIMALLOC)
-     onnxruntime_add_include_to_target(onnxruntime_framework mimalloc-static)
-diff --git a/cmake/onnxruntime_graph.cmake b/cmake/onnxruntime_graph.cmake
-index fba1a680bb..11fa2bbbe6 100644
---- a/cmake/onnxruntime_graph.cmake
-+++ b/cmake/onnxruntime_graph.cmake
-@@ -96,7 +96,7 @@ endif()
- 
- onnxruntime_add_static_library(onnxruntime_graph ${onnxruntime_graph_src} ${orttraining_graph_src})
- add_dependencies(onnxruntime_graph onnx_proto flatbuffers::flatbuffers)
--onnxruntime_add_include_to_target(onnxruntime_graph onnxruntime_common ${WIL_TARGET} onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers safeint_interface Boost::mp11)
-+onnxruntime_add_include_to_target(onnxruntime_graph onnxruntime_common ${WIL_TARGET} onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers safeint_interface Boost::boost)
- 
- if (MSVC)
-   set(ONNX_PROTOBUF_NATVIS_FILE "onnx_protobuf.natvis")
-diff --git a/cmake/onnxruntime_lora.cmake b/cmake/onnxruntime_lora.cmake
-index e0579f571e..130ca3d5e1 100644
---- a/cmake/onnxruntime_lora.cmake
-+++ b/cmake/onnxruntime_lora.cmake
-@@ -10,7 +10,7 @@ file(GLOB onnxruntime_lora_srcs CONFIGURE_DEPENDS
- source_group(TREE ${REPO_ROOT} FILES ${onnxruntime_lora_srcs})
- 
- onnxruntime_add_static_library(onnxruntime_lora ${onnxruntime_lora_srcs})
--onnxruntime_add_include_to_target(onnxruntime_lora onnxruntime_framework onnxruntime_common onnx flatbuffers::flatbuffers Boost::mp11 ${GSL_TARGET})
-+onnxruntime_add_include_to_target(onnxruntime_lora onnxruntime_framework onnxruntime_common onnx flatbuffers::flatbuffers Boost::boost ${GSL_TARGET})
- 
- if(onnxruntime_ENABLE_INSTRUMENT)
-   target_compile_definitions(onnxruntime_lora PUBLIC ONNXRUNTIME_ENABLE_INSTRUMENT)
-diff --git a/cmake/onnxruntime_opschema_lib.cmake b/cmake/onnxruntime_opschema_lib.cmake
-index 8a5b4bc907..52dd9ba343 100644
---- a/cmake/onnxruntime_opschema_lib.cmake
-+++ b/cmake/onnxruntime_opschema_lib.cmake
-@@ -27,10 +27,10 @@ target_compile_options(ort_opschema_lib PRIVATE -D_OPSCHEMA_LIB_=1)
- if(NOT MSVC)
-   target_compile_options(ort_opschema_lib PRIVATE "-Wno-parentheses")
- endif()
--set (OPSCHEMA_LIB_DEPENDENCIES onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers safeint_interface Boost::mp11 safeint_interface)
-+set (OPSCHEMA_LIB_DEPENDENCIES onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers safeint_interface Boost::boost safeint_interface)
- 
- # ${CMAKE_CURRENT_BINARY_DIR} is so that #include "onnxruntime_config.h" is found
- target_include_directories(ort_opschema_lib PRIVATE ${ONNXRUNTIME_ROOT} ${ORTTRAINING_ROOT} ${CMAKE_CURRENT_BINARY_DIR})
--onnxruntime_add_include_to_target(ort_opschema_lib onnxruntime_common onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::mp11 safeint_interface)
-+onnxruntime_add_include_to_target(ort_opschema_lib onnxruntime_common onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::boost safeint_interface)
- add_dependencies(ort_opschema_lib ${OPSCHEMA_LIB_DEPENDENCIES})
- 
-diff --git a/cmake/onnxruntime_optimizer.cmake b/cmake/onnxruntime_optimizer.cmake
-index c4aa2c522b..d992afef26 100644
---- a/cmake/onnxruntime_optimizer.cmake
-+++ b/cmake/onnxruntime_optimizer.cmake
-@@ -115,7 +115,7 @@ endif()
- 
- onnxruntime_add_static_library(onnxruntime_optimizer ${onnxruntime_optimizer_srcs})
- 
--onnxruntime_add_include_to_target(onnxruntime_optimizer onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::mp11 safeint_interface)
-+onnxruntime_add_include_to_target(onnxruntime_optimizer onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::boost safeint_interface)
- target_include_directories(onnxruntime_optimizer PRIVATE ${ONNXRUNTIME_ROOT})
- if (onnxruntime_ENABLE_TRAINING)
-   target_include_directories(onnxruntime_optimizer PRIVATE ${ORTTRAINING_ROOT})
-diff --git a/cmake/onnxruntime_providers_acl.cmake b/cmake/onnxruntime_providers_acl.cmake
-index afa41d72c1..baa4de0b4f 100644
---- a/cmake/onnxruntime_providers_acl.cmake
-+++ b/cmake/onnxruntime_providers_acl.cmake
-@@ -10,7 +10,7 @@
-   source_group(TREE ${ONNXRUNTIME_ROOT}/core FILES ${onnxruntime_providers_acl_cc_srcs})
-   onnxruntime_add_static_library(onnxruntime_providers_acl ${onnxruntime_providers_acl_cc_srcs})
-   onnxruntime_add_include_to_target(onnxruntime_providers_acl
--    onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::mp11 safeint_interface Eigen3::Eigen
-+    onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::boost safeint_interface Eigen3::Eigen
-   )
- 
-   if (DEFINED ENV{LD_LIBRARY_PATH})
-diff --git a/cmake/onnxruntime_providers_azure.cmake b/cmake/onnxruntime_providers_azure.cmake
-index 1b03563848..b856ce2e56 100644
---- a/cmake/onnxruntime_providers_azure.cmake
-+++ b/cmake/onnxruntime_providers_azure.cmake
-@@ -8,7 +8,7 @@
-   source_group(TREE ${ONNXRUNTIME_ROOT}/core FILES ${onnxruntime_providers_azure_src})
-   onnxruntime_add_static_library(onnxruntime_providers_azure ${onnxruntime_providers_azure_src})
-   add_dependencies(onnxruntime_providers_azure ${onnxruntime_EXTERNAL_DEPENDENCIES})
--  onnxruntime_add_include_to_target(onnxruntime_providers_azure onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::mp11)
-+  onnxruntime_add_include_to_target(onnxruntime_providers_azure onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::boost)
-   target_link_libraries(onnxruntime_providers_azure PRIVATE onnx onnxruntime_common onnxruntime_framework)
-   set_target_properties(onnxruntime_providers_azure PROPERTIES FOLDER "ONNXRuntime")
-   set_target_properties(onnxruntime_providers_azure PROPERTIES LINKER_LANGUAGE CXX)
-diff --git a/cmake/onnxruntime_providers_cann.cmake b/cmake/onnxruntime_providers_cann.cmake
-index 30c13c0b4a..fa5ee74b26 100644
---- a/cmake/onnxruntime_providers_cann.cmake
-+++ b/cmake/onnxruntime_providers_cann.cmake
-@@ -18,7 +18,7 @@
-   set(onnxruntime_providers_cann_src ${onnxruntime_providers_cann_cc_srcs} ${onnxruntime_providers_cann_shared_srcs})
- 
-   onnxruntime_add_shared_library_module(onnxruntime_providers_cann ${onnxruntime_providers_cann_src})
--  onnxruntime_add_include_to_target(onnxruntime_providers_cann onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::mp11 safeint_interface)
-+  onnxruntime_add_include_to_target(onnxruntime_providers_cann onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::boost safeint_interface)
- 
-   add_dependencies(onnxruntime_providers_cann onnxruntime_providers_shared ${onnxruntime_EXTERNAL_DEPENDENCIES})
-   target_link_libraries(onnxruntime_providers_cann PRIVATE Eigen3::Eigen ascendcl acl_op_compiler fmk_onnx_parser  ${ABSEIL_LIBS} ${ONNXRUNTIME_PROVIDERS_SHARED})
-diff --git a/cmake/onnxruntime_providers_coreml.cmake b/cmake/onnxruntime_providers_coreml.cmake
-index 757198ffb6..10d6cb9271 100644
---- a/cmake/onnxruntime_providers_coreml.cmake
-+++ b/cmake/onnxruntime_providers_coreml.cmake
-@@ -151,7 +151,7 @@ onnxruntime_add_static_library(onnxruntime_providers_coreml
- )
- 
- onnxruntime_add_include_to_target(onnxruntime_providers_coreml
--  onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::mp11
-+  onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::boost
-   safeint_interface nlohmann_json::nlohmann_json
- )
- 
-diff --git a/cmake/onnxruntime_providers_cpu.cmake b/cmake/onnxruntime_providers_cpu.cmake
-index f6efcb3fad..c7618c85b8 100644
---- a/cmake/onnxruntime_providers_cpu.cmake
-+++ b/cmake/onnxruntime_providers_cpu.cmake
-@@ -154,7 +154,7 @@ if (MSVC)
- #      target_compile_options(onnxruntime_providers PRIVATE "/wd4244")
- #   endif()
- endif()
--onnxruntime_add_include_to_target(onnxruntime_providers onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::mp11 safeint_interface)
-+onnxruntime_add_include_to_target(onnxruntime_providers onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::boost safeint_interface)
- 
- if (onnxruntime_BUILD_MS_EXPERIMENTAL_OPS)
-   target_compile_definitions(onnxruntime_providers PRIVATE BUILD_MS_EXPERIMENTAL_OPS=1)
-@@ -239,7 +239,7 @@ if (NOT onnxruntime_MINIMAL_BUILD AND NOT onnxruntime_EXTENDED_MINIMAL_BUILD
- 
- 
-   # On Apple/Unix we don't directly link with this library as we load it with RTLD_GLOBAL, so this is only set to the actual library on WIN32
--  # But, in exchange we need to manually add Boost::mp11 to include dirs for every EP.
-+  # But, in exchange we need to manually add Boost::boost to include dirs for every EP.
-   # It is because "provider_api.h" includes core/framework/op_kernel.h which includes op_kernel.h which includes "boost/mp11.hpp"
-   set(ONNXRUNTIME_PROVIDERS_SHARED)
- 
-diff --git a/cmake/onnxruntime_providers_cuda.cmake b/cmake/onnxruntime_providers_cuda.cmake
-index 624057dd43..78e1b681c1 100644
---- a/cmake/onnxruntime_providers_cuda.cmake
-+++ b/cmake/onnxruntime_providers_cuda.cmake
-@@ -300,7 +300,7 @@
-     add_dependencies(${target} onnxruntime_providers_shared ${onnxruntime_EXTERNAL_DEPENDENCIES})
-     if(onnxruntime_CUDA_MINIMAL)
-       target_compile_definitions(${target} PRIVATE USE_CUDA_MINIMAL)
--      target_link_libraries(${target} PRIVATE ${ABSEIL_LIBS} ${ONNXRUNTIME_PROVIDERS_SHARED} Boost::mp11 safeint_interface CUDA::cudart)
-+      target_link_libraries(${target} PRIVATE ${ABSEIL_LIBS} ${ONNXRUNTIME_PROVIDERS_SHARED} Boost::boost safeint_interface CUDA::cudart)
-     else()
-       include(cudnn_frontend) # also defines CUDNN::*
-       if (onnxruntime_USE_CUDA_NHWC_OPS)
-@@ -311,7 +311,7 @@
-         endif()
-       endif()
-       target_link_libraries(${target} PRIVATE CUDA::cublasLt CUDA::cublas CUDNN::cudnn_all cudnn_frontend CUDA::curand CUDA::cufft CUDA::cudart
--              ${ABSEIL_LIBS} ${ONNXRUNTIME_PROVIDERS_SHARED} Boost::mp11 safeint_interface)
-+              ${ABSEIL_LIBS} ${ONNXRUNTIME_PROVIDERS_SHARED} Boost::boost safeint_interface)
-     endif()
- 
-     include(cutlass)
-diff --git a/cmake/onnxruntime_providers_cuda_plugin.cmake b/cmake/onnxruntime_providers_cuda_plugin.cmake
-index e345c944dc..e27a6fa22b 100644
---- a/cmake/onnxruntime_providers_cuda_plugin.cmake
-+++ b/cmake/onnxruntime_providers_cuda_plugin.cmake
-@@ -252,7 +252,7 @@ target_link_libraries(onnxruntime_providers_cuda_plugin PRIVATE
-     CUDA::cufft
-     CUDNN::cudnn_all
-     cudnn_frontend
--    Boost::mp11
-+    Boost::boost
-     safeint_interface
-     onnxruntime_framework
-     onnxruntime_graph
-diff --git a/cmake/onnxruntime_providers_dml.cmake b/cmake/onnxruntime_providers_dml.cmake
-index ac4f0103ea..19ffe5b50b 100644
---- a/cmake/onnxruntime_providers_dml.cmake
-+++ b/cmake/onnxruntime_providers_dml.cmake
-@@ -9,7 +9,7 @@
-   source_group(TREE ${ONNXRUNTIME_ROOT}/core FILES ${onnxruntime_providers_dml_cc_srcs})
-   onnxruntime_add_static_library(onnxruntime_providers_dml ${onnxruntime_providers_dml_cc_srcs})
-   onnxruntime_add_include_to_target(onnxruntime_providers_dml
--    onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::mp11 safeint_interface ${WIL_TARGET}
-+    onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::boost safeint_interface ${WIL_TARGET}
-   )
-   if(TARGET Microsoft::DirectX-Headers)
-     onnxruntime_add_include_to_target(onnxruntime_providers_dml Microsoft::DirectX-Headers)
-diff --git a/cmake/onnxruntime_providers_dnnl.cmake b/cmake/onnxruntime_providers_dnnl.cmake
-index 07926a34d5..965c4df7a0 100644
---- a/cmake/onnxruntime_providers_dnnl.cmake
-+++ b/cmake/onnxruntime_providers_dnnl.cmake
-@@ -19,7 +19,7 @@
-   add_dependencies(onnxruntime_providers_dnnl onnxruntime_providers_shared project_dnnl ${onnxruntime_EXTERNAL_DEPENDENCIES})
-   target_include_directories(onnxruntime_providers_dnnl PRIVATE ${ONNXRUNTIME_ROOT} ${DNNL_INCLUDE_DIR} ${DNNL_OCL_INCLUDE_DIR})
-   # ${CMAKE_CURRENT_BINARY_DIR} is so that #include "onnxruntime_config.h" inside tensor_shape.h is found
--  target_link_libraries(onnxruntime_providers_dnnl PRIVATE dnnl ${ONNXRUNTIME_PROVIDERS_SHARED} Boost::mp11 ${ABSEIL_LIBS} ${GSL_TARGET} safeint_interface Eigen3::Eigen)
-+  target_link_libraries(onnxruntime_providers_dnnl PRIVATE dnnl ${ONNXRUNTIME_PROVIDERS_SHARED} Boost::boost ${ABSEIL_LIBS} ${GSL_TARGET} safeint_interface Eigen3::Eigen)
-   install(FILES ${PROJECT_SOURCE_DIR}/../include/onnxruntime/core/providers/dnnl/dnnl_provider_options.h
-     DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/onnxruntime/)
-   set_target_properties(onnxruntime_providers_dnnl PROPERTIES FOLDER "ONNXRuntime")
-diff --git a/cmake/onnxruntime_providers_js.cmake b/cmake/onnxruntime_providers_js.cmake
-index fefbab5082..800c31b83d 100644
---- a/cmake/onnxruntime_providers_js.cmake
-+++ b/cmake/onnxruntime_providers_js.cmake
-@@ -19,7 +19,7 @@
-   source_group(TREE ${ONNXRUNTIME_ROOT} FILES ${onnxruntime_providers_js_cc_srcs})
-   onnxruntime_add_static_library(onnxruntime_providers_js ${onnxruntime_providers_js_cc_srcs})
-   onnxruntime_add_include_to_target(onnxruntime_providers_js
--    onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers Boost::mp11 Eigen3::Eigen
-+    onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers Boost::boost Eigen3::Eigen
-   )
- 
-   add_dependencies(onnxruntime_providers_js ${onnxruntime_EXTERNAL_DEPENDENCIES})
-diff --git a/cmake/onnxruntime_providers_migraphx.cmake b/cmake/onnxruntime_providers_migraphx.cmake
-index 8cb5dcf951..dae4ef20ee 100644
---- a/cmake/onnxruntime_providers_migraphx.cmake
-+++ b/cmake/onnxruntime_providers_migraphx.cmake
-@@ -31,9 +31,9 @@
-   )
-   source_group(TREE ${ONNXRUNTIME_ROOT}/core FILES ${onnxruntime_providers_migraphx_cc_srcs})
-   onnxruntime_add_shared_library(onnxruntime_providers_migraphx ${onnxruntime_providers_migraphx_cc_srcs})
--  onnxruntime_add_include_to_target(onnxruntime_providers_migraphx onnxruntime_common onnx flatbuffers::flatbuffers Boost::mp11 safeint_interface)
-+  onnxruntime_add_include_to_target(onnxruntime_providers_migraphx onnxruntime_common onnx flatbuffers::flatbuffers Boost::boost safeint_interface)
-   add_dependencies(onnxruntime_providers_migraphx ${onnxruntime_EXTERNAL_DEPENDENCIES})
--  target_link_libraries(onnxruntime_providers_migraphx PRIVATE migraphx::c hip::host ${ONNXRUNTIME_PROVIDERS_SHARED} onnx flatbuffers::flatbuffers Boost::mp11 safeint_interface)
-+  target_link_libraries(onnxruntime_providers_migraphx PRIVATE migraphx::c hip::host ${ONNXRUNTIME_PROVIDERS_SHARED} onnx flatbuffers::flatbuffers Boost::boost safeint_interface)
-   target_include_directories(onnxruntime_providers_migraphx PRIVATE ${ONNXRUNTIME_ROOT} ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR}/migraphx/onnxruntime)
-   set_target_properties(onnxruntime_providers_migraphx PROPERTIES LINKER_LANGUAGE CXX)
-   set_target_properties(onnxruntime_providers_migraphx PROPERTIES FOLDER "ONNXRuntime")
-diff --git a/cmake/onnxruntime_providers_nnapi.cmake b/cmake/onnxruntime_providers_nnapi.cmake
-index 06364ebd49..b202c15e11 100644
---- a/cmake/onnxruntime_providers_nnapi.cmake
-+++ b/cmake/onnxruntime_providers_nnapi.cmake
-@@ -60,7 +60,7 @@
-   source_group(TREE ${ONNXRUNTIME_ROOT}/core FILES ${onnxruntime_providers_nnapi_cc_srcs})
-   onnxruntime_add_static_library(onnxruntime_providers_nnapi ${onnxruntime_providers_nnapi_cc_srcs})
-   onnxruntime_add_include_to_target(onnxruntime_providers_nnapi
--    onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::mp11 safeint_interface
-+    onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::boost safeint_interface
-   )
-   target_link_libraries(onnxruntime_providers_nnapi)
-   add_dependencies(onnxruntime_providers_nnapi onnx ${onnxruntime_EXTERNAL_DEPENDENCIES})
-diff --git a/cmake/onnxruntime_providers_nv.cmake b/cmake/onnxruntime_providers_nv.cmake
-index 92fc0ccadd..38830f9c4d 100644
---- a/cmake/onnxruntime_providers_nv.cmake
-+++ b/cmake/onnxruntime_providers_nv.cmake
-@@ -147,7 +147,7 @@ endif ()
-   source_group(TREE ${ONNXRUNTIME_ROOT}/core FILES ${onnxruntime_providers_nv_tensorrt_rtx_cc_srcs})
-   onnxruntime_add_shared_library_module(onnxruntime_providers_nv_tensorrt_rtx ${onnxruntime_providers_nv_tensorrt_rtx_cc_srcs})
-   onnxruntime_add_include_to_target(onnxruntime_providers_nv_tensorrt_rtx onnxruntime_common)
--  target_link_libraries(onnxruntime_providers_nv_tensorrt_rtx PRIVATE Eigen3::Eigen  onnx flatbuffers::flatbuffers Boost::mp11 safeint_interface Eigen3::Eigen)
-+  target_link_libraries(onnxruntime_providers_nv_tensorrt_rtx PRIVATE Eigen3::Eigen  onnx flatbuffers::flatbuffers Boost::boost safeint_interface Eigen3::Eigen)
-   add_dependencies(onnxruntime_providers_nv_tensorrt_rtx onnxruntime_providers_shared ${onnxruntime_EXTERNAL_DEPENDENCIES})
-   # Make NVML linkage optional: only link CUDA::nvml if the target exists.
-   set(_nvml_lib "")
-@@ -155,7 +155,7 @@ endif ()
-     set(_nvml_lib CUDA::nvml)
-   endif()
-   if (onnxruntime_USE_TENSORRT_BUILTIN_PARSER)
--    target_link_libraries(onnxruntime_providers_nv_tensorrt_rtx PRIVATE ${trt_link_libs} ${ONNXRUNTIME_PROVIDERS_SHARED} ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::mp11 safeint_interface ${ABSEIL_LIBS} ${_nvml_lib} PUBLIC CUDA::cudart CUDA::cuda_driver)
-+    target_link_libraries(onnxruntime_providers_nv_tensorrt_rtx PRIVATE ${trt_link_libs} ${ONNXRUNTIME_PROVIDERS_SHARED} ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::boost safeint_interface ${ABSEIL_LIBS} ${_nvml_lib} PUBLIC CUDA::cudart CUDA::cuda_driver)
-   else()
-     target_link_libraries(onnxruntime_providers_nv_tensorrt_rtx PRIVATE ${onnxparser_link_libs} ${trt_link_libs} ${ONNXRUNTIME_PROVIDERS_SHARED} ${PROTOBUF_LIB} flatbuffers::flatbuffers ${ABSEIL_LIBS} ${_nvml_lib} PUBLIC CUDA::cudart CUDA::cuda_driver)
-   endif()
-diff --git a/cmake/onnxruntime_providers_openvino.cmake b/cmake/onnxruntime_providers_openvino.cmake
-index 882fc56d9a..819bdb7adc 100644
---- a/cmake/onnxruntime_providers_openvino.cmake
-+++ b/cmake/onnxruntime_providers_openvino.cmake
-@@ -54,7 +54,7 @@
-   endif()
-   add_dependencies(onnxruntime_providers_openvino onnxruntime_providers_shared ${onnxruntime_EXTERNAL_DEPENDENCIES})
-   target_include_directories(onnxruntime_providers_openvino SYSTEM PUBLIC ${ONNXRUNTIME_ROOT} ${CMAKE_CURRENT_BINARY_DIR} ${OpenVINO_INCLUDE_DIR} ${OPENVINO_INCLUDE_DIR_LIST} ${PYTHON_INCLUDE_DIRS} $ENV{OPENCL_INCS} $ENV{OPENCL_INCS}/../../cl_headers/)
--  target_link_libraries(onnxruntime_providers_openvino ${ONNXRUNTIME_PROVIDERS_SHARED} Boost::mp11 ${OPENVINO_LIB_LIST} ${ABSEIL_LIBS} Eigen3::Eigen onnx_proto)
-+  target_link_libraries(onnxruntime_providers_openvino ${ONNXRUNTIME_PROVIDERS_SHARED} Boost::boost ${OPENVINO_LIB_LIST} ${ABSEIL_LIBS} Eigen3::Eigen onnx_proto)
- 
-   # ETW TraceLogging depends on Advapi32 on Windows
-   if(WIN32)
-diff --git a/cmake/onnxruntime_providers_qnn.cmake b/cmake/onnxruntime_providers_qnn.cmake
-index f499c83d5f..fad6234cb3 100644
---- a/cmake/onnxruntime_providers_qnn.cmake
-+++ b/cmake/onnxruntime_providers_qnn.cmake
-@@ -43,7 +43,7 @@
-     onnxruntime_add_static_library(onnxruntime_providers_qnn ${onnxruntime_providers_qnn_srcs})
-     onnxruntime_add_include_to_target(onnxruntime_providers_qnn onnxruntime_common onnxruntime_framework onnx
-                                                                 onnx_proto protobuf::libprotobuf-lite
--                                                                flatbuffers::flatbuffers Boost::mp11
-+                                                                flatbuffers::flatbuffers Boost::boost
-                                                                 nlohmann_json::nlohmann_json)
-     add_dependencies(onnxruntime_providers_qnn onnx ${onnxruntime_EXTERNAL_DEPENDENCIES})
-     set_target_properties(onnxruntime_providers_qnn PROPERTIES CXX_STANDARD_REQUIRED ON)
-@@ -94,7 +94,7 @@
- 
-     onnxruntime_add_shared_library_module(onnxruntime_providers_qnn ${onnxruntime_providers_qnn_all_srcs})
-     onnxruntime_add_include_to_target(onnxruntime_providers_qnn ${ONNXRUNTIME_PROVIDERS_SHARED} ${GSL_TARGET} onnx
--                                                                onnxruntime_common Boost::mp11 safeint_interface
-+                                                                onnxruntime_common Boost::boost safeint_interface
-                                                                 nlohmann_json::nlohmann_json)
-     target_link_libraries(onnxruntime_providers_qnn PRIVATE ${ONNXRUNTIME_PROVIDERS_SHARED} ${ABSEIL_LIBS} ${CMAKE_DL_LIBS})
-     add_dependencies(onnxruntime_providers_qnn onnxruntime_providers_shared ${onnxruntime_EXTERNAL_DEPENDENCIES})
-diff --git a/cmake/onnxruntime_providers_rknpu.cmake b/cmake/onnxruntime_providers_rknpu.cmake
-index 831df84aa6..312cf86e68 100644
---- a/cmake/onnxruntime_providers_rknpu.cmake
-+++ b/cmake/onnxruntime_providers_rknpu.cmake
-@@ -24,7 +24,7 @@
-   source_group(TREE ${ONNXRUNTIME_ROOT}/core FILES ${onnxruntime_providers_rknpu_cc_srcs})
-   onnxruntime_add_static_library(onnxruntime_providers_rknpu ${onnxruntime_providers_rknpu_cc_srcs})
-   onnxruntime_add_include_to_target(onnxruntime_providers_rknpu
--    onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::mp11 safeint_interface
-+    onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::boost safeint_interface
-   )
-   target_link_libraries(onnxruntime_providers_rknpu PRIVATE -lrknpu_ddk)
-   add_dependencies(onnxruntime_providers_rknpu onnx ${onnxruntime_EXTERNAL_DEPENDENCIES})
-diff --git a/cmake/onnxruntime_providers_tensorrt.cmake b/cmake/onnxruntime_providers_tensorrt.cmake
-index 4184e0b049..d0bfdbee0d 100644
---- a/cmake/onnxruntime_providers_tensorrt.cmake
-+++ b/cmake/onnxruntime_providers_tensorrt.cmake
-@@ -175,10 +175,10 @@
- 
-   onnxruntime_add_shared_library_module(onnxruntime_providers_tensorrt ${onnxruntime_providers_tensorrt_all_srcs})
-   onnxruntime_add_include_to_target(onnxruntime_providers_tensorrt onnxruntime_common)
--  target_link_libraries(onnxruntime_providers_tensorrt PRIVATE Eigen3::Eigen  onnx flatbuffers::flatbuffers Boost::mp11 safeint_interface Eigen3::Eigen)
-+  target_link_libraries(onnxruntime_providers_tensorrt PRIVATE Eigen3::Eigen  onnx flatbuffers::flatbuffers Boost::boost safeint_interface Eigen3::Eigen)
-   add_dependencies(onnxruntime_providers_tensorrt onnxruntime_providers_shared ${onnxruntime_EXTERNAL_DEPENDENCIES})
-   if (onnxruntime_USE_TENSORRT_BUILTIN_PARSER)
--    target_link_libraries(onnxruntime_providers_tensorrt PRIVATE ${trt_link_libs} ${ONNXRUNTIME_PROVIDERS_SHARED} ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::mp11 safeint_interface ${ABSEIL_LIBS} PUBLIC CUDA::cudart)
-+    target_link_libraries(onnxruntime_providers_tensorrt PRIVATE ${trt_link_libs} ${ONNXRUNTIME_PROVIDERS_SHARED} ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::boost safeint_interface ${ABSEIL_LIBS} PUBLIC CUDA::cudart)
-   else()
-     target_link_libraries(onnxruntime_providers_tensorrt PRIVATE ${onnxparser_link_libs} ${trt_link_libs} ${ONNXRUNTIME_PROVIDERS_SHARED} ${PROTOBUF_LIB} flatbuffers::flatbuffers ${ABSEIL_LIBS} PUBLIC CUDA::cudart)
-   endif()
-diff --git a/cmake/onnxruntime_providers_vitisai.cmake b/cmake/onnxruntime_providers_vitisai.cmake
-index d59c944c89..f925190908 100644
---- a/cmake/onnxruntime_providers_vitisai.cmake
-+++ b/cmake/onnxruntime_providers_vitisai.cmake
-@@ -29,7 +29,7 @@
-     # FILE_NAME preprocessor definition is used in onnxruntime_providers_vitisai.rc
-     target_compile_definitions(onnxruntime_providers_vitisai PRIVATE FILE_NAME=\"onnxruntime_providers_vitisai.dll\")
-   endif()
--  onnxruntime_add_include_to_target(onnxruntime_providers_vitisai ${ONNXRUNTIME_PROVIDERS_SHARED} ${GSL_TARGET} safeint_interface flatbuffers::flatbuffers  Boost::mp11)
-+  onnxruntime_add_include_to_target(onnxruntime_providers_vitisai ${ONNXRUNTIME_PROVIDERS_SHARED} ${GSL_TARGET} safeint_interface flatbuffers::flatbuffers  Boost::boost)
-   target_link_libraries(onnxruntime_providers_vitisai PRIVATE ${ONNXRUNTIME_PROVIDERS_SHARED} ${ABSEIL_LIBS})
-   if(MSVC)
-     onnxruntime_add_include_to_target(onnxruntime_providers_vitisai dbghelp)
-diff --git a/cmake/onnxruntime_providers_vsinpu.cmake b/cmake/onnxruntime_providers_vsinpu.cmake
-index e3b6c3c302..1d86af395e 100644
---- a/cmake/onnxruntime_providers_vsinpu.cmake
-+++ b/cmake/onnxruntime_providers_vsinpu.cmake
-@@ -10,7 +10,7 @@
-   source_group(TREE ${ONNXRUNTIME_ROOT}/core FILES ${onnxruntime_providers_vsinpu_srcs})
-   add_library(onnxruntime_providers_vsinpu ${onnxruntime_providers_vsinpu_srcs})
-   onnxruntime_add_include_to_target(onnxruntime_providers_vsinpu
--    onnxruntime_common onnxruntime_framework onnx onnx_proto protobuf::libprotobuf-lite flatbuffers Boost::mp11
-+    onnxruntime_common onnxruntime_framework onnx onnx_proto protobuf::libprotobuf-lite flatbuffers Boost::boost
-     safeint_interface )
-   add_dependencies(onnxruntime_providers_vsinpu ${onnxruntime_EXTERNAL_DEPENDENCIES})
-   set_target_properties(onnxruntime_providers_vsinpu PROPERTIES FOLDER "ONNXRuntime" LINKER_LANGUAGE CXX)
-diff --git a/cmake/onnxruntime_providers_webgpu.cmake b/cmake/onnxruntime_providers_webgpu.cmake
-index f64aafa161..fbbaaecc9d 100644
---- a/cmake/onnxruntime_providers_webgpu.cmake
-+++ b/cmake/onnxruntime_providers_webgpu.cmake
-@@ -45,7 +45,7 @@
-     source_group(TREE ${ONNXRUNTIME_ROOT} FILES ${onnxruntime_providers_webgpu_cc_srcs})
-     onnxruntime_add_static_library(onnxruntime_providers_webgpu ${onnxruntime_providers_webgpu_cc_srcs})
-     onnxruntime_add_include_to_target(onnxruntime_providers_webgpu
--      onnxruntime_common onnx onnx_proto flatbuffers::flatbuffers Boost::mp11 safeint_interface)
-+      onnxruntime_common onnx onnx_proto flatbuffers::flatbuffers Boost::boost safeint_interface)
-   else()
-     #
-     # Build WebGPU EP as a shared library
-@@ -63,7 +63,7 @@
-         onnx
-         onnx_proto
-         flatbuffers::flatbuffers
--        Boost::mp11
-+        Boost::boost
-         safeint_interface)
- 
-     target_link_libraries(onnxruntime_providers_webgpu PRIVATE
-diff --git a/cmake/onnxruntime_providers_webnn.cmake b/cmake/onnxruntime_providers_webnn.cmake
-index da5720a9f7..d27275cbbc 100644
---- a/cmake/onnxruntime_providers_webnn.cmake
-+++ b/cmake/onnxruntime_providers_webnn.cmake
-@@ -18,7 +18,7 @@
- 
-   source_group(TREE ${REPO_ROOT} FILES ${onnxruntime_providers_webnn_cc_srcs})
-   onnxruntime_add_static_library(onnxruntime_providers_webnn ${onnxruntime_providers_webnn_cc_srcs})
--  onnxruntime_add_include_to_target(onnxruntime_providers_webnn onnxruntime_common onnx onnx_proto flatbuffers::flatbuffers Boost::mp11 safeint_interface)
-+  onnxruntime_add_include_to_target(onnxruntime_providers_webnn onnxruntime_common onnx onnx_proto flatbuffers::flatbuffers Boost::boost safeint_interface)
- 
-   add_dependencies(onnxruntime_providers_webnn onnx ${onnxruntime_EXTERNAL_DEPENDENCIES})
-   set_target_properties(onnxruntime_providers_webnn PROPERTIES FOLDER "ONNXRuntime")
-diff --git a/cmake/onnxruntime_providers_xnnpack.cmake b/cmake/onnxruntime_providers_xnnpack.cmake
-index 1fbe553fa5..614417b80a 100644
---- a/cmake/onnxruntime_providers_xnnpack.cmake
-+++ b/cmake/onnxruntime_providers_xnnpack.cmake
-@@ -13,7 +13,7 @@
-   onnxruntime_add_static_library(onnxruntime_providers_xnnpack ${onnxruntime_providers_xnnpack_cc_srcs})
-   onnxruntime_add_include_to_target(onnxruntime_providers_xnnpack
-     onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} XNNPACK pthreadpool
--    flatbuffers::flatbuffers Boost::mp11 safeint_interface
-+    flatbuffers::flatbuffers Boost::boost safeint_interface
-   )
- 
-   # TODO fix stringop-overflow warnings
-diff --git a/cmake/onnxruntime_session.cmake b/cmake/onnxruntime_session.cmake
-index 1e3357464e..adcfc219b6 100644
---- a/cmake/onnxruntime_session.cmake
-+++ b/cmake/onnxruntime_session.cmake
-@@ -42,7 +42,7 @@ endif()
- source_group(TREE ${REPO_ROOT} FILES ${onnxruntime_session_srcs})
- 
- onnxruntime_add_static_library(onnxruntime_session ${onnxruntime_session_srcs})
--onnxruntime_add_include_to_target(onnxruntime_session onnxruntime_common onnxruntime_framework onnxruntime_lora onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::mp11 safeint_interface nlohmann_json::nlohmann_json Eigen3::Eigen)
-+onnxruntime_add_include_to_target(onnxruntime_session onnxruntime_common onnxruntime_framework onnxruntime_lora onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::boost safeint_interface nlohmann_json::nlohmann_json Eigen3::Eigen)
- target_link_libraries(onnxruntime_session PRIVATE onnxruntime_lora)
- if(onnxruntime_ENABLE_INSTRUMENT)
-   target_compile_definitions(onnxruntime_session PUBLIC ONNXRUNTIME_ENABLE_INSTRUMENT)
-diff --git a/cmake/onnxruntime_training.cmake b/cmake/onnxruntime_training.cmake
-index fab40da157..818d002395 100644
---- a/cmake/onnxruntime_training.cmake
-+++ b/cmake/onnxruntime_training.cmake
-@@ -30,7 +30,7 @@ list(REMOVE_ITEM onnxruntime_training_srcs ${onnxruntime_training_framework_excl
- 
- onnxruntime_add_static_library(onnxruntime_training ${onnxruntime_training_srcs})
- add_dependencies(onnxruntime_training onnx tensorboard ${onnxruntime_EXTERNAL_DEPENDENCIES})
--onnxruntime_add_include_to_target(onnxruntime_training onnxruntime_common onnx onnx_proto tensorboard ${PROTOBUF_LIB} flatbuffers::flatbuffers re2::re2 Boost::mp11 safeint_interface Eigen3::Eigen)
-+onnxruntime_add_include_to_target(onnxruntime_training onnxruntime_common onnx onnx_proto tensorboard ${PROTOBUF_LIB} flatbuffers::flatbuffers re2::re2 Boost::boost safeint_interface Eigen3::Eigen)
- 
- # fix event_writer.cc 4100 warning
- if(WIN32)
-@@ -73,7 +73,7 @@ if (onnxruntime_BUILD_UNIT_TESTS)
-     target_link_libraries(onnxruntime_training_runner PRIVATE Python::Python)
-   endif()
- 
--  onnxruntime_add_include_to_target(onnxruntime_training_runner onnxruntime_training onnxruntime_framework onnxruntime_common onnx onnx_proto ${PROTOBUF_LIB} onnxruntime_training flatbuffers::flatbuffers Boost::mp11 safeint_interface Eigen3::Eigen)
-+  onnxruntime_add_include_to_target(onnxruntime_training_runner onnxruntime_training onnxruntime_framework onnxruntime_common onnx onnx_proto ${PROTOBUF_LIB} onnxruntime_training flatbuffers::flatbuffers Boost::boost safeint_interface Eigen3::Eigen)
- 
-   target_include_directories(onnxruntime_training_runner PRIVATE ${CMAKE_CURRENT_BINARY_DIR} ${ONNXRUNTIME_ROOT} ${ORTTRAINING_ROOT} PUBLIC ${onnxruntime_graph_header})
-   target_link_libraries(onnxruntime_training_runner PRIVATE nlohmann_json::nlohmann_json)
-@@ -101,7 +101,7 @@ if (onnxruntime_BUILD_UNIT_TESTS)
-       "${ORTTRAINING_SOURCE_DIR}/models/mnist/main.cc"
-   )
-   onnxruntime_add_executable(onnxruntime_training_mnist ${training_mnist_src})
--  onnxruntime_add_include_to_target(onnxruntime_training_mnist onnxruntime_common onnx onnx_proto ${PROTOBUF_LIB} onnxruntime_training flatbuffers::flatbuffers Boost::mp11 safeint_interface)
-+  onnxruntime_add_include_to_target(onnxruntime_training_mnist onnxruntime_common onnx onnx_proto ${PROTOBUF_LIB} onnxruntime_training flatbuffers::flatbuffers Boost::boost safeint_interface)
-   target_include_directories(onnxruntime_training_mnist PUBLIC ${CMAKE_CURRENT_BINARY_DIR} ${ONNXRUNTIME_ROOT} ${ORTTRAINING_ROOT} ${CXXOPTS} ${extra_includes} ${onnxruntime_graph_header} ${onnxruntime_exec_src_dir} ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR}/onnx onnxruntime_training_runner)
- 
-   set(ONNXRUNTIME_LIBS
-@@ -124,7 +124,7 @@ if (onnxruntime_BUILD_UNIT_TESTS)
-       ${ONNXRUNTIME_MLAS_LIBS}
-       onnxruntime_common
-       onnxruntime_flatbuffers
--      Boost::mp11 safeint_interface Eigen3::Eigen
-+      Boost::boost safeint_interface Eigen3::Eigen
-   )
- 
-   if(UNIX AND NOT APPLE)
-@@ -143,7 +143,7 @@ if (onnxruntime_BUILD_UNIT_TESTS)
-       "${ORTTRAINING_SOURCE_DIR}/models/squeezenet/*.cc"
-   )
-   onnxruntime_add_executable(onnxruntime_training_squeezenet ${training_squeezene_src})
--  onnxruntime_add_include_to_target(onnxruntime_training_squeezenet onnxruntime_common onnx onnx_proto ${PROTOBUF_LIB} onnxruntime_training flatbuffers::flatbuffers Boost::mp11 safeint_interface)
-+  onnxruntime_add_include_to_target(onnxruntime_training_squeezenet onnxruntime_common onnx onnx_proto ${PROTOBUF_LIB} onnxruntime_training flatbuffers::flatbuffers Boost::boost safeint_interface)
-   target_include_directories(onnxruntime_training_squeezenet PUBLIC ${ONNXRUNTIME_ROOT} ${ORTTRAINING_ROOT} ${extra_includes} ${onnxruntime_graph_header} ${onnxruntime_exec_src_dir} ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR}/onnx onnxruntime_training_runner)
- 
-   if(UNIX AND NOT APPLE)
-@@ -166,7 +166,7 @@ if (onnxruntime_BUILD_UNIT_TESTS)
-     endif()
-   endif()
- 
--  onnxruntime_add_include_to_target(onnxruntime_training_bert onnxruntime_common onnx onnx_proto ${PROTOBUF_LIB} onnxruntime_training flatbuffers::flatbuffers Boost::mp11 safeint_interface)
-+  onnxruntime_add_include_to_target(onnxruntime_training_bert onnxruntime_common onnx onnx_proto ${PROTOBUF_LIB} onnxruntime_training flatbuffers::flatbuffers Boost::boost safeint_interface)
-   target_include_directories(onnxruntime_training_bert PUBLIC ${CMAKE_CURRENT_BINARY_DIR} ${ONNXRUNTIME_ROOT} ${ORTTRAINING_ROOT} ${MPI_CXX_INCLUDE_DIRS} ${CXXOPTS} ${extra_includes} ${onnxruntime_graph_header} ${onnxruntime_exec_src_dir} ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR}/onnx onnxruntime_training_runner)
- 
-   target_link_libraries(onnxruntime_training_bert PRIVATE onnxruntime_training_runner onnxruntime_training ${ONNXRUNTIME_LIBS} ${onnxruntime_EXTERNAL_LIBRARIES})
-@@ -185,7 +185,7 @@ if (onnxruntime_BUILD_UNIT_TESTS)
-     endif()
-   endif()
- 
--  onnxruntime_add_include_to_target(onnxruntime_training_pipeline_poc onnxruntime_common onnx onnx_proto ${PROTOBUF_LIB} onnxruntime_training flatbuffers::flatbuffers Boost::mp11 safeint_interface)
-+  onnxruntime_add_include_to_target(onnxruntime_training_pipeline_poc onnxruntime_common onnx onnx_proto ${PROTOBUF_LIB} onnxruntime_training flatbuffers::flatbuffers Boost::boost safeint_interface)
-   target_include_directories(onnxruntime_training_pipeline_poc PUBLIC ${CMAKE_CURRENT_BINARY_DIR} ${ONNXRUNTIME_ROOT} ${ORTTRAINING_ROOT} ${MPI_CXX_INCLUDE_DIRS} ${CXXOPTS} ${extra_includes} ${onnxruntime_graph_header} ${onnxruntime_exec_src_dir} ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR}/onnx onnxruntime_training_runner)
-   if (onnxruntime_USE_NCCL)
-     target_include_directories(onnxruntime_training_pipeline_poc PRIVATE ${NCCL_INCLUDE_DIRS})
-diff --git a/cmake/onnxruntime_unittests.cmake b/cmake/onnxruntime_unittests.cmake
-index 7f361aa639..9e3860969c 100644
---- a/cmake/onnxruntime_unittests.cmake
-+++ b/cmake/onnxruntime_unittests.cmake
-@@ -854,7 +854,7 @@ endif()
- if (onnxruntime_USE_NCCL)
-   target_include_directories(onnxruntime_test_utils PRIVATE ${NCCL_INCLUDE_DIRS})
- endif()
--onnxruntime_add_include_to_target(onnxruntime_test_utils onnxruntime_common onnxruntime_framework onnxruntime_session GTest::gtest GTest::gmock onnx onnx_proto flatbuffers::flatbuffers nlohmann_json::nlohmann_json Boost::mp11 safeint_interface Eigen3::Eigen)
-+onnxruntime_add_include_to_target(onnxruntime_test_utils onnxruntime_common onnxruntime_framework onnxruntime_session GTest::gtest GTest::gmock onnx onnx_proto flatbuffers::flatbuffers nlohmann_json::nlohmann_json Boost::boost safeint_interface Eigen3::Eigen)
- if (onnxruntime_USE_DML)
-   target_add_dml(onnxruntime_test_utils)
- endif()
-@@ -944,7 +944,7 @@ if(NOT IOS)
-       target_compile_options(onnx_test_runner_common PRIVATE "/wd4244")
-     endif()
-     onnxruntime_add_include_to_target(onnx_test_runner_common onnxruntime_common onnxruntime_framework
--            onnxruntime_test_utils onnx onnx_proto re2::re2 flatbuffers::flatbuffers Boost::mp11 safeint_interface Eigen3::Eigen)
-+            onnxruntime_test_utils onnx onnx_proto re2::re2 flatbuffers::flatbuffers Boost::boost safeint_interface Eigen3::Eigen)
- 
-     add_dependencies(onnx_test_runner_common onnx_test_data_proto ${onnxruntime_EXTERNAL_DEPENDENCIES})
-     target_include_directories(onnx_test_runner_common PRIVATE ${CMAKE_CURRENT_BINARY_DIR} ${ONNXRUNTIME_ROOT})
-diff --git a/cmake/onnxruntime_util.cmake b/cmake/onnxruntime_util.cmake
-index 851b68a4b6..7db9321551 100644
---- a/cmake/onnxruntime_util.cmake
-+++ b/cmake/onnxruntime_util.cmake
-@@ -9,7 +9,7 @@ file(GLOB_RECURSE onnxruntime_util_srcs CONFIGURE_DEPENDS
- source_group(TREE ${ONNXRUNTIME_ROOT}/core FILES ${onnxruntime_util_srcs})
- 
- onnxruntime_add_static_library(onnxruntime_util ${onnxruntime_util_srcs})
--onnxruntime_add_include_to_target(onnxruntime_util onnxruntime_common onnx onnx_proto ${PROTOBUF_LIB} Boost::mp11 Eigen3::Eigen)
-+onnxruntime_add_include_to_target(onnxruntime_util onnxruntime_common onnx onnx_proto ${PROTOBUF_LIB} Boost::boost Eigen3::Eigen)
- if(UNIX)
-     target_compile_options(onnxruntime_util PUBLIC "-Wno-error=comment")
- endif()
-diff --git a/cmake/winml.cmake b/cmake/winml.cmake
-index 8f80299cc4..2701da407a 100644
---- a/cmake/winml.cmake
-+++ b/cmake/winml.cmake
-@@ -320,7 +320,7 @@ set_target_properties(winml_adapter PROPERTIES CXX_STANDARD 20)
- set_target_properties(winml_adapter PROPERTIES CXX_STANDARD_REQUIRED ON)
- 
- # Compiler definitions
--onnxruntime_add_include_to_target(winml_adapter onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers safeint_interface Boost::mp11 Eigen3::Eigen)
-+onnxruntime_add_include_to_target(winml_adapter onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers safeint_interface Boost::boost Eigen3::Eigen)
- target_include_directories(winml_adapter PRIVATE ${ONNXRUNTIME_ROOT})
- add_dependencies(winml_adapter ${onnxruntime_EXTERNAL_DEPENDENCIES})
- 
-@@ -404,7 +404,7 @@ target_include_directories(winml_lib_image PRIVATE ${winml_lib_api_image_dir})
- target_include_directories(winml_lib_image PRIVATE ${winml_lib_common_dir}/inc)
- target_include_directories(winml_lib_image PRIVATE ${ONNXRUNTIME_ROOT})
- target_include_directories(winml_lib_image PRIVATE ${ONNXRUNTIME_INCLUDE_DIR})                                                        # for status.h
--onnxruntime_add_include_to_target(winml_lib_image onnx onnx_proto ${PROTOBUF_LIB} re2::re2 flatbuffers::flatbuffers Boost::mp11)
-+onnxruntime_add_include_to_target(winml_lib_image onnx onnx_proto ${PROTOBUF_LIB} re2::re2 flatbuffers::flatbuffers Boost::boost)
- target_include_directories(winml_lib_image PRIVATE ${ONNXRUNTIME_INCLUDE_DIR}/core/platform/windows)
- target_include_directories(winml_lib_image PRIVATE ${REPO_ROOT}/winml)
- target_include_directories(winml_lib_image PRIVATE ${GSL_INCLUDE_DIR})
-@@ -515,7 +515,7 @@ target_include_directories(winml_lib_api PRIVATE ${ONNXRUNTIME_INCLUDE_DIR}/core
- target_include_directories(winml_lib_api PRIVATE ${ONNXRUNTIME_ROOT})
- target_include_directories(winml_lib_api PRIVATE ${ONNXRUNTIME_ROOT}/core/graph)
- target_include_directories(winml_lib_api PRIVATE ${REPO_ROOT}/winml)
--target_link_libraries(winml_lib_api PRIVATE ${GSL_TARGET} safeint_interface flatbuffers::flatbuffers Boost::mp11 onnx onnx_proto Eigen3::Eigen)
-+target_link_libraries(winml_lib_api PRIVATE ${GSL_TARGET} safeint_interface flatbuffers::flatbuffers Boost::boost onnx onnx_proto Eigen3::Eigen)
- 
- # Properties
- set_target_properties(winml_lib_api
-@@ -601,7 +601,7 @@ target_include_directories(winml_lib_api_experimental PRIVATE ${ONNXRUNTIME_INCL
- target_include_directories(winml_lib_api_experimental PRIVATE ${REPO_ROOT}/winml)
- target_include_directories(winml_lib_api_experimental PRIVATE ${ONNXRUNTIME_ROOT})
- target_include_directories(winml_lib_api_experimental PRIVATE ${ONNXRUNTIME_ROOT}/core/graph)
--onnxruntime_add_include_to_target(winml_lib_api_experimental PRIVATE ${PROTOBUF_LIB} safeint_interface flatbuffers::flatbuffers Boost::mp11 onnx onnx_proto ${GSL_TARGET} Eigen3::Eigen)
-+onnxruntime_add_include_to_target(winml_lib_api_experimental PRIVATE ${PROTOBUF_LIB} safeint_interface flatbuffers::flatbuffers Boost::boost onnx onnx_proto ${GSL_TARGET} Eigen3::Eigen)
- 
- # Properties
- set_target_properties(winml_lib_api_experimental
-@@ -750,7 +750,7 @@ target_include_directories(winml_dll PRIVATE ${ONNXRUNTIME_ROOT})
- target_include_directories(winml_dll PRIVATE ${ONNXRUNTIME_ROOT}/core/graph)
- 
- target_include_directories(winml_dll PRIVATE ${REPO_ROOT}/winml)
--target_link_libraries(winml_dll PRIVATE onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers safeint_interface Boost::mp11 ${GSL_TARGET} Eigen3::Eigen)
-+target_link_libraries(winml_dll PRIVATE onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers safeint_interface Boost::boost ${GSL_TARGET} Eigen3::Eigen)
- target_link_libraries(winml_dll PRIVATE debug Dbghelp)
- # Properties
- set_target_properties(winml_dll
-diff --git a/cmake/winml_unittests.cmake b/cmake/winml_unittests.cmake
-index eb2d69e162..7b46d1b559 100644
---- a/cmake/winml_unittests.cmake
-+++ b/cmake/winml_unittests.cmake
-@@ -273,7 +273,7 @@ target_include_directories(winml_test_adapter PRIVATE ${winml_lib_common_dir}/in
- target_include_directories(winml_test_adapter PRIVATE ${ONNXRUNTIME_INCLUDE_DIR})
- target_include_directories(winml_test_adapter PRIVATE ${ONNXRUNTIME_ROOT})
- 
--onnxruntime_add_include_to_target(winml_test_adapter onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers safeint_interface Boost::mp11)
-+onnxruntime_add_include_to_target(winml_test_adapter onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers safeint_interface Boost::boost)
- add_dependencies(winml_test_adapter ${onnxruntime_EXTERNAL_DEPENDENCIES})
- target_include_directories(winml_test_adapter PRIVATE ${winml_adapter_dir})
- target_include_directories(winml_test_adapter PRIVATE ${winml_lib_common_dir}/inc)
--- 
-2.55.0
-

diff --git a/0003-System-safeint.patch b/0003-System-safeint.patch
new file mode 100644
index 0000000..aeea0b1
--- /dev/null
+++ b/0003-System-safeint.patch
@@ -0,0 +1,48 @@
+From d5717aa23693dd45d8a397d931be3ad605c75b16 Mon Sep 17 00:00:00 2001
+From: Diego Herrera <dherrera@redhat.com>
+Date: Sun, 14 Jun 2026 19:06:51 -0400
+Subject: [PATCH 03/11] System safeint
+
+
+diff --git a/cmake/external/onnxruntime_external_deps.cmake b/cmake/external/onnxruntime_external_deps.cmake
+index e893b0ee89..47b65035fe 100644
+--- a/cmake/external/onnxruntime_external_deps.cmake
++++ b/cmake/external/onnxruntime_external_deps.cmake
+@@ -378,21 +378,8 @@ if (NOT GSL_FOUND AND NOT onnxruntime_BUILD_SHARED_LIB)
+   RUNTIME  DESTINATION ${CMAKE_INSTALL_BINDIR})
+ endif()
+ 
+-find_path(safeint_SOURCE_DIR NAMES "SafeInt.hpp")
+-if(NOT safeint_SOURCE_DIR)
+-  unset(safeint_SOURCE_DIR)
+-  onnxruntime_fetchcontent_declare(
+-      safeint
+-      URL ${DEP_URL_safeint}
+-      URL_HASH SHA1=${DEP_SHA1_safeint}
+-      EXCLUDE_FROM_ALL
+-  )
+-
+-  # use fetch content rather than makeavailable because safeint only includes unconditional test targets
+-  FetchContent_Populate(safeint)
+-endif()
+ add_library(safeint_interface IMPORTED INTERFACE)
+-target_include_directories(safeint_interface INTERFACE ${safeint_SOURCE_DIR})
++target_include_directories(safeint_interface INTERFACE /usr/include/SafeInt)
+ 
+ 
+ # Flatbuffers
+diff --git a/onnxruntime/core/common/safeint.h b/onnxruntime/core/common/safeint.h
+index 7062e99f6c..cd2137bbf8 100644
+--- a/onnxruntime/core/common/safeint.h
++++ b/onnxruntime/core/common/safeint.h
+@@ -24,6 +24,7 @@ class SafeIntExceptionHandler<onnxruntime::OnnxRuntimeException> {
+ 
+ #define SAFEINT_EXCEPTION_HANDLER_CPP 1
+ #define SafeIntDefaultExceptionHandler SafeIntExceptionHandler<onnxruntime::OnnxRuntimeException>
++#define SAFEINT_CPP_THROW noexcept(false)
+ 
+ #if defined(__GNUC__)
+ #include "onnxruntime_config.h"
+-- 
+2.55.0
+

diff --git a/0004-System-eigen3.patch b/0004-System-eigen3.patch
new file mode 100644
index 0000000..18be01a
--- /dev/null
+++ b/0004-System-eigen3.patch
@@ -0,0 +1,28 @@
+From 93cb0cadd855cc90722c461b3fb363be85350922 Mon Sep 17 00:00:00 2001
+From: Diego Herrera <dherrera@redhat.com>
+Date: Sun, 14 Jun 2026 19:07:10 -0400
+Subject: [PATCH 04/11] System eigen3
+
+
+diff --git a/cmake/external/onnxruntime_external_deps.cmake b/cmake/external/onnxruntime_external_deps.cmake
+index 47b65035fe..3fe556d764 100644
+--- a/cmake/external/onnxruntime_external_deps.cmake
++++ b/cmake/external/onnxruntime_external_deps.cmake
+@@ -485,10 +485,11 @@ if(TARGET ONNX::onnx_proto AND NOT TARGET onnx_proto)
+   message(STATUS "Aliasing ONNX::onnx_proto to onnx_proto")
+   add_library(onnx_proto ALIAS ONNX::onnx_proto)
+ endif()
+-if(onnxruntime_USE_VCPKG)
+-  find_package(Eigen3 CONFIG REQUIRED)
++find_package(Eigen3 CONFIG)
++if(Eigen3_FOUND)
++  get_target_property(eigen_INCLUDE_DIRS Eigen3::Eigen INTERFACE_INCLUDE_DIRECTORIES)
+ else()
+-  include(external/eigen.cmake)
++  include(eigen) # FetchContent
+ endif()
+ 
+ if(WIN32)
+-- 
+2.55.0
+

diff --git a/0004-System-safeint.patch b/0004-System-safeint.patch
deleted file mode 100644
index 8d7a4a3..0000000
--- a/0004-System-safeint.patch
+++ /dev/null
@@ -1,48 +0,0 @@
-From e932ec1a7281b6f0c5156c4ab1801d8b66152407 Mon Sep 17 00:00:00 2001
-From: Diego Herrera <dherrera@redhat.com>
-Date: Sun, 14 Jun 2026 19:06:51 -0400
-Subject: [PATCH 04/12] System safeint
-
-
-diff --git a/cmake/external/onnxruntime_external_deps.cmake b/cmake/external/onnxruntime_external_deps.cmake
-index e64ad4a2d6..819df57c7c 100644
---- a/cmake/external/onnxruntime_external_deps.cmake
-+++ b/cmake/external/onnxruntime_external_deps.cmake
-@@ -375,21 +375,8 @@ if (NOT GSL_FOUND AND NOT onnxruntime_BUILD_SHARED_LIB)
-   RUNTIME  DESTINATION ${CMAKE_INSTALL_BINDIR})
- endif()
- 
--find_path(safeint_SOURCE_DIR NAMES "SafeInt.hpp")
--if(NOT safeint_SOURCE_DIR)
--  unset(safeint_SOURCE_DIR)
--  onnxruntime_fetchcontent_declare(
--      safeint
--      URL ${DEP_URL_safeint}
--      URL_HASH SHA1=${DEP_SHA1_safeint}
--      EXCLUDE_FROM_ALL
--  )
--
--  # use fetch content rather than makeavailable because safeint only includes unconditional test targets
--  FetchContent_Populate(safeint)
--endif()
- add_library(safeint_interface IMPORTED INTERFACE)
--target_include_directories(safeint_interface INTERFACE ${safeint_SOURCE_DIR})
-+target_include_directories(safeint_interface INTERFACE /usr/include/SafeInt)
- 
- 
- # Flatbuffers
-diff --git a/onnxruntime/core/common/safeint.h b/onnxruntime/core/common/safeint.h
-index 7062e99f6c..cd2137bbf8 100644
---- a/onnxruntime/core/common/safeint.h
-+++ b/onnxruntime/core/common/safeint.h
-@@ -24,6 +24,7 @@ class SafeIntExceptionHandler<onnxruntime::OnnxRuntimeException> {
- 
- #define SAFEINT_EXCEPTION_HANDLER_CPP 1
- #define SafeIntDefaultExceptionHandler SafeIntExceptionHandler<onnxruntime::OnnxRuntimeException>
-+#define SAFEINT_CPP_THROW noexcept(false)
- 
- #if defined(__GNUC__)
- #include "onnxruntime_config.h"
--- 
-2.55.0
-

diff --git a/0005-System-eigen3.patch b/0005-System-eigen3.patch
deleted file mode 100644
index 67f4c33..0000000
--- a/0005-System-eigen3.patch
+++ /dev/null
@@ -1,28 +0,0 @@
-From 202bf54041ee3fa7214d99e8e81ee349de67417b Mon Sep 17 00:00:00 2001
-From: Diego Herrera <dherrera@redhat.com>
-Date: Sun, 14 Jun 2026 19:07:10 -0400
-Subject: [PATCH 05/12] System eigen3
-
-
-diff --git a/cmake/external/onnxruntime_external_deps.cmake b/cmake/external/onnxruntime_external_deps.cmake
-index 819df57c7c..a96298824b 100644
---- a/cmake/external/onnxruntime_external_deps.cmake
-+++ b/cmake/external/onnxruntime_external_deps.cmake
-@@ -482,10 +482,11 @@ if(TARGET ONNX::onnx_proto AND NOT TARGET onnx_proto)
-   message(STATUS "Aliasing ONNX::onnx_proto to onnx_proto")
-   add_library(onnx_proto ALIAS ONNX::onnx_proto)
- endif()
--if(onnxruntime_USE_VCPKG)
--  find_package(Eigen3 CONFIG REQUIRED)
-+find_package(Eigen3 CONFIG)
-+if(Eigen3_FOUND)
-+  get_target_property(eigen_INCLUDE_DIRS Eigen3::Eigen INTERFACE_INCLUDE_DIRECTORIES)
- else()
--  include(external/eigen.cmake)
-+  include(eigen) # FetchContent
- endif()
- 
- if(WIN32)
--- 
-2.55.0
-

diff --git a/0005-System-flatbuffers.patch b/0005-System-flatbuffers.patch
new file mode 100644
index 0000000..2853004
--- /dev/null
+++ b/0005-System-flatbuffers.patch
@@ -0,0 +1,31 @@
+From cd7d290c13c1b4bcd2a7fe786ae3b7da35f1dcec Mon Sep 17 00:00:00 2001
+From: Diego Herrera <dherrera@redhat.com>
+Date: Sun, 14 Jun 2026 19:07:31 -0400
+Subject: [PATCH 05/11] System flatbuffers
+
+
+diff --git a/cmake/external/onnxruntime_external_deps.cmake b/cmake/external/onnxruntime_external_deps.cmake
+index 3fe556d764..f6bf12b70d 100644
+--- a/cmake/external/onnxruntime_external_deps.cmake
++++ b/cmake/external/onnxruntime_external_deps.cmake
+@@ -407,7 +407,7 @@ onnxruntime_fetchcontent_declare(
+     URL_HASH SHA1=${DEP_SHA1_flatbuffers}
+     PATCH_COMMAND ${ONNXRUNTIME_FLATBUFFERS_PATCH_COMMAND}
+     EXCLUDE_FROM_ALL
+-    FIND_PACKAGE_ARGS 23.5.9 NAMES Flatbuffers flatbuffers
++    FIND_PACKAGE_ARGS 23.5.9 NAMES Flatbuffers flatbuffers FlatBuffers
+ )
+ 
+ onnxruntime_fetchcontent_makeavailable(flatbuffers)
+@@ -435,6 +435,8 @@ namespace std { using ::getenv; }
+       target_compile_options(flatc PRIVATE /FI${CMAKE_BINARY_DIR}/gdk_cstdlib_wrapper.h)
+     endif()
+   endif()
++else()
++  add_library(flatbuffers::flatbuffers ALIAS flatbuffers::flatbuffers_shared)
+ endif()
+ endif()
+ 
+-- 
+2.55.0
+

diff --git a/0006-Do-not-set-COMPILE_WARNING_AS_ERROR.patch b/0006-Do-not-set-COMPILE_WARNING_AS_ERROR.patch
new file mode 100644
index 0000000..d5990f8
--- /dev/null
+++ b/0006-Do-not-set-COMPILE_WARNING_AS_ERROR.patch
@@ -0,0 +1,25 @@
+From cec728ae048a8af343cdfe3e08b85cb021473a93 Mon Sep 17 00:00:00 2001
+From: "Benjamin A. Beasley" <code@musicinmybrain.net>
+Date: Fri, 18 Sep 2026 06:54:50 +0100
+Subject: [PATCH 06/11] Do not set COMPILE_WARNING_AS_ERROR
+
+Considering new warnings can appear at any time due to changes in
+dependency and compiler versions, this is too strict for distribution
+packaging. It makes sense for upstream CI.
+
+diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt
+index 83d1751e55..a2b43780af 100644
+--- a/cmake/CMakeLists.txt
++++ b/cmake/CMakeLists.txt
+@@ -1106,7 +1106,7 @@ function(onnxruntime_set_compile_flags target_name)
+       target_compile_definitions(${target_name} PRIVATE USE_KLEIDIAI)
+     endif()
+ 
+-    set_target_properties(${target_name} PROPERTIES COMPILE_WARNING_AS_ERROR ON)
++    set_target_properties(${target_name} PROPERTIES COMPILE_WARNING_AS_ERROR OFF)
+     if (onnxruntime_USE_CUDA)
+       # Suppress a "conversion_function_not_usable" warning in gsl/span
+       target_compile_options(${target_name} PRIVATE "$<$<COMPILE_LANGUAGE:CUDA>:SHELL:-Xcudafe \"--diag_suppress=conversion_function_not_usable\">")
+-- 
+2.55.0
+

diff --git a/0006-System-flatbuffers.patch b/0006-System-flatbuffers.patch
deleted file mode 100644
index 4920dad..0000000
--- a/0006-System-flatbuffers.patch
+++ /dev/null
@@ -1,31 +0,0 @@
-From a5c92e63f52023cd61d7c0cc6e127fb650b381ed Mon Sep 17 00:00:00 2001
-From: Diego Herrera <dherrera@redhat.com>
-Date: Sun, 14 Jun 2026 19:07:31 -0400
-Subject: [PATCH 06/12] System flatbuffers
-
-
-diff --git a/cmake/external/onnxruntime_external_deps.cmake b/cmake/external/onnxruntime_external_deps.cmake
-index a96298824b..9df9304495 100644
---- a/cmake/external/onnxruntime_external_deps.cmake
-+++ b/cmake/external/onnxruntime_external_deps.cmake
-@@ -404,7 +404,7 @@ onnxruntime_fetchcontent_declare(
-     URL_HASH SHA1=${DEP_SHA1_flatbuffers}
-     PATCH_COMMAND ${ONNXRUNTIME_FLATBUFFERS_PATCH_COMMAND}
-     EXCLUDE_FROM_ALL
--    FIND_PACKAGE_ARGS 23.5.9 NAMES Flatbuffers flatbuffers
-+    FIND_PACKAGE_ARGS 23.5.9 NAMES Flatbuffers flatbuffers FlatBuffers
- )
- 
- onnxruntime_fetchcontent_makeavailable(flatbuffers)
-@@ -432,6 +432,8 @@ namespace std { using ::getenv; }
-       target_compile_options(flatc PRIVATE /FI${CMAKE_BINARY_DIR}/gdk_cstdlib_wrapper.h)
-     endif()
-   endif()
-+else()
-+  add_library(flatbuffers::flatbuffers ALIAS flatbuffers::flatbuffers_shared)
- endif()
- endif()
- 
--- 
-2.55.0
-

diff --git a/0007-Do-not-set-COMPILE_WARNING_AS_ERROR.patch b/0007-Do-not-set-COMPILE_WARNING_AS_ERROR.patch
deleted file mode 100644
index 712e0ed..0000000
--- a/0007-Do-not-set-COMPILE_WARNING_AS_ERROR.patch
+++ /dev/null
@@ -1,25 +0,0 @@
-From c2dd287608af9ee1a0de6cf8f5fc776083152b7b Mon Sep 17 00:00:00 2001
-From: "Benjamin A. Beasley" <code@musicinmybrain.net>
-Date: Fri, 18 Sep 2026 06:54:50 +0100
-Subject: [PATCH 07/12] Do not set COMPILE_WARNING_AS_ERROR
-
-Considering new warnings can appear at any time due to changes in
-dependency and compiler versions, this is too strict for distribution
-packaging. It makes sense for upstream CI.
-
-diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt
-index 83d1751e55..a2b43780af 100644
---- a/cmake/CMakeLists.txt
-+++ b/cmake/CMakeLists.txt
-@@ -1106,7 +1106,7 @@ function(onnxruntime_set_compile_flags target_name)
-       target_compile_definitions(${target_name} PRIVATE USE_KLEIDIAI)
-     endif()
- 
--    set_target_properties(${target_name} PROPERTIES COMPILE_WARNING_AS_ERROR ON)
-+    set_target_properties(${target_name} PROPERTIES COMPILE_WARNING_AS_ERROR OFF)
-     if (onnxruntime_USE_CUDA)
-       # Suppress a "conversion_function_not_usable" warning in gsl/span
-       target_compile_options(${target_name} PRIVATE "$<$<COMPILE_LANGUAGE:CUDA>:SHELL:-Xcudafe \"--diag_suppress=conversion_function_not_usable\">")
--- 
-2.55.0
-

diff --git a/0007-migraphx-Fix-C-20-deprecated-this-capture.patch b/0007-migraphx-Fix-C-20-deprecated-this-capture.patch
new file mode 100644
index 0000000..1731b0b
--- /dev/null
+++ b/0007-migraphx-Fix-C-20-deprecated-this-capture.patch
@@ -0,0 +1,22 @@
+From 628d302a6f5f35b307ea118b358ef91a016e1d77 Mon Sep 17 00:00:00 2001
+From: Diego Herrera <dherrera@redhat.com>
+Date: Sun, 14 Jun 2026 19:08:31 -0400
+Subject: [PATCH 07/11] migraphx Fix C++20 deprecated this capture
+
+
+diff --git a/onnxruntime/core/providers/migraphx/migraphx_execution_provider.cc b/onnxruntime/core/providers/migraphx/migraphx_execution_provider.cc
+index 8908013a52..86d6b2a2a7 100644
+--- a/onnxruntime/core/providers/migraphx/migraphx_execution_provider.cc
++++ b/onnxruntime/core/providers/migraphx/migraphx_execution_provider.cc
+@@ -1394,7 +1394,7 @@ Status MIGraphXExecutionProvider::Compile(const std::vector<FusedNodeAndGraph>&
+     map_input_index_[fused_node.Name()] = input_name_index;
+     map_no_input_shape_[fused_node.Name()] = no_input_shape;
+     NodeComputeInfo compute_info;
+-    compute_info.create_state_func = [=](ComputeContext* context, FunctionState* state) {
++    compute_info.create_state_func = [=, this](ComputeContext* context, FunctionState* state) {
+       std::unique_ptr<MIGraphXFuncState> p = std::make_unique<MIGraphXFuncState>();
+       *p = {context->allocate_func, context->release_func, context->allocator_handle, map_progs_[context->node_name],
+             map_onnx_string_[context->node_name], options, t_, map_input_index_[context->node_name], &mgx_mu_,
+-- 
+2.55.0
+

diff --git a/0008-System-dnnl.patch b/0008-System-dnnl.patch
new file mode 100644
index 0000000..4b57919
--- /dev/null
+++ b/0008-System-dnnl.patch
@@ -0,0 +1,90 @@
+From 65fb5132e2ac56960a471c24fe138af0381d3d08 Mon Sep 17 00:00:00 2001
+From: Diego Herrera <dherrera@redhat.com>
+Date: Sun, 14 Jun 2026 23:20:26 -0400
+Subject: [PATCH 08/11] System dnnl
+
+
+diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt
+index a2b43780af..6242960eaa 100644
+--- a/cmake/CMakeLists.txt
++++ b/cmake/CMakeLists.txt
+@@ -1330,7 +1330,7 @@ if (onnxruntime_USE_ACL)
+ endif()
+ 
+ if (onnxruntime_USE_DNNL)
+-  include(dnnl)
++  find_package(dnnl REQUIRED)
+   add_compile_definitions(DNNL_OPENMP)
+ endif()
+ 
+diff --git a/cmake/onnxruntime_providers_dnnl.cmake b/cmake/onnxruntime_providers_dnnl.cmake
+index 965c4df7a0..5da67385b9 100644
+--- a/cmake/onnxruntime_providers_dnnl.cmake
++++ b/cmake/onnxruntime_providers_dnnl.cmake
+@@ -16,7 +16,7 @@
+     target_compile_options(onnxruntime_providers_dnnl PRIVATE  "/analyze:stacksize 131072")
+   endif()
+ 
+-  add_dependencies(onnxruntime_providers_dnnl onnxruntime_providers_shared project_dnnl ${onnxruntime_EXTERNAL_DEPENDENCIES})
++  add_dependencies(onnxruntime_providers_dnnl onnxruntime_providers_shared ${onnxruntime_EXTERNAL_DEPENDENCIES})
+   target_include_directories(onnxruntime_providers_dnnl PRIVATE ${ONNXRUNTIME_ROOT} ${DNNL_INCLUDE_DIR} ${DNNL_OCL_INCLUDE_DIR})
+   # ${CMAKE_CURRENT_BINARY_DIR} is so that #include "onnxruntime_config.h" inside tensor_shape.h is found
+   target_link_libraries(onnxruntime_providers_dnnl PRIVATE dnnl ${ONNXRUNTIME_PROVIDERS_SHARED} Boost::boost ${ABSEIL_LIBS} ${GSL_TARGET} safeint_interface Eigen3::Eigen)
+@@ -42,7 +42,7 @@
+       BUILD_WITH_INSTALL_RPATH TRUE
+       INSTALL_RPATH_USE_LINK_PATH FALSE)
+   elseif(UNIX)
+-    set_property(TARGET onnxruntime_providers_dnnl APPEND_STRING PROPERTY LINK_FLAGS "-Xlinker --version-script=${ONNXRUNTIME_ROOT}/core/providers/dnnl/version_script.lds -Xlinker --gc-sections -Xlinker -rpath=\$ORIGIN")
++    set_property(TARGET onnxruntime_providers_dnnl APPEND_STRING PROPERTY LINK_FLAGS "-Xlinker --version-script=${ONNXRUNTIME_ROOT}/core/providers/dnnl/version_script.lds -Xlinker --gc-sections")
+   elseif(WIN32)
+     set_property(TARGET onnxruntime_providers_dnnl APPEND_STRING PROPERTY LINK_FLAGS "-DEF:${ONNXRUNTIME_ROOT}/core/providers/dnnl/symbols.def")
+   else()
+diff --git a/cmake/onnxruntime_python.cmake b/cmake/onnxruntime_python.cmake
+index 39985b23da..c4ea5d227d 100644
+--- a/cmake/onnxruntime_python.cmake
++++ b/cmake/onnxruntime_python.cmake
+@@ -958,26 +958,6 @@ if (onnxruntime_ENABLE_TRAINING)
+   endif()
+ endif()
+ 
+-if (onnxruntime_USE_DNNL)
+-  add_custom_command(
+-    TARGET onnxruntime_pybind11_state POST_BUILD
+-    COMMAND ${CMAKE_COMMAND} -E copy
+-        ${DNNL_DLL_PATH} $<TARGET_FILE:onnxruntime_providers_dnnl>
+-        $<TARGET_FILE:onnxruntime_providers_shared>
+-        $<TARGET_FILE_DIR:${build_output_target}>/onnxruntime/capi/
+-  )
+-endif()
+-
+-if (onnxruntime_USE_VITISAI)
+-  add_custom_command(
+-    TARGET onnxruntime_pybind11_state POST_BUILD
+-    COMMAND ${CMAKE_COMMAND} -E copy
+-        ${DNNL_DLL_PATH} $<TARGET_FILE:onnxruntime_providers_vitisai>
+-        $<TARGET_FILE:onnxruntime_providers_shared>
+-        $<TARGET_FILE_DIR:${build_output_target}>/onnxruntime/capi/
+-  )
+-endif()
+-
+ if (onnxruntime_USE_TENSORRT)
+   add_custom_command(
+     TARGET onnxruntime_pybind11_state POST_BUILD
+diff --git a/cmake/onnxruntime_unittests.cmake b/cmake/onnxruntime_unittests.cmake
+index 9e3860969c..e4e9733d65 100644
+--- a/cmake/onnxruntime_unittests.cmake
++++ b/cmake/onnxruntime_unittests.cmake
+@@ -1237,10 +1237,6 @@ if (NOT onnxruntime_ENABLE_TRAINING_TORCH_INTEROP)
+       target_compile_definitions(onnxruntime_test_all PUBLIC -DDNNL_GPU_RUNTIME=OCL)
+     endif()
+     list(APPEND onnx_test_libs dnnl)
+-    add_custom_command(
+-      TARGET ${test_data_target} POST_BUILD
+-      COMMAND ${CMAKE_COMMAND} -E copy ${DNNL_DLL_PATH} $<TARGET_FILE_DIR:${test_data_target}>
+-      )
+   endif()
+   if(WIN32)
+     set(wide_get_opt_src_dir ${TEST_SRC_DIR}/win_getopt/wide)
+-- 
+2.55.0
+

diff --git a/0008-migraphx-Fix-C-20-deprecated-this-capture.patch b/0008-migraphx-Fix-C-20-deprecated-this-capture.patch
deleted file mode 100644
index 65e9623..0000000
--- a/0008-migraphx-Fix-C-20-deprecated-this-capture.patch
+++ /dev/null
@@ -1,22 +0,0 @@
-From f028fbaed3f57ff647be7a6057d3e93d0598c8de Mon Sep 17 00:00:00 2001
-From: Diego Herrera <dherrera@redhat.com>
-Date: Sun, 14 Jun 2026 19:08:31 -0400
-Subject: [PATCH 08/12] migraphx Fix C++20 deprecated this capture
-
-
-diff --git a/onnxruntime/core/providers/migraphx/migraphx_execution_provider.cc b/onnxruntime/core/providers/migraphx/migraphx_execution_provider.cc
-index 8908013a52..86d6b2a2a7 100644
---- a/onnxruntime/core/providers/migraphx/migraphx_execution_provider.cc
-+++ b/onnxruntime/core/providers/migraphx/migraphx_execution_provider.cc
-@@ -1394,7 +1394,7 @@ Status MIGraphXExecutionProvider::Compile(const std::vector<FusedNodeAndGraph>&
-     map_input_index_[fused_node.Name()] = input_name_index;
-     map_no_input_shape_[fused_node.Name()] = no_input_shape;
-     NodeComputeInfo compute_info;
--    compute_info.create_state_func = [=](ComputeContext* context, FunctionState* state) {
-+    compute_info.create_state_func = [=, this](ComputeContext* context, FunctionState* state) {
-       std::unique_ptr<MIGraphXFuncState> p = std::make_unique<MIGraphXFuncState>();
-       *p = {context->allocate_func, context->release_func, context->allocator_handle, map_progs_[context->node_name],
-             map_onnx_string_[context->node_name], options, t_, map_input_index_[context->node_name], &mgx_mu_,
--- 
-2.55.0
-

diff --git a/0009-System-dnnl.patch b/0009-System-dnnl.patch
deleted file mode 100644
index a9f0f22..0000000
--- a/0009-System-dnnl.patch
+++ /dev/null
@@ -1,90 +0,0 @@
-From 29ed8d75ccdf14c3661f1d282e65961c3d8de552 Mon Sep 17 00:00:00 2001
-From: Diego Herrera <dherrera@redhat.com>
-Date: Sun, 14 Jun 2026 23:20:26 -0400
-Subject: [PATCH 09/12] System dnnl
-
-
-diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt
-index a2b43780af..6242960eaa 100644
---- a/cmake/CMakeLists.txt
-+++ b/cmake/CMakeLists.txt
-@@ -1330,7 +1330,7 @@ if (onnxruntime_USE_ACL)
- endif()
- 
- if (onnxruntime_USE_DNNL)
--  include(dnnl)
-+  find_package(dnnl REQUIRED)
-   add_compile_definitions(DNNL_OPENMP)
- endif()
- 
-diff --git a/cmake/onnxruntime_providers_dnnl.cmake b/cmake/onnxruntime_providers_dnnl.cmake
-index 965c4df7a0..5da67385b9 100644
---- a/cmake/onnxruntime_providers_dnnl.cmake
-+++ b/cmake/onnxruntime_providers_dnnl.cmake
-@@ -16,7 +16,7 @@
-     target_compile_options(onnxruntime_providers_dnnl PRIVATE  "/analyze:stacksize 131072")
-   endif()
- 
--  add_dependencies(onnxruntime_providers_dnnl onnxruntime_providers_shared project_dnnl ${onnxruntime_EXTERNAL_DEPENDENCIES})
-+  add_dependencies(onnxruntime_providers_dnnl onnxruntime_providers_shared ${onnxruntime_EXTERNAL_DEPENDENCIES})
-   target_include_directories(onnxruntime_providers_dnnl PRIVATE ${ONNXRUNTIME_ROOT} ${DNNL_INCLUDE_DIR} ${DNNL_OCL_INCLUDE_DIR})
-   # ${CMAKE_CURRENT_BINARY_DIR} is so that #include "onnxruntime_config.h" inside tensor_shape.h is found
-   target_link_libraries(onnxruntime_providers_dnnl PRIVATE dnnl ${ONNXRUNTIME_PROVIDERS_SHARED} Boost::boost ${ABSEIL_LIBS} ${GSL_TARGET} safeint_interface Eigen3::Eigen)
-@@ -42,7 +42,7 @@
-       BUILD_WITH_INSTALL_RPATH TRUE
-       INSTALL_RPATH_USE_LINK_PATH FALSE)
-   elseif(UNIX)
--    set_property(TARGET onnxruntime_providers_dnnl APPEND_STRING PROPERTY LINK_FLAGS "-Xlinker --version-script=${ONNXRUNTIME_ROOT}/core/providers/dnnl/version_script.lds -Xlinker --gc-sections -Xlinker -rpath=\$ORIGIN")
-+    set_property(TARGET onnxruntime_providers_dnnl APPEND_STRING PROPERTY LINK_FLAGS "-Xlinker --version-script=${ONNXRUNTIME_ROOT}/core/providers/dnnl/version_script.lds -Xlinker --gc-sections")
-   elseif(WIN32)
-     set_property(TARGET onnxruntime_providers_dnnl APPEND_STRING PROPERTY LINK_FLAGS "-DEF:${ONNXRUNTIME_ROOT}/core/providers/dnnl/symbols.def")
-   else()
-diff --git a/cmake/onnxruntime_python.cmake b/cmake/onnxruntime_python.cmake
-index 39985b23da..c4ea5d227d 100644
---- a/cmake/onnxruntime_python.cmake
-+++ b/cmake/onnxruntime_python.cmake
-@@ -958,26 +958,6 @@ if (onnxruntime_ENABLE_TRAINING)
-   endif()
- endif()
- 
--if (onnxruntime_USE_DNNL)
--  add_custom_command(
--    TARGET onnxruntime_pybind11_state POST_BUILD
--    COMMAND ${CMAKE_COMMAND} -E copy
--        ${DNNL_DLL_PATH} $<TARGET_FILE:onnxruntime_providers_dnnl>
--        $<TARGET_FILE:onnxruntime_providers_shared>
--        $<TARGET_FILE_DIR:${build_output_target}>/onnxruntime/capi/
--  )
--endif()
--
--if (onnxruntime_USE_VITISAI)
--  add_custom_command(
--    TARGET onnxruntime_pybind11_state POST_BUILD
--    COMMAND ${CMAKE_COMMAND} -E copy
--        ${DNNL_DLL_PATH} $<TARGET_FILE:onnxruntime_providers_vitisai>
--        $<TARGET_FILE:onnxruntime_providers_shared>
--        $<TARGET_FILE_DIR:${build_output_target}>/onnxruntime/capi/
--  )
--endif()
--
- if (onnxruntime_USE_TENSORRT)
-   add_custom_command(
-     TARGET onnxruntime_pybind11_state POST_BUILD
-diff --git a/cmake/onnxruntime_unittests.cmake b/cmake/onnxruntime_unittests.cmake
-index 9e3860969c..e4e9733d65 100644
---- a/cmake/onnxruntime_unittests.cmake
-+++ b/cmake/onnxruntime_unittests.cmake
-@@ -1237,10 +1237,6 @@ if (NOT onnxruntime_ENABLE_TRAINING_TORCH_INTEROP)
-       target_compile_definitions(onnxruntime_test_all PUBLIC -DDNNL_GPU_RUNTIME=OCL)
-     endif()
-     list(APPEND onnx_test_libs dnnl)
--    add_custom_command(
--      TARGET ${test_data_target} POST_BUILD
--      COMMAND ${CMAKE_COMMAND} -E copy ${DNNL_DLL_PATH} $<TARGET_FILE_DIR:${test_data_target}>
--      )
-   endif()
-   if(WIN32)
-     set(wide_get_opt_src_dir ${TEST_SRC_DIR}/win_getopt/wide)
--- 
-2.55.0
-

diff --git a/0009-dnnl-Clean-unused-vars.patch b/0009-dnnl-Clean-unused-vars.patch
new file mode 100644
index 0000000..bcb8a1b
--- /dev/null
+++ b/0009-dnnl-Clean-unused-vars.patch
@@ -0,0 +1,67 @@
+From 84c42e296e2f7570792cd41c7f27ccb89864d523 Mon Sep 17 00:00:00 2001
+From: Diego Herrera <dherrera@redhat.com>
+Date: Sun, 14 Jun 2026 23:20:49 -0400
+Subject: [PATCH 09/11] dnnl Clean unused vars
+
+
+diff --git a/onnxruntime/core/providers/dnnl/subgraph/dnnl_matmul.cc b/onnxruntime/core/providers/dnnl/subgraph/dnnl_matmul.cc
+index 82a9e9f3ec..8b3e39f288 100644
+--- a/onnxruntime/core/providers/dnnl/subgraph/dnnl_matmul.cc
++++ b/onnxruntime/core/providers/dnnl/subgraph/dnnl_matmul.cc
+@@ -52,15 +52,6 @@ void DnnlMatMul::CreatePrimitive(DnnlSubgraphPrimitive& sp, DnnlNode& node) {
+   if (node.OpType() == "MatMulPostOps") {
+     has_postop_fusion = true;
+     post_ops = node.GetPostOps();
+-
+-    int binary_count = 0;
+-    // Check we have enough inputs for MatMul and the binary post ops
+-    for (size_t i = 0; i < post_ops.size(); ++i) {
+-      if (binary_ops.count(post_ops[i]) != 0) {
+-        assert(node.Input(IN_BINARY_0 + binary_count).Exists());
+-        binary_count++;
+-      }
+-    }
+   }
+ 
+   bool is_fusedmatmul = false;
+diff --git a/onnxruntime/core/providers/dnnl/subgraph/dnnl_matmul_integer.cc b/onnxruntime/core/providers/dnnl/subgraph/dnnl_matmul_integer.cc
+index ffa146298e..bc6d8d0ee2 100644
+--- a/onnxruntime/core/providers/dnnl/subgraph/dnnl_matmul_integer.cc
++++ b/onnxruntime/core/providers/dnnl/subgraph/dnnl_matmul_integer.cc
+@@ -27,15 +27,6 @@ void DnnlMatMulInteger::CreatePrimitive(DnnlSubgraphPrimitive& sp, DnnlNode& nod
+   if (node.OpType() == "MatMulIntegerPostOps") {
+     has_postop_fusion = true;
+     post_ops = node.GetPostOps();
+-
+-    int binary_count = 0;
+-    // Check we have enough inputs for MatMul and the binary post ops
+-    for (size_t i = 0; i < post_ops.size(); ++i) {
+-      if (binary_ops.count(post_ops[i]) != 0) {
+-        assert(node.Input(IN_BINARY_0 + binary_count).Exists());
+-        binary_count++;
+-      }
+-    }
+   }
+ 
+   auto src_dims = sp.GetMemory(node.Input(IN_A)).get_desc().get_dims();
+diff --git a/onnxruntime/core/providers/dnnl/subgraph/dnnl_subgraph_transformer.cc b/onnxruntime/core/providers/dnnl/subgraph/dnnl_subgraph_transformer.cc
+index fdebe51865..58defe35d6 100644
+--- a/onnxruntime/core/providers/dnnl/subgraph/dnnl_subgraph_transformer.cc
++++ b/onnxruntime/core/providers/dnnl/subgraph/dnnl_subgraph_transformer.cc
+@@ -764,13 +764,6 @@ void DnnlGraphTransformer::RemoveMatMulIntegerZP(DnnlSubgraph& subgraph, const o
+       continue;
+     }
+ 
+-    const auto& dims = tensor_proto->dims();
+-    auto dim_size = tensor_proto->dims_size();
+-    int num_elements = 1;
+-    for (int i = 0; i < dim_size; i++) {
+-      num_elements *= int(dims[i]);
+-    }
+-
+     // check if b_zp is all zeros, assume data is s8 since only s8 weight is supported in onednn
+     bool all_zero = true;
+     std::vector<uint8_t> unpacked_tensor;
+-- 
+2.55.0
+

diff --git a/0010-dnnl-Clean-unused-vars.patch b/0010-dnnl-Clean-unused-vars.patch
deleted file mode 100644
index 9c75570..0000000
--- a/0010-dnnl-Clean-unused-vars.patch
+++ /dev/null
@@ -1,67 +0,0 @@
-From 44b91195290944154babc4312d925c3c9a217e38 Mon Sep 17 00:00:00 2001
-From: Diego Herrera <dherrera@redhat.com>
-Date: Sun, 14 Jun 2026 23:20:49 -0400
-Subject: [PATCH 10/12] dnnl Clean unused vars
-
-
-diff --git a/onnxruntime/core/providers/dnnl/subgraph/dnnl_matmul.cc b/onnxruntime/core/providers/dnnl/subgraph/dnnl_matmul.cc
-index 82a9e9f3ec..8b3e39f288 100644
---- a/onnxruntime/core/providers/dnnl/subgraph/dnnl_matmul.cc
-+++ b/onnxruntime/core/providers/dnnl/subgraph/dnnl_matmul.cc
-@@ -52,15 +52,6 @@ void DnnlMatMul::CreatePrimitive(DnnlSubgraphPrimitive& sp, DnnlNode& node) {
-   if (node.OpType() == "MatMulPostOps") {
-     has_postop_fusion = true;
-     post_ops = node.GetPostOps();
--
--    int binary_count = 0;
--    // Check we have enough inputs for MatMul and the binary post ops
--    for (size_t i = 0; i < post_ops.size(); ++i) {
--      if (binary_ops.count(post_ops[i]) != 0) {
--        assert(node.Input(IN_BINARY_0 + binary_count).Exists());
--        binary_count++;
--      }
--    }
-   }
- 
-   bool is_fusedmatmul = false;
-diff --git a/onnxruntime/core/providers/dnnl/subgraph/dnnl_matmul_integer.cc b/onnxruntime/core/providers/dnnl/subgraph/dnnl_matmul_integer.cc
-index ffa146298e..bc6d8d0ee2 100644
---- a/onnxruntime/core/providers/dnnl/subgraph/dnnl_matmul_integer.cc
-+++ b/onnxruntime/core/providers/dnnl/subgraph/dnnl_matmul_integer.cc
-@@ -27,15 +27,6 @@ void DnnlMatMulInteger::CreatePrimitive(DnnlSubgraphPrimitive& sp, DnnlNode& nod
-   if (node.OpType() == "MatMulIntegerPostOps") {
-     has_postop_fusion = true;
-     post_ops = node.GetPostOps();
--
--    int binary_count = 0;
--    // Check we have enough inputs for MatMul and the binary post ops
--    for (size_t i = 0; i < post_ops.size(); ++i) {
--      if (binary_ops.count(post_ops[i]) != 0) {
--        assert(node.Input(IN_BINARY_0 + binary_count).Exists());
--        binary_count++;
--      }
--    }
-   }
- 
-   auto src_dims = sp.GetMemory(node.Input(IN_A)).get_desc().get_dims();
-diff --git a/onnxruntime/core/providers/dnnl/subgraph/dnnl_subgraph_transformer.cc b/onnxruntime/core/providers/dnnl/subgraph/dnnl_subgraph_transformer.cc
-index fdebe51865..58defe35d6 100644
---- a/onnxruntime/core/providers/dnnl/subgraph/dnnl_subgraph_transformer.cc
-+++ b/onnxruntime/core/providers/dnnl/subgraph/dnnl_subgraph_transformer.cc
-@@ -764,13 +764,6 @@ void DnnlGraphTransformer::RemoveMatMulIntegerZP(DnnlSubgraph& subgraph, const o
-       continue;
-     }
- 
--    const auto& dims = tensor_proto->dims();
--    auto dim_size = tensor_proto->dims_size();
--    int num_elements = 1;
--    for (int i = 0; i < dim_size; i++) {
--      num_elements *= int(dims[i]);
--    }
--
-     // check if b_zp is all zeros, assume data is s8 since only s8 weight is supported in onednn
-     bool all_zero = true;
-     std::vector<uint8_t> unpacked_tensor;
--- 
-2.54.0
-

diff --git a/0010-openVINO-runtime-fix.patch b/0010-openVINO-runtime-fix.patch
new file mode 100644
index 0000000..0911d12
--- /dev/null
+++ b/0010-openVINO-runtime-fix.patch
@@ -0,0 +1,28 @@
+From 1e41f5ff663db8d367b7a3d89fba1e10390537e9 Mon Sep 17 00:00:00 2001
+From: Diego Herrera <dherrera@redhat.com>
+Date: Wed, 24 Jun 2026 19:30:11 -0400
+Subject: [PATCH 10/11] openVINO runtime fix
+
+
+diff --git a/cmake/onnxruntime_providers_openvino.cmake b/cmake/onnxruntime_providers_openvino.cmake
+index 819bdb7adc..39e16013da 100644
+--- a/cmake/onnxruntime_providers_openvino.cmake
++++ b/cmake/onnxruntime_providers_openvino.cmake
+@@ -21,14 +21,6 @@
+     add_definitions(-DUSE_OVEP_NPU_MEMORY=1)
+   endif()
+ 
+-  # If building RelWithDebInfo and OV package does not have that configuration map to Release
+-  get_target_property(ov_rt_implib_rwdi openvino::runtime IMPORTED_IMPLIB_RELWITHDEBINFO)
+-  if ((CMAKE_BUILD_TYPE STREQUAL RelWithDebInfo) AND NOT ov_rt_implib_rwdi)
+-    set_target_properties(openvino::runtime PROPERTIES
+-      MAP_IMPORTED_CONFIG_RELWITHDEBINFO Release
+-    )
+-  endif()
+-
+   list(APPEND OPENVINO_LIB_LIST openvino::frontend::onnx openvino::runtime ${PYTHON_LIBRARIES})
+   source_group(TREE ${ONNXRUNTIME_ROOT}/core FILES ${onnxruntime_providers_openvino_cc_srcs})
+   onnxruntime_add_shared_library_module(onnxruntime_providers_openvino ${onnxruntime_providers_openvino_cc_srcs} "${ONNXRUNTIME_ROOT}/core/dll/onnxruntime.rc")
+-- 
+2.55.0
+

diff --git a/0011-onnx-static-registration-fix.patch b/0011-onnx-static-registration-fix.patch
new file mode 100644
index 0000000..8b2ce6d
--- /dev/null
+++ b/0011-onnx-static-registration-fix.patch
@@ -0,0 +1,62 @@
+From f3d0d7df11b95d26b15351a34fe444b6255eea19 Mon Sep 17 00:00:00 2001
+From: Diego Herrera <dherrera@redhat.com>
+Date: Thu, 2 Jul 2026 18:33:43 -0400
+Subject: [PATCH 11/11] onnx static registration fix
+
+
+diff --git a/onnxruntime/core/session/onnxruntime_c_api.cc b/onnxruntime/core/session/onnxruntime_c_api.cc
+index 3f28529e7a..83d681df5a 100644
+--- a/onnxruntime/core/session/onnxruntime_c_api.cc
++++ b/onnxruntime/core/session/onnxruntime_c_api.cc
+@@ -57,6 +57,7 @@
+ #include "core/session/ort_env.h"
+ #include "core/session/ort_version_check.h"
+ #include "core/session/utils.h"
++#include "onnx/onnxruntime_fix.h"
+ 
+ #if defined(USE_CUDA) || defined(USE_CUDA_PROVIDER_INTERFACE)
+ #include "core/providers/cuda/cuda_provider_factory.h"
+@@ -4972,6 +4973,13 @@ ORT_API(const char*, OrtApis::GetBuildInfoString) {
+ }
+ 
+ const OrtApiBase* ORT_API_CALL OrtGetApiBase(void) NO_EXCEPTION {
++  class RunONNXRuntimeFix {
++   public:
++    RunONNXRuntimeFix() {
++      onnx::ONNXRuntimeFix::disableStaticRegistration();
++    }
++  };
++  static RunONNXRuntimeFix runONNXRuntimeFix;
+   return &ort_api_base;
+ }
+ 
+diff --git a/onnxruntime/python/onnxruntime_pybind_module.cc b/onnxruntime/python/onnxruntime_pybind_module.cc
+index ebe027c9ef..3443bc65b4 100644
+--- a/onnxruntime/python/onnxruntime_pybind_module.cc
++++ b/onnxruntime/python/onnxruntime_pybind_module.cc
+@@ -14,6 +14,7 @@
+ #include "core/framework/provider_options.h"
+ #include "core/platform/env.h"
+ #include "core/common/inlined_containers.h"
++#include "onnx/onnxruntime_fix.h"
+ 
+ namespace onnxruntime {
+ namespace python {
+@@ -109,6 +110,14 @@ PYBIND11_MODULE(onnxruntime_pybind11_state, m, py::mod_gil_not_used()) {
+ #else
+ PYBIND11_MODULE(onnxruntime_pybind11_state, m) {
+ #endif
++  class RunONNXRuntimeFix {
++   public:
++    RunONNXRuntimeFix() {
++      onnx::ONNXRuntimeFix::disableStaticRegistration();
++    }
++  };
++  static RunONNXRuntimeFix runONNXRuntimeFix;
++
+   auto st = CreateInferencePybindStateModule(m);
+   if (!st.IsOK())
+     throw pybind11::import_error(st.ErrorMessage());
+-- 
+2.55.0
+

diff --git a/0011-openVINO-runtime-fix.patch b/0011-openVINO-runtime-fix.patch
deleted file mode 100644
index 26d28e2..0000000
--- a/0011-openVINO-runtime-fix.patch
+++ /dev/null
@@ -1,28 +0,0 @@
-From 10e326c86978765ff02dffc9660cedd65685c798 Mon Sep 17 00:00:00 2001
-From: Diego Herrera <dherrera@redhat.com>
-Date: Wed, 24 Jun 2026 19:30:11 -0400
-Subject: [PATCH 11/12] openVINO runtime fix
-
-
-diff --git a/cmake/onnxruntime_providers_openvino.cmake b/cmake/onnxruntime_providers_openvino.cmake
-index 819bdb7adc..39e16013da 100644
---- a/cmake/onnxruntime_providers_openvino.cmake
-+++ b/cmake/onnxruntime_providers_openvino.cmake
-@@ -21,14 +21,6 @@
-     add_definitions(-DUSE_OVEP_NPU_MEMORY=1)
-   endif()
- 
--  # If building RelWithDebInfo and OV package does not have that configuration map to Release
--  get_target_property(ov_rt_implib_rwdi openvino::runtime IMPORTED_IMPLIB_RELWITHDEBINFO)
--  if ((CMAKE_BUILD_TYPE STREQUAL RelWithDebInfo) AND NOT ov_rt_implib_rwdi)
--    set_target_properties(openvino::runtime PROPERTIES
--      MAP_IMPORTED_CONFIG_RELWITHDEBINFO Release
--    )
--  endif()
--
-   list(APPEND OPENVINO_LIB_LIST openvino::frontend::onnx openvino::runtime ${PYTHON_LIBRARIES})
-   source_group(TREE ${ONNXRUNTIME_ROOT}/core FILES ${onnxruntime_providers_openvino_cc_srcs})
-   onnxruntime_add_shared_library_module(onnxruntime_providers_openvino ${onnxruntime_providers_openvino_cc_srcs} "${ONNXRUNTIME_ROOT}/core/dll/onnxruntime.rc")
--- 
-2.54.0
-

diff --git a/0012-onnx-static-registration-fix.patch b/0012-onnx-static-registration-fix.patch
deleted file mode 100644
index 1869e2b..0000000
--- a/0012-onnx-static-registration-fix.patch
+++ /dev/null
@@ -1,62 +0,0 @@
-From 7f8fc5a2a68650fdfb5ea585f21df15a7bb2c4d4 Mon Sep 17 00:00:00 2001
-From: Diego Herrera <dherrera@redhat.com>
-Date: Thu, 2 Jul 2026 18:33:43 -0400
-Subject: [PATCH 12/12] onnx static registration fix
-
-
-diff --git a/onnxruntime/core/session/onnxruntime_c_api.cc b/onnxruntime/core/session/onnxruntime_c_api.cc
-index 3f28529e7a..83d681df5a 100644
---- a/onnxruntime/core/session/onnxruntime_c_api.cc
-+++ b/onnxruntime/core/session/onnxruntime_c_api.cc
-@@ -57,6 +57,7 @@
- #include "core/session/ort_env.h"
- #include "core/session/ort_version_check.h"
- #include "core/session/utils.h"
-+#include "onnx/onnxruntime_fix.h"
- 
- #if defined(USE_CUDA) || defined(USE_CUDA_PROVIDER_INTERFACE)
- #include "core/providers/cuda/cuda_provider_factory.h"
-@@ -4972,6 +4973,13 @@ ORT_API(const char*, OrtApis::GetBuildInfoString) {
- }
- 
- const OrtApiBase* ORT_API_CALL OrtGetApiBase(void) NO_EXCEPTION {
-+  class RunONNXRuntimeFix {
-+   public:
-+    RunONNXRuntimeFix() {
-+      onnx::ONNXRuntimeFix::disableStaticRegistration();
-+    }
-+  };
-+  static RunONNXRuntimeFix runONNXRuntimeFix;
-   return &ort_api_base;
- }
- 
-diff --git a/onnxruntime/python/onnxruntime_pybind_module.cc b/onnxruntime/python/onnxruntime_pybind_module.cc
-index ebe027c9ef..3443bc65b4 100644
---- a/onnxruntime/python/onnxruntime_pybind_module.cc
-+++ b/onnxruntime/python/onnxruntime_pybind_module.cc
-@@ -14,6 +14,7 @@
- #include "core/framework/provider_options.h"
- #include "core/platform/env.h"
- #include "core/common/inlined_containers.h"
-+#include "onnx/onnxruntime_fix.h"
- 
- namespace onnxruntime {
- namespace python {
-@@ -109,6 +110,14 @@ PYBIND11_MODULE(onnxruntime_pybind11_state, m, py::mod_gil_not_used()) {
- #else
- PYBIND11_MODULE(onnxruntime_pybind11_state, m) {
- #endif
-+  class RunONNXRuntimeFix {
-+   public:
-+    RunONNXRuntimeFix() {
-+      onnx::ONNXRuntimeFix::disableStaticRegistration();
-+    }
-+  };
-+  static RunONNXRuntimeFix runONNXRuntimeFix;
-+
-   auto st = CreateInferencePybindStateModule(m);
-   if (!st.IsOK())
-     throw pybind11::import_error(st.ErrorMessage());
--- 
-2.54.0
-

diff --git a/onnxruntime.spec b/onnxruntime.spec
index f793a8b..241a93d 100644
--- a/onnxruntime.spec
+++ b/onnxruntime.spec
@@ -51,27 +51,25 @@ Source0:    https://github.com/microsoft/onnxruntime/archive/v%{version}/%{name}
 
 # Disable downloading dependencies
 Patch:      0001-Disable-download-deps.patch
-# Use the system abseil-cpp
-Patch:      0002-System-abseil.patch
 # Use the system date and boost
-Patch:      0003-System-date-and-mp11.patch
+Patch:      0002-System-date-and-mp11.patch
 # Use the system safeint
-Patch:      0004-System-safeint.patch
+Patch:      0003-System-safeint.patch
 # Use the system eigen3
-Patch:      0005-System-eigen3.patch
+Patch:      0004-System-eigen3.patch
 # Use the system flatbuffers
-Patch:      0006-System-flatbuffers.patch
+Patch:      0005-System-flatbuffers.patch
 # Disable gcc -Werror, too strict for downstream packaging
-Patch:      0007-Do-not-set-COMPILE_WARNING_AS_ERROR.patch
+Patch:      0006-Do-not-set-COMPILE_WARNING_AS_ERROR.patch
 # Fix deprecated C++20 feature use in migraphx implementation
-Patch:      0008-migraphx-Fix-C-20-deprecated-this-capture.patch
+Patch:      0007-migraphx-Fix-C-20-deprecated-this-capture.patch
 # Use the system onednn lib
-Patch:      0009-System-dnnl.patch
-Patch:      0010-dnnl-Clean-unused-vars.patch
+Patch:      0008-System-dnnl.patch
+Patch:      0009-dnnl-Clean-unused-vars.patch
 # Use the system openVINO
-Patch:      0011-openVINO-runtime-fix.patch
+Patch:      0010-openVINO-runtime-fix.patch
 # Trigger onnx static registration fix
-Patch:      0012-onnx-static-registration-fix.patch
+Patch:      0011-onnx-static-registration-fix.patch
 
 # armv7hl: https://bugzilla.redhat.com/show_bug.cgi?id=2235328
 # i686:    https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval

                 reply	other threads:[~2026-09-22 21:04 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179011104626.1.5461688225936400792.rpms-onnxruntime-c69100436152@fedoraproject.org \
    --to=code@musicinmybrain.net \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox