git: 7b3582b11742 - main - misc/onnx: update 1.19.1 → 1.22.0
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 17 Jun 2026 15:28:58 UTC
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=7b3582b11742fa8e51c7aa1cdf0af46d4a795fdf
commit 7b3582b11742fa8e51c7aa1cdf0af46d4a795fdf
Author: Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2026-06-17 03:51:38 +0000
Commit: Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2026-06-17 15:28:55 +0000
misc/onnx: update 1.19.1 → 1.22.0
---
misc/onnx/Makefile | 9 ++++-----
misc/onnx/distinfo | 6 +++---
misc/onnx/files/patch-CMakeLists.txt | 31 +++++++------------------------
misc/onnx/pkg-plist | 7 +++++++
4 files changed, 21 insertions(+), 32 deletions(-)
diff --git a/misc/onnx/Makefile b/misc/onnx/Makefile
index 0d6b22b6c0f0..dcfe09938f1c 100644
--- a/misc/onnx/Makefile
+++ b/misc/onnx/Makefile
@@ -1,7 +1,6 @@
PORTNAME= onnx
DISTVERSIONPREFIX= v
-DISTVERSION= 1.19.1
-PORTREVISION= 2
+DISTVERSION= 1.22.0
CATEGORIES= misc # machine-learning
MAINTAINER= yuri@FreeBSD.org
@@ -33,8 +32,8 @@ post-install:
post-test:
cd ${BUILD_WRKSRC} && ./onnx_gtests
-# tests as of 1.19.1: (NOTE: tests require static build, so the CMAKE_ON=BUILD_SHARED_LIBS needs to be commented out)
-# [==========] 95 tests from 13 test suites ran. (18 ms total)
-# [ PASSED ] 95 tests.
+# tests as of 1.22.0:
+# [==========] 100 tests from 15 test suites ran. (42 ms total)
+# [ PASSED ] 100 tests.
.include <bsd.port.mk>
diff --git a/misc/onnx/distinfo b/misc/onnx/distinfo
index c01424153974..814e07885df7 100644
--- a/misc/onnx/distinfo
+++ b/misc/onnx/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1762762407
-SHA256 (onnx-onnx-v1.19.1_GH0.tar.gz) = ce9d2569a61d64e8a3d05b92194f60ffb7c868dbb754a71f5b4d992273a9413d
-SIZE (onnx-onnx-v1.19.1_GH0.tar.gz) = 13162220
+TIMESTAMP = 1781667282
+SHA256 (onnx-onnx-v1.22.0_GH0.tar.gz) = 70bb8b25cf31ea9b1d9f94baacfdc8c4fa27a760f9a10f5d93881bc9eede5fbc
+SIZE (onnx-onnx-v1.22.0_GH0.tar.gz) = 13687818
diff --git a/misc/onnx/files/patch-CMakeLists.txt b/misc/onnx/files/patch-CMakeLists.txt
index f1e4a2c51f35..072aac8ee718 100644
--- a/misc/onnx/files/patch-CMakeLists.txt
+++ b/misc/onnx/files/patch-CMakeLists.txt
@@ -1,28 +1,11 @@
--- remove visibility settings to fix run-time of PyTorch with ONNX
--- 'import torch' fails otherwise with undefined symbols from ONNX
--- https://github.com/pytorch/pytorch/issues/167525
-
---- CMakeLists.txt.orig 2025-11-11 00:00:00 UTC
+--- CMakeLists.txt.orig 2026-06-17 03:46:58 UTC
+++ CMakeLists.txt
-@@ -419,8 +419,8 @@ foreach(_proto_src ${ONNX_PROTO_SRCS})
- endforeach()
-
- # Hide all symbols we don't need
--set_target_properties(onnx_proto PROPERTIES CXX_VISIBILITY_PRESET hidden)
--set_target_properties(onnx_proto PROPERTIES VISIBILITY_INLINES_HIDDEN 1)
-+#set_target_properties(onnx_proto PROPERTIES CXX_VISIBILITY_PRESET hidden)
-+#set_target_properties(onnx_proto PROPERTIES VISIBILITY_INLINES_HIDDEN 1)
-
- set(LINKED_PROTOBUF_TARGET protobuf::libprotobuf)
- if(ONNX_USE_LITE_PROTO)
-@@ -459,8 +459,8 @@ if(CMAKE_SYSTEM_NAME STREQUAL "AIX")
- else()
- add_library(onnx ${ONNX_SRCS})
- endif()
+@@ -517,7 +517,7 @@ add_dependencies(onnx onnx_proto)
+ add_library(onnx $<TARGET_OBJECTS:onnx_proto>)
+ add_subdirectory(onnx)
+ add_dependencies(onnx onnx_proto)
-set_target_properties(onnx PROPERTIES CXX_VISIBILITY_PRESET hidden)
--set_target_properties(onnx PROPERTIES VISIBILITY_INLINES_HIDDEN ON)
+#set_target_properties(onnx PROPERTIES CXX_VISIBILITY_PRESET hidden)
-+#set_target_properties(onnx PROPERTIES VISIBILITY_INLINES_HIDDEN ON)
-
- target_link_libraries(onnx PUBLIC onnx_proto)
add_onnx_global_defines(onnx)
+
+ if(ONNX_BUILD_PYTHON)
diff --git a/misc/onnx/pkg-plist b/misc/onnx/pkg-plist
index c7bb902ba208..d1880871d91b 100644
--- a/misc/onnx/pkg-plist
+++ b/misc/onnx/pkg-plist
@@ -12,6 +12,8 @@ include/onnx/common/model_helpers.h
include/onnx/common/path.h
include/onnx/common/platform_helpers.h
include/onnx/common/proto_util.h
+include/onnx/common/safe_math.h
+include/onnx/common/scoped_resource.h
include/onnx/common/status.h
include/onnx/common/tensor.h
include/onnx/common/version.h
@@ -20,6 +22,7 @@ include/onnx/defs/attr_proto_util.h
include/onnx/defs/controlflow/utils.h
include/onnx/defs/data_propagators.h
include/onnx/defs/data_type_utils.h
+include/onnx/defs/doc_strings.h
include/onnx/defs/function.h
include/onnx/defs/generator/utils.h
include/onnx/defs/math/utils.h
@@ -38,6 +41,7 @@ include/onnx/defs/tensor/utils.h
include/onnx/defs/tensor_proto_util.h
include/onnx/defs/tensor_util.h
include/onnx/defs/traditionalml/utils.h
+include/onnx/defs/type_builders.h
include/onnx/inliner/inliner.h
include/onnx/onnx-data.pb.h
include/onnx/onnx-ml.pb.h
@@ -72,6 +76,7 @@ include/onnx/version_converter/adapters/maxpool_8_7.h
include/onnx/version_converter/adapters/no_previous_version.h
include/onnx/version_converter/adapters/pad_10_11.h
include/onnx/version_converter/adapters/q_dq_21_20.h
+include/onnx/version_converter/adapters/range_27_26.h
include/onnx/version_converter/adapters/remove_consumed_inputs.h
include/onnx/version_converter/adapters/reshape_4_5.h
include/onnx/version_converter/adapters/reshape_5_4.h
@@ -79,6 +84,8 @@ include/onnx/version_converter/adapters/resize_10_11.h
include/onnx/version_converter/adapters/scan_8_9.h
include/onnx/version_converter/adapters/scan_9_8.h
include/onnx/version_converter/adapters/scatter_10_11.h
+include/onnx/version_converter/adapters/scatter_16_15.h
+include/onnx/version_converter/adapters/scatter_18_17.h
include/onnx/version_converter/adapters/slice_9_10.h
include/onnx/version_converter/adapters/softmax_12_13.h
include/onnx/version_converter/adapters/softmax_13_12.h