summaryrefslogtreecommitdiff
path: root/gui-wm
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2023-04-18 08:29:28 +0100
committerSam James <sam@gentoo.org>2023-04-18 08:29:28 +0100
commitbc5186b2759f5b09580ed33275b345d842ed0be3 (patch)
tree352688e2c31920edccc6e34a4c362c9e2c0cfd5e /gui-wm
parentdev-cpp/kokkos: add github upstream metadata (diff)
downloadgentoo-bc5186b2759f5b09580ed33275b345d842ed0be3.tar.gz
gentoo-bc5186b2759f5b09580ed33275b345d842ed0be3.tar.bz2
gentoo-bc5186b2759f5b09580ed33275b345d842ed0be3.zip
gui-wm/wayfire: fix build w/ gcc 13
Closes: https://bugs.gentoo.org/895570 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'gui-wm')
-rw-r--r--gui-wm/wayfire/files/wayfire-0.7.5-gcc13.patch25
-rw-r--r--gui-wm/wayfire/wayfire-0.7.5.ebuild4
2 files changed, 29 insertions, 0 deletions
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 <sam@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