mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-23 16:49:10 -07:00
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@gentoo.org>
This commit is contained in:
9
sci-ml/foxi/files/foxi-2021.05.27-cmake.patch
Normal file
9
sci-ml/foxi/files/foxi-2021.05.27-cmake.patch
Normal file
@@ -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")
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user