mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-17 02:39:08 -07:00
dev-util/ccls: fix build w/ gcc-15
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
@@ -33,6 +33,10 @@ DEPEND="
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/ccls-0.20240202-gcc15-cstdint.patch
|
||||
)
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DCCLS_VERSION=${PV}
|
||||
|
||||
22
dev-util/ccls/files/ccls-0.20240202-gcc15-cstdint.patch
Normal file
22
dev-util/ccls/files/ccls-0.20240202-gcc15-cstdint.patch
Normal 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>
|
||||
|
||||
Reference in New Issue
Block a user