commit:     bc5186b2759f5b09580ed33275b345d842ed0be3
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Apr 18 07:29:28 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Apr 18 07:29:28 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bc5186b2

gui-wm/wayfire: fix build w/ gcc 13

Closes: https://bugs.gentoo.org/895570
Signed-off-by: Sam James <sam <AT> gentoo.org>

 gui-wm/wayfire/files/wayfire-0.7.5-gcc13.patch | 25 +++++++++++++++++++++++++
 gui-wm/wayfire/wayfire-0.7.5.ebuild            |  4 ++++
 2 files changed, 29 insertions(+)

diff --git a/gui-wm/wayfire/files/wayfire-0.7.5-gcc13.patch 
b/gui-wm/wayfire/files/wayfire-0.7.5-gcc13.patch
new file mode 100644
index 000000000000..0ee666664c93
--- /dev/null
+++ b/gui-wm/wayfire/files/wayfire-0.7.5-gcc13.patch
@@ -0,0 +1,25 @@
+https://github.com/WayfireWM/wf-utils/pull/5
+
+From 57460e364f6a1e5bdbad424e8cc576e346c8b7b6 Mon Sep 17 00:00:00 2001
+From: Sam James <s...@gentoo.org>
+Date: Tue, 18 Apr 2023 08:26:50 +0100
+Subject: [PATCH] Fix build with GCC 13
+
+GCC 13 (as usual for new compiler releases) shuffles around some internal 
includes so some
+are no longer transitively included.
+
+See https://gnu.org/software/gcc/gcc-13/porting_to.html.
+
+Bug: https://bugs.gentoo.org/895570
+Closes: https://github.com/WayfireWM/wayfire/issues/1758
+--- a/subprojects/wf-utils/wayfire/rule/lambda_rule.cpp
++++ b/subprojects/wf-utils/wayfire/rule/lambda_rule.cpp
+@@ -1,6 +1,7 @@
+ #include "wayfire/rule/lambda_rule.hpp"
+ #include "wayfire/condition/condition.hpp"
+ #include <cstddef>
++#include <cstdint>
+ #include <functional>
+ #include <memory>
+ #include <sstream>
+

diff --git a/gui-wm/wayfire/wayfire-0.7.5.ebuild 
b/gui-wm/wayfire/wayfire-0.7.5.ebuild
index 3daa6027b141..9aa8f0449f9d 100644
--- a/gui-wm/wayfire/wayfire-0.7.5.ebuild
+++ b/gui-wm/wayfire/wayfire-0.7.5.ebuild
@@ -73,6 +73,10 @@ BDEPEND="
        virtual/pkgconfig
 "
 
+PATCHES=(
+       "${FILESDIR}"/${PN}-0.7.5-gcc13.patch
+)
+
 src_configure() {
        sed -e "s:@EPREFIX@:${EPREFIX}:" \
            "${FILESDIR}"/wayfire-session > "${T}"/wayfire-session || die

Reply via email to