dev-libs/cpuinfo: fix build with test

Closes: https://bugs.gentoo.org/959334
Closes: https://bugs.gentoo.org/957463
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
This commit is contained in:
Alfredo Tupone 2025-07-03 14:20:23 +02:00
parent 0db9e4defb
commit 8ccefd3f5f
No known key found for this signature in database
GPG Key ID: FBE5925C5B02CE58
2 changed files with 26 additions and 0 deletions

View File

@ -24,6 +24,7 @@ RESTRICT="!test? ( test )"
PATCHES=(
"${FILESDIR}"/${PN}-2023.11.04-gentoo.patch
"${FILESDIR}"/${PN}-2023.01.13-test.patch
"${FILESDIR}"/${P}-cmake.patch
)
src_configure() {

View File

@ -0,0 +1,25 @@
--- a/deps/clog/CMakeLists.txt 2025-07-03 13:48:59.732799363 +0200
+++ b/deps/clog/CMakeLists.txt 2025-07-03 13:49:19.943589382 +0200
@@ -1,4 +1,4 @@
-CMAKE_MINIMUM_REQUIRED(VERSION 3.1 FATAL_ERROR)
+CMAKE_MINIMUM_REQUIRED(VERSION 3.5 FATAL_ERROR)
INCLUDE(GNUInstallDirs)
--- a/CMakeLists.txt 2025-07-03 14:17:50.895772131 +0200
+++ b/CMakeLists.txt 2025-07-03 14:18:13.206538587 +0200
@@ -1,4 +1,4 @@
-CMAKE_MINIMUM_REQUIRED(VERSION 3.5 FATAL_ERROR)
+CMAKE_MINIMUM_REQUIRED(VERSION 3.8 FATAL_ERROR)
# ---[ Setup project
PROJECT(
@@ -42,7 +42,7 @@
MACRO(CPUINFO_TARGET_ENABLE_CXX11 target)
SET_TARGET_PROPERTIES(${target} PROPERTIES
- CXX_STANDARD 14
+ CXX_STANDARD 17
CXX_EXTENSIONS NO)
ENDMACRO()