1 |
commit: 677c2f992c31a0b3e36a8c4c9647092ab2adcf02 |
2 |
Author: Ian Hixson <mujo <AT> sdf <DOT> org> |
3 |
AuthorDate: Wed Mar 1 03:40:27 2023 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Mar 19 03:10:57 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=677c2f99 |
7 |
|
8 |
app-editors/kakoune: Fix gcc13 build bug #895264 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/895264 |
11 |
Signed-off-by: Ian Hixson <mujo <AT> sdf.org> |
12 |
Closes: https://github.com/gentoo/gentoo/pull/29867 |
13 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
14 |
|
15 |
.../kakoune/files/kakoune-2022.10.31-gcc13.patch | 29 ++++++++++++++++++++++ |
16 |
app-editors/kakoune/kakoune-2022.10.31.ebuild | 6 ++++- |
17 |
2 files changed, 34 insertions(+), 1 deletion(-) |
18 |
|
19 |
diff --git a/app-editors/kakoune/files/kakoune-2022.10.31-gcc13.patch b/app-editors/kakoune/files/kakoune-2022.10.31-gcc13.patch |
20 |
new file mode 100644 |
21 |
index 000000000000..6c093bcdb2eb |
22 |
--- /dev/null |
23 |
+++ b/app-editors/kakoune/files/kakoune-2022.10.31-gcc13.patch |
24 |
@@ -0,0 +1,29 @@ |
25 |
+https://bugs.gentoo.org/895264 |
26 |
+https://github.com/mawww/kakoune/issues/4854 |
27 |
+ |
28 |
+diff --git a/src/keys.hh b/src/keys.hh |
29 |
+index 0af1a5a8..ccafe336 100644 |
30 |
+--- a/src/keys.hh |
31 |
++++ b/src/keys.hh |
32 |
+@@ -9,6 +9,8 @@ |
33 |
+ #include "unicode.hh" |
34 |
+ #include "vector.hh" |
35 |
+ |
36 |
++#include <cstdint> |
37 |
++ |
38 |
+ namespace Kakoune |
39 |
+ { |
40 |
+ |
41 |
+diff --git a/src/ranked_match.hh b/src/ranked_match.hh |
42 |
+index ec7fe626..62d6b8f0 100644 |
43 |
+--- a/src/ranked_match.hh |
44 |
++++ b/src/ranked_match.hh |
45 |
+@@ -4,6 +4,8 @@ |
46 |
+ #include "string.hh" |
47 |
+ #include "meta.hh" |
48 |
+ |
49 |
++#include <cstdint> |
50 |
++ |
51 |
+ namespace Kakoune |
52 |
+ { |
53 |
+ |
54 |
|
55 |
diff --git a/app-editors/kakoune/kakoune-2022.10.31.ebuild b/app-editors/kakoune/kakoune-2022.10.31.ebuild |
56 |
index 2e6ad9d352ed..9293c946c84a 100644 |
57 |
--- a/app-editors/kakoune/kakoune-2022.10.31.ebuild |
58 |
+++ b/app-editors/kakoune/kakoune-2022.10.31.ebuild |
59 |
@@ -1,4 +1,4 @@ |
60 |
-# Copyright 2020-2022 Gentoo Authors |
61 |
+# Copyright 2020-2023 Gentoo Authors |
62 |
# Distributed under the terms of the GNU General Public License v2 |
63 |
|
64 |
EAPI=8 |
65 |
@@ -15,6 +15,10 @@ KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86" |
66 |
|
67 |
BDEPEND="virtual/pkgconfig" |
68 |
|
69 |
+PATCHES=( |
70 |
+ "${FILESDIR}"/${P}-gcc13.patch |
71 |
+) |
72 |
+ |
73 |
src_prepare() { |
74 |
sed -i '/CXXFLAGS += -O3/d' src/Makefile || die |
75 |
default |