commit:     594ccea5341befc60f038585e92f226dbacfff46
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Aug  6 10:44:58 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Aug  6 10:45:32 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=594ccea5

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

Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-util/ccls/ccls-0.20240202.ebuild               |  4 ++++
 .../ccls/files/ccls-0.20240202-gcc15-cstdint.patch | 22 ++++++++++++++++++++++
 2 files changed, 26 insertions(+)

diff --git a/dev-util/ccls/ccls-0.20240202.ebuild 
b/dev-util/ccls/ccls-0.20240202.ebuild
index 1cb54ca0aa66..d0c1c4208ec0 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 000000000000..ffc988d38010
--- /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 <[email protected]>
+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>
+

Reply via email to