commit:     8b1ed04d8d5ddae19d74457f693f05ea5b4dc8c0
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Nov 14 02:44:24 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Nov 14 02:44:57 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8b1ed04d

app-editors/ghostwriter: backport gcc-13 fix to 23.04.3

23.08.3 already has the fix in a release.

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

 .../files/ghostwriter-23.0.4-stdint.patch          | 27 ++++++++++++++++++++++
 app-editors/ghostwriter/ghostwriter-23.04.3.ebuild |  4 ++++
 2 files changed, 31 insertions(+)

diff --git a/app-editors/ghostwriter/files/ghostwriter-23.0.4-stdint.patch 
b/app-editors/ghostwriter/files/ghostwriter-23.0.4-stdint.patch
new file mode 100644
index 000000000000..5fa58933843c
--- /dev/null
+++ b/app-editors/ghostwriter/files/ghostwriter-23.0.4-stdint.patch
@@ -0,0 +1,27 @@
+https://github.com/KDE/ghostwriter/commit/b76b14a00069a2d544b615ad6dc8f9cbdc678982
+
+From b76b14a00069a2d544b615ad6dc8f9cbdc678982 Mon Sep 17 00:00:00 2001
+From: Pino Toscano <[email protected]>
+Date: Wed, 26 Jul 2023 04:19:19 +0200
+Subject: [PATCH] Include <cstdint> where needed
+
+Include it where std::uint32_t is explicitly used.
+
+(cherry picked from commit 9e1a2ba2e01c7172a04e41b5d487461aa73c87d6)
+---
+ src/markdownnode.cpp | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/src/markdownnode.cpp b/src/markdownnode.cpp
+index dce179d4a..f7a4eab49 100644
+--- a/src/markdownnode.cpp
++++ b/src/markdownnode.cpp
+@@ -4,6 +4,8 @@
+  * SPDX-License-Identifier: GPL-3.0-or-later
+  */
+ 
++#include <cstdint>
++
+ #include "../3rdparty/cmark-gfm/src/cmark-gfm.h"
+ #include "../3rdparty/cmark-gfm/extensions/cmark-gfm-core-extensions.h"
+ 

diff --git a/app-editors/ghostwriter/ghostwriter-23.04.3.ebuild 
b/app-editors/ghostwriter/ghostwriter-23.04.3.ebuild
index 28ce693be6e0..1df0d10ec5eb 100644
--- a/app-editors/ghostwriter/ghostwriter-23.04.3.ebuild
+++ b/app-editors/ghostwriter/ghostwriter-23.04.3.ebuild
@@ -39,3 +39,7 @@ BDEPEND="
 "
 
 DOCS=( CHANGELOG.md README.md )
+
+PATCHES=(
+       "${FILESDIR}"/${PN}-23.0.4-stdint.patch
+)

Reply via email to