public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/onnxruntime] rawhide: Re-add static registration fix
@ 2026-07-01 16:17 Diego Herrera
  0 siblings, 0 replies; only message in thread
From: Diego Herrera @ 2026-07-01 16:17 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/onnxruntime
Branch : rawhide
Commit : c1bcb1214123f27daf4105d336eb2feb2ee4a89c
Author : Diego Herrera <dherrera@redhat.com>
Date   : 2026-07-01T01:07:21-04:00
Stats  : +46/-11 in 12 file(s)
URL    : https://src.fedoraproject.org/rpms/onnxruntime/c/c1bcb1214123f27daf4105d336eb2feb2ee4a89c?branch=rawhide

Log:
Re-add static registration fix

---
diff --git a/0001-Disable-download-deps.patch b/0001-Disable-download-deps.patch
index 2ceac80..0e1f4bc 100644
--- a/0001-Disable-download-deps.patch
+++ b/0001-Disable-download-deps.patch
@@ -1,7 +1,7 @@
 From 1ce596a3f94a8f7cbd07ea43c67d4a42c156f33f 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/11] Disable download deps
+Subject: [PATCH 01/12] 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
index 3d7b72a..f8cd407 100644
--- a/0002-System-abseil.patch
+++ b/0002-System-abseil.patch
@@ -1,7 +1,7 @@
 From 3b23eb11c77570cdacbbca2744c03944517255a7 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/11] System abseil
+Subject: [PATCH 02/12] System abseil
 
 
 diff --git a/cmake/external/onnxruntime_external_deps.cmake b/cmake/external/onnxruntime_external_deps.cmake

diff --git a/0003-System-date-and-mp11.patch b/0003-System-date-and-mp11.patch
index 51bbdf2..7036e5f 100644
--- a/0003-System-date-and-mp11.patch
+++ b/0003-System-date-and-mp11.patch
@@ -1,7 +1,7 @@
 From 1ddad843d4d7a8783570998f452d99607f8c2443 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/11] System date and mp11
+Subject: [PATCH 03/12] System date and mp11
 
 
 diff --git a/cmake/external/onnxruntime_external_deps.cmake b/cmake/external/onnxruntime_external_deps.cmake

diff --git a/0004-System-safeint.patch b/0004-System-safeint.patch
index 95db7e0..610f9ba 100644
--- a/0004-System-safeint.patch
+++ b/0004-System-safeint.patch
@@ -1,7 +1,7 @@
 From deadee0082c35e74139984c34ce8276ec1a9f384 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/11] System safeint
+Subject: [PATCH 04/12] System safeint
 
 
 diff --git a/cmake/external/onnxruntime_external_deps.cmake b/cmake/external/onnxruntime_external_deps.cmake

diff --git a/0005-System-eigen3.patch b/0005-System-eigen3.patch
index 8866649..3b9693d 100644
--- a/0005-System-eigen3.patch
+++ b/0005-System-eigen3.patch
@@ -1,7 +1,7 @@
 From 0d93432389e9b43625fd35204a223c5cce75d7d6 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/11] System eigen3
+Subject: [PATCH 05/12] System eigen3
 
 
 diff --git a/cmake/external/onnxruntime_external_deps.cmake b/cmake/external/onnxruntime_external_deps.cmake

diff --git a/0006-System-flatbuffers.patch b/0006-System-flatbuffers.patch
index d8fd220..9552d2b 100644
--- a/0006-System-flatbuffers.patch
+++ b/0006-System-flatbuffers.patch
@@ -1,7 +1,7 @@
 From 9e6b402f1cc65b0cfcb7259fbd951e092e1478cc 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/11] System flatbuffers
+Subject: [PATCH 06/12] System flatbuffers
 
 
 diff --git a/cmake/external/onnxruntime_external_deps.cmake b/cmake/external/onnxruntime_external_deps.cmake

diff --git a/0007-GCC-false-positives.patch b/0007-GCC-false-positives.patch
index 3fff4b0..d5aed24 100644
--- a/0007-GCC-false-positives.patch
+++ b/0007-GCC-false-positives.patch
@@ -1,7 +1,7 @@
 From 596c3058081eb6218ced020b57bf6a7fe9cf0bfd Mon Sep 17 00:00:00 2001
 From: Diego Herrera <dherrera@redhat.com>
 Date: Sun, 14 Jun 2026 19:07:53 -0400
-Subject: [PATCH 07/11] GCC false positives
+Subject: [PATCH 07/12] GCC false positives
 
 
 diff --git a/onnxruntime/core/optimizer/initializer.h b/onnxruntime/core/optimizer/initializer.h

diff --git a/0008-migraphx-Fix-C-20-deprecated-this-capture.patch b/0008-migraphx-Fix-C-20-deprecated-this-capture.patch
index 63d6b49..1f68d39 100644
--- a/0008-migraphx-Fix-C-20-deprecated-this-capture.patch
+++ b/0008-migraphx-Fix-C-20-deprecated-this-capture.patch
@@ -1,7 +1,7 @@
 From 02c19022cb64c75a9d8a60ccbae02fd30bc8fa23 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/11] migraphx Fix C++20 deprecated this capture
+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

diff --git a/0009-System-dnnl.patch b/0009-System-dnnl.patch
index bbc7cf8..b66f097 100644
--- a/0009-System-dnnl.patch
+++ b/0009-System-dnnl.patch
@@ -1,7 +1,7 @@
 From 0052b8a1b5b8c8b67b2c6d91b2eb22fd30248b2b 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/11] System dnnl
+Subject: [PATCH 09/12] System dnnl
 
 
 diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt

diff --git a/0010-dnnl-Clean-unused-vars.patch b/0010-dnnl-Clean-unused-vars.patch
index 8574f00..9c75570 100644
--- a/0010-dnnl-Clean-unused-vars.patch
+++ b/0010-dnnl-Clean-unused-vars.patch
@@ -1,7 +1,7 @@
 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/11] dnnl Clean unused vars
+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

diff --git a/0011-openVINO-runtime-fix.patch b/0011-openVINO-runtime-fix.patch
index 892c234..26d28e2 100644
--- a/0011-openVINO-runtime-fix.patch
+++ b/0011-openVINO-runtime-fix.patch
@@ -1,7 +1,7 @@
 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/11] openVINO runtime fix
+Subject: [PATCH 11/12] openVINO runtime fix
 
 
 diff --git a/cmake/onnxruntime_providers_openvino.cmake b/cmake/onnxruntime_providers_openvino.cmake

diff --git a/0012-onnx-static-registration-fix.patch b/0012-onnx-static-registration-fix.patch
new file mode 100644
index 0000000..24265c0
--- /dev/null
+++ b/0012-onnx-static-registration-fix.patch
@@ -0,0 +1,35 @@
+From 7b2a5a4d8c35c63c415572175ad233f413aa7c55 Mon Sep 17 00:00:00 2001
+From: Diego Herrera <dherrera@redhat.com>
+Date: Wed, 1 Jul 2026 01:04:34 -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;
+ }
+ 
+-- 
+2.54.0
+

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-07-01 16:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-01 16:17 [rpms/onnxruntime] rawhide: Re-add static registration fix Diego Herrera

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox