File 0001-Fix-FindLibGit2.cmake-with-newer-versions.patch of Package elektra
From 3d733c90becbdeaae3d7faa6924dd1302c3d33a1 Mon Sep 17 00:00:00 2001
From: Fabian Vogt <fvogt@suse.de>
Date: Tue, 9 Aug 2022 08:57:46 +0200
Subject: [PATCH] Fix FindLibGit2.cmake with newer versions
Update the REGEX to also allow tabs.
---
cmake/Modules/FindLibGit2.cmake | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: elektra-0.8.26/cmake/Modules/FindLibGit2.cmake
===================================================================
--- elektra-0.8.26.orig/cmake/Modules/FindLibGit2.cmake
+++ elektra-0.8.26/cmake/Modules/FindLibGit2.cmake
@@ -15,7 +15,7 @@ find_file (LibGit2_VERSION_HEADER NAMES
if (NOT LibGit2_VERSION_HEADER STREQUAL LibGit2_VERSION_HEADER-NOTFOUND)
file (STRINGS ${LibGit2_VERSION_HEADER}
LibGit2_VERSION
- REGEX "#define LIBGIT2_VERSION \".+\""
+ REGEX "#define LIBGIT2_VERSION[ \t]+\".+\""
LIMIT_COUNT 1)
string (REGEX
REPLACE ".*\"(.+)\""