pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
onnxruntime: start package
Module Name: pkgsrc-wip
Committed By: Thomas Klausner <wiz%NetBSD.org@localhost>
Pushed By: wiz
Date: Fri May 1 11:18:45 2026 +0200
Changeset: 93e0d1adfd6f6231de446b443d49c9badcd35c7f
Modified Files:
Makefile
Added Files:
onnxruntime/DESCR
onnxruntime/Makefile
onnxruntime/PLIST
onnxruntime/TODO
onnxruntime/distinfo
onnxruntime/patches/patch-onnxruntime_test_python_transformers_benchmark__mha.sh
Log Message:
onnxruntime: start package
doesn't go very far since the distfile is not a git checkout
and the build scripts expects one
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=93e0d1adfd6f6231de446b443d49c9badcd35c7f
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
Makefile | 1 +
onnxruntime/DESCR | 11 +++++++++
onnxruntime/Makefile | 23 +++++++++++++++++++
onnxruntime/PLIST | 4 ++++
onnxruntime/TODO | 26 ++++++++++++++++++++++
onnxruntime/distinfo | 6 +++++
...time_test_python_transformers_benchmark__mha.sh | 18 +++++++++++++++
7 files changed, 89 insertions(+)
diffs:
diff --git a/Makefile b/Makefile
index 6ae09e2f0a..31739940b0 100644
--- a/Makefile
+++ b/Makefile
@@ -2733,6 +2733,7 @@ SUBDIR+= olsrd
SUBDIR+= omega
SUBDIR+= omnispeak
SUBDIR+= oneloop
+SUBDIR+= onnxruntime
SUBDIR+= oolite
SUBDIR+= oops
SUBDIR+= oorexx-svn
diff --git a/onnxruntime/DESCR b/onnxruntime/DESCR
new file mode 100644
index 0000000000..a5812e6096
--- /dev/null
+++ b/onnxruntime/DESCR
@@ -0,0 +1,11 @@
+ONNX Runtime is a cross-platform inference and training machine-learning
+accelerator.
+
+ONNX Runtime inference can enable faster customer experiences and
+lower costs, supporting models from deep learning frameworks such
+as PyTorch and TensorFlow/Keras as well as classical machine learning
+libraries such as scikit-learn, LightGBM, XGBoost, etc. ONNX Runtime
+is compatible with different hardware, drivers, and operating
+systems, and provides optimal performance by leveraging hardware
+accelerators where applicable alongside graph optimizations and
+transforms.
diff --git a/onnxruntime/Makefile b/onnxruntime/Makefile
new file mode 100644
index 0000000000..68d4c98181
--- /dev/null
+++ b/onnxruntime/Makefile
@@ -0,0 +1,23 @@
+# $NetBSD$
+
+DISTNAME= onnxruntime-1.25.1
+CATEGORIES= devel
+MASTER_SITES= ${MASTER_SITE_GITHUB:=microsoft/}
+GITHUB_TAG= v${PKGVERSION_NOREV}
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://github.com/microsoft/onnxruntime/
+COMMENT= Cross-platform, high performance ML inferencing and training accelerator
+LICENSE= mit
+
+TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools-[0-9]*:../../devel/py-setuptools
+TOOL_DEPENDS+= cmake-[0-9]*:../../devel/cmake
+
+USE_TOOLS+= git
+
+do-build:
+ cd ${WRKSRC} && ${PYTHONBIN} ${WRKSRC}/tools/ci_build/build.py --build_dir ${WRKSRC}/build/Linux
+
+.include "../../lang/python/tool.mk"
+.include "../../lang/python/wheel.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/onnxruntime/PLIST b/onnxruntime/PLIST
new file mode 100644
index 0000000000..92ba51a2d7
--- /dev/null
+++ b/onnxruntime/PLIST
@@ -0,0 +1,4 @@
+@comment $NetBSD$
+@comment TODO: to fill this file with the file listing:
+@comment TODO: 1. run "/usr/bin/make package"
+@comment TODO: 2. run "/usr/bin/make print-PLIST"
diff --git a/onnxruntime/TODO b/onnxruntime/TODO
new file mode 100644
index 0000000000..3147cde17e
--- /dev/null
+++ b/onnxruntime/TODO
@@ -0,0 +1,26 @@
+2026-05-01 09:18:02,139 build [INFO] - Build started
+2026-05-01 09:18:02,139 build [INFO] - git submodule sync --recursive
+fatal: not a git repository (or any of the parent directories): .git
+Traceback (most recent call last):
+ File "/tmp/wip/onnxruntime/work/onnxruntime-1.25.1/tools/ci_build/build.py", line 2667, in <module>
+ sys.exit(main())
+ ~~~~^^
+ File "/tmp/wip/onnxruntime/work/onnxruntime-1.25.1/tools/ci_build/build.py", line 2446, in main
+ update_submodules(source_dir)
+ ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^
+ File "/tmp/wip/onnxruntime/work/onnxruntime-1.25.1/tools/ci_build/build.py", line 152, in update_submodules
+ run_subprocess(["git", "submodule", "sync", "--recursive"], cwd=source_dir)
+ ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/tmp/wip/onnxruntime/work/onnxruntime-1.25.1/tools/ci_build/build.py", line 148, in run_subprocess
+ return run(*args, cwd=cwd, capture_stdout=capture_stdout, shell=shell, env=my_env)
+ File "/tmp/wip/onnxruntime/work/onnxruntime-1.25.1/tools/python/util/run.py", line 50, in run
+ completed_process = subprocess.run(
+ cmd,
+ ...<6 lines>...
+ shell=shell,
+ )
+ File "/usr/pkg/lib/python3.14/subprocess.py", line 578, in run
+ raise CalledProcessError(retcode, process.args,
+ output=stdout, stderr=stderr)
+subprocess.CalledProcessError: Command '['git', 'submodule', 'sync', '--recursive']' returned non-zero exit status 128.
+*** Error code 1
diff --git a/onnxruntime/distinfo b/onnxruntime/distinfo
new file mode 100644
index 0000000000..88875844b1
--- /dev/null
+++ b/onnxruntime/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+BLAKE2s (onnxruntime-1.25.1.tar.gz) = bcadf787d989160f8c071cb3226e2cffa4a4f58ebd9e9718bf501386bb1f04f5
+SHA512 (onnxruntime-1.25.1.tar.gz) = df760e30f1027b024d5a67aa3f36a6508609a58acc37e5e1066f919eaa42f9568c1c8218fbc80eeee0b9ec10307ea4778575b9ed3a1b312690f394b35d036e61
+Size (onnxruntime-1.25.1.tar.gz) = 284862475 bytes
+SHA1 (patch-onnxruntime_test_python_transformers_benchmark__mha.sh) = 59d8bd8409265cdea0df7700f0bba893626f1c60
diff --git a/onnxruntime/patches/patch-onnxruntime_test_python_transformers_benchmark__mha.sh b/onnxruntime/patches/patch-onnxruntime_test_python_transformers_benchmark__mha.sh
new file mode 100644
index 0000000000..2cd84ce5e2
--- /dev/null
+++ b/onnxruntime/patches/patch-onnxruntime_test_python_transformers_benchmark__mha.sh
@@ -0,0 +1,18 @@
+$NetBSD$
+
+Fix unportable test(1) operator.
+
+--- onnxruntime/test/python/transformers/benchmark_mha.sh.orig 2026-05-01 09:13:39.933359657 +0000
++++ onnxruntime/test/python/transformers/benchmark_mha.sh
+@@ -101,8 +101,8 @@ run_cpu_benchmarks() {
+
+ [ "$task" != "cpu" ] && configure_gpu 0
+
+-[ "$task" == "gpu" ] && run_gpu_benchmarks
++[ "$task" = "gpu" ] && run_gpu_benchmarks
+
+-[ "$task" == "cpu" ] && run_cpu_benchmarks
++[ "$task" = "cpu" ] && run_cpu_benchmarks
+
+-[ "$task" == "lean" ] && run_lean_benchmarks
++[ "$task" = "lean" ] && run_lean_benchmarks
Home |
Main Index |
Thread Index |
Old Index