Skip to content

onnxruntime: 1.23.2 -> 1.24.3#499389

Closed
giardb wants to merge 2 commits intoNixOS:masterfrom
giardb:bump(onnxruntime)/onnxruntime-1.24.1
Closed

onnxruntime: 1.23.2 -> 1.24.3#499389
giardb wants to merge 2 commits intoNixOS:masterfrom
giardb:bump(onnxruntime)/onnxruntime-1.24.1

Conversation

@giardb
Copy link
Copy Markdown

@giardb giardb commented Mar 12, 2026

Bump onnxruntime from 1.23.2 to 1.24.3. See https://github.com/microsoft/onnxruntime/releases/tag/v1.24.3.

  • Align bundled deps (onnx, cutlass, abseil-cpp, etc.) with upstream cmake/deps.txt for v1.24.3.
  • Add a small CMake shim to provide absl::low_level_hash as an alias for absl::hash, matching the new abseil-cpp LTS layout and fixing the link failure.
  • Drop ONNX and onnxruntime patches that are already included upstream and were failing as “Reversed (or previously applied)”.
  • Keep existing musl/Alpine patches and Nix-specific bits (CUDA, Python wheel, header install) unchanged.

EDIT: I updated this PR from 1.24.1 to 1.24.3. Both 1.24.2 and 1.24.3 are patch releases for the 1.24 series of ONNX Runtime, so moving directly to 1.24.3 keeps us on the latest stable patch without changing the underlying major/minor version.

Things done

  • Built on platform:
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • Tested, as applicable:
  • Ran nixpkgs-review on this PR. See nixpkgs-review usage.
    • nixpkgs-review --package onnxruntime on x86_64-linux built:
      • onnxruntime
      • onnxruntime.debug
      • onnxruntime.dev
      • onnxruntime.dist
  • Tested basic functionality of all binary files, usually in ./result/bin/.
  • Tested Python bindings:
    • import onnxruntime; onnxruntime.__version__ == "1.24.3"
    • Loaded onnxruntime.datasets.mul_1.onnx and ran inference via InferenceSession(..., providers=["CPUExecutionProvider"]) on x = np.ones((3, 2), dtype=np.float32).
  • Nixpkgs Release Notes
    • Package update: when the change is major or breaking.
  • NixOS Release Notes
    • Module addition: when adding a new NixOS module.
    • Module update: when the change is significant.
  • Fits CONTRIBUTING.md, pkgs/README.md, maintainers/README.md and other READMEs.

@nixpkgs-ci nixpkgs-ci bot requested review from ck3d and puffnfresh March 12, 2026 22:34
@nixpkgs-ci nixpkgs-ci bot added 8.has: package (update) This PR updates a package to a newer version 10.rebuild-linux: 101-500 This PR causes between 101 and 500 packages to rebuild on Linux. 10.rebuild-darwin: 11-100 This PR causes between 11 and 100 packages to rebuild on Darwin. 12.first-time contribution This PR is the author's first one; please be gentle! labels Mar 12, 2026
@giardb giardb changed the title onnxruntime: 1.23.2 -> 1.24.1 onnxruntime: 1.23.2 -> 1.24.3 Mar 13, 2026
@giardb giardb force-pushed the bump(onnxruntime)/onnxruntime-1.24.1 branch from 0ee6b6c to 94a7f88 Compare March 13, 2026 09:23
xilec added a commit to xilec/Handy that referenced this pull request Mar 16, 2026
ort 2.0.0-rc.12 enables API v24 by default, but nixpkgs only ships
onnxruntime 1.23.2 (API v23), causing a runtime panic on model load.

Override onnxruntime to 1.24.2 via overlay, bumping onnx to v1.20.1
and abseil-cpp to 202508 as required by the new version.

This overlay should be removed once nixpkgs merges onnxruntime ≥ 1.24:
NixOS/nixpkgs#499389
xilec added a commit to xilec/Handy that referenced this pull request Mar 16, 2026
ort 2.0.0-rc.12 enables API v24 by default, but nixpkgs only ships
onnxruntime 1.23.2 (API v23), causing a runtime panic on model load.

Use Microsoft's prebuilt binaries for onnxruntime 1.24.2 via overlay,
patched with autoPatchelfHook for NixOS compatibility.

This overlay should be removed once nixpkgs merges onnxruntime ≥ 1.24:
NixOS/nixpkgs#499389
cjpais pushed a commit to cjpais/Handy that referenced this pull request Mar 16, 2026
ort 2.0.0-rc.12 enables API v24 by default, but nixpkgs only ships
onnxruntime 1.23.2 (API v23), causing a runtime panic on model load.

Use Microsoft's prebuilt binaries for onnxruntime 1.24.2 via overlay,
patched with autoPatchelfHook for NixOS compatibility.

This overlay should be removed once nixpkgs merges onnxruntime ≥ 1.24:
NixOS/nixpkgs#499389
cjpais added a commit to cjpais/Handy that referenced this pull request Mar 19, 2026
* test build for 0.16.0

* macos 10.15?

* format

* shorter dir for build on windows?

* Update build.yml

* move

* Update build.yml

* long path support

* clang

* try

* try

* move to ort rc12

* use ms prebuilt?

* use lower version for 1.23.1

* download my prebuilt

* Update build.yml

* Update build.yml

* fix?

* fix(nix): use dynamic linking for ort-sys 2.0.0-rc.12

ort-sys rc.12 removed pkg-config support; without ORT_PREFER_DYNAMIC_LINK
it defaults to static linking against ORT_LIB_LOCATION, which fails
because nixpkgs only provides shared libraries (.so).

* fix(nix): override onnxruntime to 1.24.2 for ort-sys rc.12 compatibility

ort 2.0.0-rc.12 enables API v24 by default, but nixpkgs only ships
onnxruntime 1.23.2 (API v23), causing a runtime panic on model load.

Use Microsoft's prebuilt binaries for onnxruntime 1.24.2 via overlay,
patched with autoPatchelfHook for NixOS compatibility.

This overlay should be removed once nixpkgs merges onnxruntime ≥ 1.24:
NixOS/nixpkgs#499389

* updated deps for whisper

* fix(nix): sync devShell with packages for ort-sys rc.12 compatibility

- Extract shared definitions (commonNativeDeps, gstPlugins, commonEnv,
  onnxruntimeOverlay) to avoid duplication between packages and devShells
- Add onnxruntime 1.24.2 overlay to devShell (was only in packages)
- Add BINDGEN_EXTRA_CLANG_ARGS to devShell so bindgen can find stdio.h
  and generate correct vulkan bindings for whisper-rs-sys
- Add ORT_LIB_LOCATION and ORT_PREFER_DYNAMIC_LINK to devShell
- Replace libappindicator with libayatana-appindicator in devShell
- Add onnxruntime and vulkan-loader to devShell LD_LIBRARY_PATH

* fix missing lib in the handy blob dl

* scope lib verification

* dont run bun2nix on windows

---------

Co-authored-by: Evgeny <[email protected]>
@yuyuyureka
Copy link
Copy Markdown
Contributor

#501901 was merged

@yuyuyureka yuyuyureka closed this Mar 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

8.has: package (update) This PR updates a package to a newer version 10.rebuild-darwin: 11-100 This PR causes between 11 and 100 packages to rebuild on Darwin. 10.rebuild-linux: 101-500 This PR causes between 101 and 500 packages to rebuild on Linux. 12.first-time contribution This PR is the author's first one; please be gentle!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants