summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSv. Lockal <lockalsash@gmail.com>2024-01-24 12:17:28 +0000
committerAlfredo Tupone <tupone@gentoo.org>2024-01-24 14:38:49 +0100
commit1148e3c7e08031e186abfb5a472d0d9293018424 (patch)
tree8aee4c24546e8d38893cc29cf3039a7461854e98
parentmedia-gfx/transfig: fix modern C issues (diff)
downloadgentoo-1148e3c7e08031e186abfb5a472d0d9293018424.tar.gz
gentoo-1148e3c7e08031e186abfb5a472d0d9293018424.tar.bz2
gentoo-1148e3c7e08031e186abfb5a472d0d9293018424.zip
dev-libs/oneDNN: musl: fix compilation failure due to missing header
Upstream PR: https://github.com/oneapi-src/oneDNN/pull/1792 Closes: https://bugs.gentoo.org/922778 Signed-off-by: Sv. Lockal <lockalsash@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/34987 Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
-rw-r--r--dev-libs/oneDNN/files/oneDNN-3.3.3-include-cstdint.patch13
-rw-r--r--dev-libs/oneDNN/oneDNN-3.3.3.ebuild4
2 files changed, 17 insertions, 0 deletions
diff --git a/dev-libs/oneDNN/files/oneDNN-3.3.3-include-cstdint.patch b/dev-libs/oneDNN/files/oneDNN-3.3.3-include-cstdint.patch
new file mode 100644
index 000000000000..024c1350340e
--- /dev/null
+++ b/dev-libs/oneDNN/files/oneDNN-3.3.3-include-cstdint.patch
@@ -0,0 +1,13 @@
+Fix for dims.hpp:25:28: error: int64_t was not declared in this scope
+Bug: https://bugs.gentoo.org/922778
+Upstream fix: https://github.com/oneapi-src/oneDNN/pull/1792
+--- a/tests/benchdnn/utils/dims.hpp
++++ b/tests/benchdnn/utils/dims.hpp
+@@ -18,6 +18,7 @@
+ #define UTILS_DIMS_T_HPP
+
+ #include <cassert>
++#include <cstdint>
+ #include <iostream>
+ #include <string>
+ #include <vector>
diff --git a/dev-libs/oneDNN/oneDNN-3.3.3.ebuild b/dev-libs/oneDNN/oneDNN-3.3.3.ebuild
index 88b11ae05e38..6ce3ea96e786 100644
--- a/dev-libs/oneDNN/oneDNN-3.3.3.ebuild
+++ b/dev-libs/oneDNN/oneDNN-3.3.3.ebuild
@@ -31,6 +31,10 @@ DEPEND="
"
RDEPEND="${DEPEND}"
+PATCHES=(
+ "${FILESDIR}/${PN}-3.3.3-include-cstdint.patch"
+)
+
src_configure() {
local mycmakeargs=(
-DDNNL_LIBRARY_TYPE=$(usex static-libs STATIC SHARED)