commit:     444a993e4b5f74bcad664215b0a4a396c48a5a15
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Tue May 20 22:36:34 2025 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Tue May 20 22:36:34 2025 +0000
URL:        https://gitweb.gentoo.org/proj/kde.git/commit/?id=444a993e

cmake.eclass: CMake 4 QA check: Apparently, cmake allows double-dots

As a quick fix, for now, don't error out on that.

> ERROR: media-gfx/darktable-5.0.1-r2::gentoo failed (configure phase):
> __eapi7_ver_compare: invalid version: 3.12..16
See also:
> LibRaw-cmake/CMakeLists.txt:cmake_minimum_required(VERSION 3.12..16)

Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 eclass/cmake.eclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/eclass/cmake.eclass b/eclass/cmake.eclass
index f7394a3790..5332e84135 100644
--- a/eclass/cmake.eclass
+++ b/eclass/cmake.eclass
@@ -371,7 +371,7 @@ cmake_src_configure() {
        local file ver cmreq_isold
        if ! [[ ${CMAKE_QA_COMPAT_SKIP} ]]; then
                while read -d '' -r file ; do
-                       ver=$(sed -ne "/cmake_minimum_required/ 
s/.*\(\.\.\.\|\s\)\([0-9.]*\)\([)]\|\s\).*$/\2/p" \
+                       ver=$(sed -ne "/cmake_minimum_required/ 
s/.*\(\.\.\.*\|\s\)\([0-9.]*\)\([)]\|\s\).*$/\2/p" \
                                "${file}" 2>/dev/null \
                        )
 

Reply via email to