diff --git a/dev-util/ccls/ccls-0.20240202.ebuild b/dev-util/ccls/ccls-0.20240202.ebuild index 1cb54ca0aa664..d0c1c4208ec01 100644 --- a/dev-util/ccls/ccls-0.20240202.ebuild +++ b/dev-util/ccls/ccls-0.20240202.ebuild @@ -33,6 +33,10 @@ DEPEND=" " RDEPEND="${DEPEND}" +PATCHES=( + "${FILESDIR}"/ccls-0.20240202-gcc15-cstdint.patch +) + src_configure() { local mycmakeargs=( -DCCLS_VERSION=${PV} diff --git a/dev-util/ccls/files/ccls-0.20240202-gcc15-cstdint.patch b/dev-util/ccls/files/ccls-0.20240202-gcc15-cstdint.patch new file mode 100644 index 0000000000000..ffc988d380106 --- /dev/null +++ b/dev-util/ccls/files/ccls-0.20240202-gcc15-cstdint.patch @@ -0,0 +1,22 @@ +https://github.com/MaskRay/ccls/pull/968 + +From dcb10d17de5aa9d2fb2278ea87e76d042d9fda77 Mon Sep 17 00:00:00 2001 +From: Sam James +Date: Tue, 6 Aug 2024 11:41:47 +0100 +Subject: [PATCH] utils: Add `` + +utils uses `uint64_t` without including `` +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 + #include + ++#include + #include + #include + #include +