commit:     677c2f992c31a0b3e36a8c4c9647092ab2adcf02
Author:     Ian Hixson <mujo <AT> sdf <DOT> org>
AuthorDate: Wed Mar  1 03:40:27 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Mar 19 03:10:57 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=677c2f99

app-editors/kakoune: Fix gcc13 build bug #895264

Closes: https://bugs.gentoo.org/895264
Signed-off-by: Ian Hixson <mujo <AT> sdf.org>
Closes: https://github.com/gentoo/gentoo/pull/29867
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../kakoune/files/kakoune-2022.10.31-gcc13.patch   | 29 ++++++++++++++++++++++
 app-editors/kakoune/kakoune-2022.10.31.ebuild      |  6 ++++-
 2 files changed, 34 insertions(+), 1 deletion(-)

diff --git a/app-editors/kakoune/files/kakoune-2022.10.31-gcc13.patch 
b/app-editors/kakoune/files/kakoune-2022.10.31-gcc13.patch
new file mode 100644
index 000000000000..6c093bcdb2eb
--- /dev/null
+++ b/app-editors/kakoune/files/kakoune-2022.10.31-gcc13.patch
@@ -0,0 +1,29 @@
+https://bugs.gentoo.org/895264
+https://github.com/mawww/kakoune/issues/4854
+
+diff --git a/src/keys.hh b/src/keys.hh
+index 0af1a5a8..ccafe336 100644
+--- a/src/keys.hh
++++ b/src/keys.hh
+@@ -9,6 +9,8 @@
+ #include "unicode.hh"
+ #include "vector.hh"
+
++#include <cstdint>
++
+ namespace Kakoune
+ {
+     
+diff --git a/src/ranked_match.hh b/src/ranked_match.hh
+index ec7fe626..62d6b8f0 100644
+--- a/src/ranked_match.hh
++++ b/src/ranked_match.hh
+@@ -4,6 +4,8 @@
+ #include "string.hh"
+ #include "meta.hh"
+
++#include <cstdint>
++
+ namespace Kakoune
+ {
+ 

diff --git a/app-editors/kakoune/kakoune-2022.10.31.ebuild 
b/app-editors/kakoune/kakoune-2022.10.31.ebuild
index 2e6ad9d352ed..9293c946c84a 100644
--- a/app-editors/kakoune/kakoune-2022.10.31.ebuild
+++ b/app-editors/kakoune/kakoune-2022.10.31.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2020-2022 Gentoo Authors
+# Copyright 2020-2023 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -15,6 +15,10 @@ KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
 
 BDEPEND="virtual/pkgconfig"
 
+PATCHES=(
+       "${FILESDIR}"/${P}-gcc13.patch
+)
+
 src_prepare() {
        sed -i '/CXXFLAGS += -O3/d' src/Makefile || die
        default

Reply via email to