Date: Fri, 03 Jul 2026 06:31:14 +0000 From: Yuri Victorovich <yuri@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 7c1f12570582 - main - misc/onnxruntime: update 1.26.=?utf-8?Q?0 =E2=86=92 1.?=27.0 Message-ID: <6a475732.229f8.2441255d@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=7c1f125705820cd2b776056f2c492ed605f3b5e3 commit 7c1f125705820cd2b776056f2c492ed605f3b5e3 Author: Yuri Victorovich <yuri@FreeBSD.org> AuthorDate: 2026-07-03 01:28:36 +0000 Commit: Yuri Victorovich <yuri@FreeBSD.org> CommitDate: 2026-07-03 06:31:10 +0000 misc/onnxruntime: update 1.26.0 → 1.27.0 --- misc/onnxruntime/Makefile | 4 +++- misc/onnxruntime/Makefile.DISTFILES | 2 +- misc/onnxruntime/distinfo | 10 +++++----- .../patch-onnxruntime_core_common_spin__pause.cc | 6 +++--- .../patch-onnxruntime_core_platform_posix_env.cc | 23 +++++++++++++++------- misc/onnxruntime/pkg-plist | 2 +- 6 files changed, 29 insertions(+), 18 deletions(-) diff --git a/misc/onnxruntime/Makefile b/misc/onnxruntime/Makefile index 908442eb016b..3446f8609c1e 100644 --- a/misc/onnxruntime/Makefile +++ b/misc/onnxruntime/Makefile @@ -1,6 +1,6 @@ PORTNAME= onnxruntime DISTVERSIONPREFIX= v -DISTVERSION= 1.26.0 +DISTVERSION= 1.27.0 CATEGORIES= misc # machine-learning DIST_SUBDIR= ${PORTNAME} @@ -51,6 +51,8 @@ dev-update-deps-in-makefiles: extract # this should be run when the port is upda pre-configure: @${REINPLACE_CMD} -E 's|;(https://.*)/([^/]+\.zip);|;file://${DISTDIR}/${DIST_SUBDIR}/\2;|' ${DEPS_FILE} + # correct one mismatching hash + #@${REINPLACE_CMD} -E 's|1094e3bb7a8af763dcb136ccd676e6e75e614eec|5d2b21b10478556c5e209dd7229e298a5c9f0b02|' ${DEPS_FILE} # NOTE there should be an EXTRACT_ONLY statement # NOTE shared libs can't be enabled because the build would fail, see discussion in this issue: https://github.com/microsoft/onnxruntime/issues/22331 diff --git a/misc/onnxruntime/Makefile.DISTFILES b/misc/onnxruntime/Makefile.DISTFILES index 8a75a8c21642..c7ad64e21132 100644 --- a/misc/onnxruntime/Makefile.DISTFILES +++ b/misc/onnxruntime/Makefile.DISTFILES @@ -12,7 +12,7 @@ DISTFILES= \ v1.17.0.zip:googletest \ 3cf85e705098622d59056dcb8f5f963ea7bb0a00.zip:googlexnnpack \ v3.11.3.zip:json \ - v4.0.0.zip:microsoft_gsl \ + v4.2.1.zip:microsoft_gsl \ v1.0.250325.1.zip:microsoft_wil \ v2.1.1.zip:mimalloc \ boost-1.82.0.zip:mp11 \ diff --git a/misc/onnxruntime/distinfo b/misc/onnxruntime/distinfo index 03e475f0da80..9877aa391e76 100644 --- a/misc/onnxruntime/distinfo +++ b/misc/onnxruntime/distinfo @@ -1,4 +1,4 @@ -TIMESTAMP = 1778307803 +TIMESTAMP = 1783040282 SHA256 (onnxruntime/20250814.0.zip) = b2bdcf6682d8cb53df365bcc5d6c318a22e55821d9978a10fdb61404c026daff SIZE (onnxruntime/20250814.0.zip) = 3194036 SHA256 (onnxruntime/7.1.zip) = a9a95d3b3d1cbf9b9e00c145bcae4050f89042dc5b777635421dcdaf85010890 @@ -25,8 +25,8 @@ SHA256 (onnxruntime/3cf85e705098622d59056dcb8f5f963ea7bb0a00.zip) = e4af7bc17f1e SIZE (onnxruntime/3cf85e705098622d59056dcb8f5f963ea7bb0a00.zip) = 22580852 SHA256 (onnxruntime/v3.11.3.zip) = 04022b05d806eb5ff73023c280b68697d12b93e1b7267a0b22a1a39ec7578069 SIZE (onnxruntime/v3.11.3.zip) = 8489998 -SHA256 (onnxruntime/v4.0.0.zip) = eb91fcb10a6aa5ccb1d224e07a56c8ecffe9a1bb601fa1848276ec46a2200bfb -SIZE (onnxruntime/v4.0.0.zip) = 78670 +SHA256 (onnxruntime/v4.2.1.zip) = c9291d95f5f6e5c561990d06a589b01d89e553d0f366f0ce723dd1788e7a6076 +SIZE (onnxruntime/v4.2.1.zip) = 84222 SHA256 (onnxruntime/v1.0.250325.1.zip) = 48f7fdc3c7d0b284efae783c1266836b61b63fd0c94749098a60dc8ec78b0725 SIZE (onnxruntime/v1.0.250325.1.zip) = 577341 SHA256 (onnxruntime/v2.1.1.zip) = 23b1bffb2eff57b1e3cb8edc9410d448db2bb43400206a151e107dcabcad773a @@ -83,8 +83,8 @@ SHA256 (onnxruntime/duktape-2.7.0.tar.xz) = 90f8d2fa8b5567c6899830ddef2c03f3c279 SIZE (onnxruntime/duktape-2.7.0.tar.xz) = 1026524 SHA256 (onnxruntime/v1.4.344) = 88b86b441eed931fb4cba595aff46fbb14177d72274c1554411d6bbd2117e86f SIZE (onnxruntime/v1.4.344) = 3018460 -SHA256 (onnxruntime/microsoft-onnxruntime-v1.26.0_GH0.tar.gz) = 2a90eb9a306c1eeb29213f5b165a55008ac5cb7d27e0935c4458c51a49ef091d -SIZE (onnxruntime/microsoft-onnxruntime-v1.26.0_GH0.tar.gz) = 285128576 +SHA256 (onnxruntime/microsoft-onnxruntime-v1.27.0_GH0.tar.gz) = b41d09905a3c2f3a25709d1dcce8ef3942a4c2799d1046f74be7b6bbebc45e6a +SIZE (onnxruntime/microsoft-onnxruntime-v1.27.0_GH0.tar.gz) = 285714570 SHA256 (onnxruntime/emscripten-core-emsdk-0742117_GH0.tar.gz) = ebd5a51e31742e6ae1d11271bd5d84c2083623b746b98ef5b32adf6e223d48b8 SIZE (onnxruntime/emscripten-core-emsdk-0742117_GH0.tar.gz) = 114343 SHA256 (onnxruntime/google-libprotobuf-mutator-7a2ed51a6b682a83e345ff49fc4cfd7ca47550db_GH0.tar.gz) = d51365191580c4bf5e9ff104eebcfe34f7ff5f471006d7a460c15dcb3657501c diff --git a/misc/onnxruntime/files/patch-onnxruntime_core_common_spin__pause.cc b/misc/onnxruntime/files/patch-onnxruntime_core_common_spin__pause.cc index b4a7650c5669..af251a80aad8 100644 --- a/misc/onnxruntime/files/patch-onnxruntime_core_common_spin__pause.cc +++ b/misc/onnxruntime/files/patch-onnxruntime_core_common_spin__pause.cc @@ -1,11 +1,11 @@ ---- onnxruntime/core/common/spin_pause.cc.orig 2025-11-10 18:42:26 UTC +--- onnxruntime/core/common/spin_pause.cc.orig 2026-06-12 15:12:02 UTC +++ onnxruntime/core/common/spin_pause.cc -@@ -30,7 +30,7 @@ void SpinPause() { +@@ -34,7 +34,7 @@ void SpinPause() { !defined(__APPLE__) static const bool has_tpause = CPUIDInfo::GetCPUIDInfo().HasTPAUSE(); - static constexpr uint64_t tpause_spin_delay_cycles = 1000; + //static constexpr uint64_t tpause_spin_delay_cycles = 1000; // unused variable error breaking the build if (has_tpause) { - #if defined(_WIN32) + #if defined(_WIN32) || defined(__WAITPKG__) _tpause(0x0, __rdtsc() + tpause_spin_delay_cycles); diff --git a/misc/onnxruntime/files/patch-onnxruntime_core_platform_posix_env.cc b/misc/onnxruntime/files/patch-onnxruntime_core_platform_posix_env.cc index 37a10d7fc905..368bcab7d772 100644 --- a/misc/onnxruntime/files/patch-onnxruntime_core_platform_posix_env.cc +++ b/misc/onnxruntime/files/patch-onnxruntime_core_platform_posix_env.cc @@ -1,4 +1,4 @@ ---- onnxruntime/core/platform/posix/env.cc.orig 2025-10-21 23:09:33 UTC +--- onnxruntime/core/platform/posix/env.cc.orig 2026-06-12 15:12:02 UTC +++ onnxruntime/core/platform/posix/env.cc @@ -20,6 +20,7 @@ limitations under the License. #include <dlfcn.h> @@ -8,7 +8,7 @@ #include <sys/types.h> #include <sys/stat.h> #include <stdio.h> -@@ -217,13 +218,13 @@ class PosixThread : public EnvThread { +@@ -219,13 +220,13 @@ class PosixThread : public EnvThread { } auto ret = pthread_setaffinity_np(pthread_self(), sizeof(cpu_set_t), &cpuset); if (0 == ret) { @@ -24,12 +24,21 @@ << ", index: " << p->index << ", mask: " << *p->affinity << ", error code: " << err_no << " error msg: " << err_msg -@@ -275,7 +276,7 @@ class PosixEnv : public Env { +@@ -267,7 +268,7 @@ class PosixEnv : public Env { - std::vector<LogicalProcessors> GetDefaultThreadAffinities() const override { - std::vector<LogicalProcessors> ret; + // Return the number of physical cores + int GetNumPhysicalCpuCores() const override { -#ifdef ORT_USE_CPUINFO +#if defined(ORT_USE_CPUINFO) && defined(__linux__) if (cpuinfo_available_) { - auto num_phys_cores = cpuinfo_get_cores_count(); - ret.reserve(num_phys_cores); + return narrow<int>(cpuinfo_get_cores_count()); + } +@@ -640,7 +641,7 @@ class PosixEnv : public Env { + + private: + Telemetry telemetry_provider_; +-#ifdef ORT_USE_CPUINFO ++#if defined(ORT_USE_CPUINFO) && defined(__linux__) + PosixEnv() { + cpuinfo_available_ = cpuinfo_initialize(); + if (!cpuinfo_available_) { diff --git a/misc/onnxruntime/pkg-plist b/misc/onnxruntime/pkg-plist index 855cdd564d73..92db857d8fdc 100644 --- a/misc/onnxruntime/pkg-plist +++ b/misc/onnxruntime/pkg-plist @@ -18,6 +18,6 @@ lib/cmake/onnxruntime/onnxruntimeTargets-%%CMAKE_BUILD_TYPE%%.cmake lib/cmake/onnxruntime/onnxruntimeTargets.cmake lib/libonnxruntime.so lib/libonnxruntime.so.1 -lib/libonnxruntime.so.1.26.0 +lib/libonnxruntime.so.1.27.0 lib/libonnxruntime_providers_shared.so libdata/pkgconfig/libonnxruntime.pchome | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a475732.229f8.2441255d>
