commit:     2a78308e556786caa92755545e2364ddc7ebfe6e
Author:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Wed Jul  9 20:50:29 2025 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Wed Jul  9 20:50:29 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2a78308e

sci-ml/NNPACK: cmake >= 3.5

Closes: https://bugs.gentoo.org/957396
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>

 sci-ml/NNPACK/NNPACK-2020.12.22-r4.ebuild         | 5 ++++-
 sci-ml/NNPACK/files/NNPACK-2020.12.22-cmake.patch | 8 ++++++++
 2 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/sci-ml/NNPACK/NNPACK-2020.12.22-r4.ebuild 
b/sci-ml/NNPACK/NNPACK-2020.12.22-r4.ebuild
index b059fd74d7a3..2867626cc08e 100644
--- a/sci-ml/NNPACK/NNPACK-2020.12.22-r4.ebuild
+++ b/sci-ml/NNPACK/NNPACK-2020.12.22-r4.ebuild
@@ -40,7 +40,10 @@ BDEPEND="
        test? ( dev-cpp/gtest )
 "
 
-PATCHES=( "${FILESDIR}"/${P}-gentoo.patch )
+PATCHES=(
+       "${FILESDIR}"/${P}-gentoo.patch
+       "${FILESDIR}"/${P}-cmake.patch
+)
 
 src_prepare() {
        sed -i \

diff --git a/sci-ml/NNPACK/files/NNPACK-2020.12.22-cmake.patch 
b/sci-ml/NNPACK/files/NNPACK-2020.12.22-cmake.patch
new file mode 100644
index 000000000000..ba50c616d8cf
--- /dev/null
+++ b/sci-ml/NNPACK/files/NNPACK-2020.12.22-cmake.patch
@@ -0,0 +1,8 @@
+--- a/CMakeLists.txt   2025-07-09 22:47:20.927544030 +0200
++++ b/CMakeLists.txt   2025-07-09 22:47:30.686441471 +0200
+@@ -1,4 +1,4 @@
+-CMAKE_MINIMUM_REQUIRED(VERSION 2.8.12 FATAL_ERROR)
++CMAKE_MINIMUM_REQUIRED(VERSION 3.5 FATAL_ERROR)
+ 
+ INCLUDE(GNUInstallDirs)
+ INCLUDE(CheckCSourceCompiles)

Reply via email to