commit:     cc4f7fbe9f768d3bd9343c6c7aae2ecc4ce209e9
Author:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Mon Jun 16 20:13:41 2025 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Mon Jun 16 20:14:14 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cc4f7fbe

sci-ml/foxi: fix cmake and lto

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

 sci-ml/foxi/files/foxi-2021.05.27-cmake.patch |  9 +++++++++
 sci-ml/foxi/foxi-2021.05.27.ebuild            | 13 ++++++++++++-
 2 files changed, 21 insertions(+), 1 deletion(-)

diff --git a/sci-ml/foxi/files/foxi-2021.05.27-cmake.patch 
b/sci-ml/foxi/files/foxi-2021.05.27-cmake.patch
new file mode 100644
index 000000000000..ed3c07f25d1a
--- /dev/null
+++ b/sci-ml/foxi/files/foxi-2021.05.27-cmake.patch
@@ -0,0 +1,9 @@
+--- a/CMakeLists.txt   2025-06-16 22:04:30.852811014 +0200
++++ b/CMakeLists.txt   2025-06-16 22:04:59.804503623 +0200
+@@ -1,5 +1,5 @@
+ # Minimum CMake required
+-cmake_minimum_required(VERSION 3.1)
++cmake_minimum_required(VERSION 3.5)
+ # Set default build type
+ if(NOT CMAKE_BUILD_TYPE)
+   message(STATUS "Build type not set - defaulting to Release")

diff --git a/sci-ml/foxi/foxi-2021.05.27.ebuild 
b/sci-ml/foxi/foxi-2021.05.27.ebuild
index 22aa3350c9bc..a80ac4d0b79c 100644
--- a/sci-ml/foxi/foxi-2021.05.27.ebuild
+++ b/sci-ml/foxi/foxi-2021.05.27.ebuild
@@ -2,7 +2,7 @@
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
-inherit cmake
+inherit cmake dot-a
 
 CommitId=c278588e34e535f0bb8f00df3880d26928038cad
 
@@ -21,4 +21,15 @@ RESTRICT="test" # No test available
 
 PATCHES=(
        "${FILESDIR}"/${P}-gentoo.patch
+       "${FILESDIR}"/${P}-cmake.patch
 )
+
+src_configure() {
+       lto-guarantee-fat
+       cmake_src_configure
+}
+
+src_install() {
+       cmake_src_install
+       strip-lto-bytecode
+}

Reply via email to