commit: 2baa6d7fd846f14129d04312728744013acea492 Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Sun Mar 26 23:22:59 2023 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sun Mar 26 23:23:09 2023 +0000 URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=2baa6d7f
dev-util/kdevelop: add missing patch Bug: https://bugs.gentoo.org/902101 Fixes: 856936687150763b48e5d59e94d2f02761ceb593 Signed-off-by: Sam James <sam <AT> gentoo.org> .../kdevelop/files/kdevelop-22.12.3-clang16.patch | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/dev-util/kdevelop/files/kdevelop-22.12.3-clang16.patch b/dev-util/kdevelop/files/kdevelop-22.12.3-clang16.patch new file mode 100644 index 0000000000..38676cc164 --- /dev/null +++ b/dev-util/kdevelop/files/kdevelop-22.12.3-clang16.patch @@ -0,0 +1,24 @@ +https://bugs.gentoo.org/902101 +--- a/cmake/modules/FindClang.cmake ++++ b/cmake/modules/FindClang.cmake +@@ -97,6 +97,8 @@ + # dito for git + string(REPLACE "git" "" CLANG_VERSION_CLEAN "${CLANG_VERSION}") + ++ string(REGEX REPLACE "([.]0)+$" "" CLANG_VERSION_STRIPPED "${CLANG_VERSION}") ++ string(REGEX REPLACE "([.]0)+$" "" CLANG_VERSION_CLEAN_STRIPPED "${CLANG_VERSION_CLEAN}") + find_path(CLANG_BUILTIN_DIR + # cpuid.h because it is defined in ClangSupport constructor as valid clang builtin dir indicator + NAMES "cpuid.h" +@@ -106,6 +108,10 @@ + "../../../clang/${CLANG_VERSION}/include" + "clang/${CLANG_VERSION_CLEAN}/include" + "../../../clang/${CLANG_VERSION_CLEAN}/include" ++ "clang/${CLANG_VERSION_STRIPPED}/include" ++ "../../../clang/${CLANG_VERSION_STRIPPED}/include" ++ "clang/${CLANG_VERSION_CLEAN_STRIPPED}/include" ++ "../../../clang/${CLANG_VERSION_CLEAN_STRIPPED}/include" + NO_DEFAULT_PATH + ) + +