commit: ad785d4a966ae0b47eb8419fde840ca9da657dfd Author: Alfredo Tupone <tupone <AT> gentoo <DOT> org> AuthorDate: Tue Apr 8 20:08:08 2025 +0000 Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org> CommitDate: Tue Apr 8 20:13:55 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ad785d4a
sci-ml/oneDNN: fix min cmake version Closes: https://bugs.gentoo.org/953418 Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org> sci-ml/oneDNN/files/oneDNN-3.6.2-cmake.patch | 11 +++++++++++ sci-ml/oneDNN/oneDNN-3.6.2.ebuild | 2 ++ 2 files changed, 13 insertions(+) diff --git a/sci-ml/oneDNN/files/oneDNN-3.6.2-cmake.patch b/sci-ml/oneDNN/files/oneDNN-3.6.2-cmake.patch new file mode 100644 index 000000000000..2d0041dad8f6 --- /dev/null +++ b/sci-ml/oneDNN/files/oneDNN-3.6.2-cmake.patch @@ -0,0 +1,11 @@ +--- a/CMakeLists.txt 2025-04-08 22:04:35.298750813 +0200 ++++ b/CMakeLists.txt 2025-04-08 22:04:47.430599644 +0200 +@@ -14,7 +14,7 @@ + # limitations under the License. + #=============================================================================== + +-cmake_minimum_required(VERSION 2.8.12) ++cmake_minimum_required(VERSION 3.5) + + if(POLICY CMP0022) + cmake_policy(SET CMP0022 NEW) diff --git a/sci-ml/oneDNN/oneDNN-3.6.2.ebuild b/sci-ml/oneDNN/oneDNN-3.6.2.ebuild index a76d3055d225..c823aad107e7 100644 --- a/sci-ml/oneDNN/oneDNN-3.6.2.ebuild +++ b/sci-ml/oneDNN/oneDNN-3.6.2.ebuild @@ -39,6 +39,8 @@ BDEPEND=" ) " +PATCHES=( "${FILESDIR}"/${P}-cmake.patch ) + pkg_pretend() { [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp }
