dev-util/ccls: fix build w/ gcc-15

Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2024-08-06 11:44:58 +01:00
parent 187486e279
commit 594ccea534
2 changed files with 26 additions and 0 deletions

View File

@@ -33,6 +33,10 @@ DEPEND="
"
RDEPEND="${DEPEND}"
PATCHES=(
"${FILESDIR}"/ccls-0.20240202-gcc15-cstdint.patch
)
src_configure() {
local mycmakeargs=(
-DCCLS_VERSION=${PV}

View File

@@ -0,0 +1,22 @@
https://github.com/MaskRay/ccls/pull/968
From dcb10d17de5aa9d2fb2278ea87e76d042d9fda77 Mon Sep 17 00:00:00 2001
From: Sam James <sam@gentoo.org>
Date: Tue, 6 Aug 2024 11:41:47 +0100
Subject: [PATCH] utils: Add `<cstdint>`
utils uses `uint64_t` without including `<cstdint>`
which fails to build w/ GCC 15 after a change in libstdc++ [0]
[0] https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=3a817a4a5a6d94da9127af3be9f84a74e3076ee2
--- a/src/utils.hh
+++ b/src/utils.hh
@@ -6,6 +6,7 @@
#include <optional>
#include <string_view>
+#include <cstdint>
#include <iterator>
#include <memory>
#include <string>