summaryrefslogtreecommitdiff
path: root/sci-libs/onnx
diff options
context:
space:
mode:
Diffstat (limited to 'sci-libs/onnx')
-rw-r--r--sci-libs/onnx/Manifest3
-rw-r--r--sci-libs/onnx/files/onnx-1.14.1-musl.patch11
-rw-r--r--sci-libs/onnx/onnx-1.14.1-r2.ebuild5
3 files changed, 17 insertions, 2 deletions
diff --git a/sci-libs/onnx/Manifest b/sci-libs/onnx/Manifest
index a82149e287d4..731c22139c3f 100644
--- a/sci-libs/onnx/Manifest
+++ b/sci-libs/onnx/Manifest
@@ -1,6 +1,7 @@
AUX onnx-1.14.0-cxx_14.patch 390 BLAKE2B adae69890eec31f16de501ef3b2fc88e5dff2d0fb561d470955daa6830e7a818d35c80789cbbedd874e11776a59f07fafe9576ee11e6a0fb45fc8635fb6ef81f SHA512 7a89e24067909b1106753bd2853fc51da3d8a567c452d72d53ea321c13c78c46dbca356e3fbe78d98e301a360b93090644861c3a0d8ab6022f9666c0ee788be1
+AUX onnx-1.14.1-musl.patch 518 BLAKE2B 540d5c81d43a515ca6c4598057b80ad2157ba528dd976306175ff68e9fb0e8d05d1a92a2d6c706470017750f86ae48f30c91ae21e44627679e7b3ec8cf6e1a43 SHA512 6e198ee14da82c0fe0512d587de5da0831fbc40ac546407dc27b2ed5c75e9aa87bb0d732c6ebd6099f26ac926ad7afaed131a914352e58f9956697ab55cbf933
DIST onnx-1.14.1.tar.gz 11570627 BLAKE2B df478219b5d557ad7e0717377996eefc02baa88a89d9681b17e00670e42fa3c8e47db0f5c5fdfab682fa7d80032559da8276c5106a91a7599d190427e2b6e4a8 SHA512 f846fffb286c4aeadc01462f220515f0a5c2ce1cbec849da7092a08c2676f8308af7315318a2866e9182f9aed719984ef95a9ddc69ffe0e62e40664395df5efd
DIST onnx-1.15.0.tar.gz 12360484 BLAKE2B 4d35b82c128a69124b9bfcb3e56b3d584b7451ae739a91039e201dd485efa3e90e34e6cf135993317622f8f524160a38556231b2b0561e93d8cd0487abf35c1b SHA512 b46a4ab70af88053318eba45251c1f71528f15e45a33042877570e8d857febd3ec66e2e811fcda2105a4f17b84c9a1c6a0aaa22756c3287321b3ea29e83127fd
-EBUILD onnx-1.14.1-r2.ebuild 1255 BLAKE2B e06cad5c07832f9f55093fdae68e8ce89f8fc7b7f42c7c8db5050d62dbf282adfc5d5d75341f83dca083e0d7596c23cc803ea38aa1649737c83ef64b09ef0d10 SHA512 3d73503985b97be661162b2ae0c7d6cb2bb4458b9419ddc6eaed1696a8811f8352837b6bd065099c8496b6fcbb8082f5d88a6a6a92049ab25cec9b5da442e407
+EBUILD onnx-1.14.1-r2.ebuild 1287 BLAKE2B 981384a06007a6e1d0bbe602a6ab46cf856a5f6c07223599fbebfd23f2dfef4ded766367580b11e635421b0fb94ca0574fde853ee6dadb4d5f50e978a1eec1b9 SHA512 98cd76cee92bebe93192cce202fd7caf4cbb42d0afcf312acbdcb57992ccc1a7efe1f9cc3d1dc9df9cdc657b5c1ae4bfb2d6e5f86624f4bb6b5853d6a19ec952
EBUILD onnx-1.15.0.ebuild 1202 BLAKE2B b02f87b6f3765cc308be2f150cd528fd9840a5cbeb7b786db9583d4b9282707b374c4b1c360ce5944a0c0f5ce838416114659188b38913dedceaf2bdd38ea4ec SHA512 64153c948cf18055fa4bb9196e6a384f727281d32e2827039fa60236348d4c630d7525a9bab61e1d092c795142beb811db4263bff5f6eba13af5afb69a22804b
MISC metadata.xml 322 BLAKE2B a78b6feffba2cf354154448a0e0cef5e866ec51ff0158939e7a5be1f3c4cb9bb3b29ae88ae06540627946fc3e0f6e9a63ef4d8951385e840a7a87ada99e1d50a SHA512 9d81e8e43822232c8c8cf690b6bdb9939f04adeb9230f8225a5b0b10083f9555304768901c46cc5d29c41038397bbb3b12e0111c3d0443f4c0003e99b99fc50f
diff --git a/sci-libs/onnx/files/onnx-1.14.1-musl.patch b/sci-libs/onnx/files/onnx-1.14.1-musl.patch
new file mode 100644
index 000000000000..04748ed67e6a
--- /dev/null
+++ b/sci-libs/onnx/files/onnx-1.14.1-musl.patch
@@ -0,0 +1,11 @@
+--- a/onnx/checker.cc 2024-02-18 15:30:03.316320035 +0100
++++ b/onnx/checker.cc 2024-02-18 15:31:05.715473732 +0100
+@@ -184,7 +184,7 @@
+ }
+ std::string data_path = path_join(ctx.get_model_dir(), relative_path);
+ // use stat64 to check whether the file exists
+-#if defined(__APPLE__) || defined(__wasm__)
++#if defined(__APPLE__) || defined(__wasm__) || !defined(__GLIBC__)
+ struct stat buffer; // APPLE does not have stat64
+ if (stat((data_path).c_str(), &buffer) != 0) {
+ #else
diff --git a/sci-libs/onnx/onnx-1.14.1-r2.ebuild b/sci-libs/onnx/onnx-1.14.1-r2.ebuild
index 9a6ffb11f82d..e6ecbfd239bc 100644
--- a/sci-libs/onnx/onnx-1.14.1-r2.ebuild
+++ b/sci-libs/onnx/onnx-1.14.1-r2.ebuild
@@ -34,7 +34,10 @@ BDEPEND="python? (
${DISTUTILS_DEPS}
)"
-PATCHES=( "${FILESDIR}"/${PN}-1.14.0-cxx_14.patch )
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.14.0-cxx_14.patch
+ "${FILESDIR}"/${P}-musl.patch
+)
src_prepare() {
cmake_src_prepare