commit:     8ccefd3f5f951e45c49c52a2203918e0965aa342
Author:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Thu Jul  3 12:20:23 2025 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Thu Jul  3 12:20:56 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8ccefd3f

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 <AT> gentoo.org>

 dev-libs/cpuinfo/cpuinfo-2024.10.22.2.ebuild       |  1 +
 .../cpuinfo/files/cpuinfo-2024.10.22.2-cmake.patch | 25 ++++++++++++++++++++++
 2 files changed, 26 insertions(+)

diff --git a/dev-libs/cpuinfo/cpuinfo-2024.10.22.2.ebuild 
b/dev-libs/cpuinfo/cpuinfo-2024.10.22.2.ebuild
index b6b6e91579fd..650dc7ecfe33 100644
--- a/dev-libs/cpuinfo/cpuinfo-2024.10.22.2.ebuild
+++ b/dev-libs/cpuinfo/cpuinfo-2024.10.22.2.ebuild
@@ -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() {

diff --git a/dev-libs/cpuinfo/files/cpuinfo-2024.10.22.2-cmake.patch 
b/dev-libs/cpuinfo/files/cpuinfo-2024.10.22.2-cmake.patch
new file mode 100644
index 000000000000..9d71f0333a75
--- /dev/null
+++ b/dev-libs/cpuinfo/files/cpuinfo-2024.10.22.2-cmake.patch
@@ -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()
+ 

Reply via email to