From 3e60dcf3302ef47e2c7f45f6a0717b423ec9e75ea01ecee6f7a776858709b659 Mon Sep 17 00:00:00 2001 From: Soc Virnyl Estela Date: Mon, 3 Apr 2023 03:34:10 +0000 Subject: [PATCH] Accepting request 1076675 from home:iznogood:branches:X11:Wayland - Add ca9d237b00b4d01f341b0d7bc938afb10a4f8cad.patch: Fix(sway): add missing includes for GCC 13 OBS-URL: https://build.opensuse.org/request/show/1076675 OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/waybar?expand=0&rev=102 --- ...237b00b4d01f341b0d7bc938afb10a4f8cad.patch | 36 +++++++++++++++++++ waybar.changes | 6 ++++ waybar.spec | 1 + 3 files changed, 43 insertions(+) create mode 100644 ca9d237b00b4d01f341b0d7bc938afb10a4f8cad.patch diff --git a/ca9d237b00b4d01f341b0d7bc938afb10a4f8cad.patch b/ca9d237b00b4d01f341b0d7bc938afb10a4f8cad.patch new file mode 100644 index 0000000..dd4c189 --- /dev/null +++ b/ca9d237b00b4d01f341b0d7bc938afb10a4f8cad.patch @@ -0,0 +1,36 @@ +From ca9d237b00b4d01f341b0d7bc938afb10a4f8cad Mon Sep 17 00:00:00 2001 +From: Aleksei Bavshin +Date: Mon, 16 Jan 2023 10:27:21 -0800 +Subject: [PATCH] fix(sway): add missing includes for GCC 13 + +See also: https://gcc.gnu.org/gcc-13/porting_to.html +--- + include/modules/sway/ipc/client.hpp | 1 + + src/modules/sway/ipc/client.cpp | 2 ++ + 2 files changed, 3 insertions(+) + +diff --git a/include/modules/sway/ipc/client.hpp b/include/modules/sway/ipc/client.hpp +index 77dab083d..a6705eaa7 100644 +--- a/include/modules/sway/ipc/client.hpp ++++ b/include/modules/sway/ipc/client.hpp +@@ -8,6 +8,7 @@ + #include + #include + #include ++#include + + #include "ipc.hpp" + #include "util/sleeper_thread.hpp" +diff --git a/src/modules/sway/ipc/client.cpp b/src/modules/sway/ipc/client.cpp +index 4d6495cb7..5c3df7b2f 100644 +--- a/src/modules/sway/ipc/client.cpp ++++ b/src/modules/sway/ipc/client.cpp +@@ -2,6 +2,8 @@ + + #include + ++#include ++ + namespace waybar::modules::sway { + + Ipc::Ipc() { diff --git a/waybar.changes b/waybar.changes index c969879..81d8c2d 100644 --- a/waybar.changes +++ b/waybar.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sat Apr 1 19:59:55 UTC 2023 - Bjørn Lie + +- Add ca9d237b00b4d01f341b0d7bc938afb10a4f8cad.patch: Fix(sway): + add missing includes for GCC 13 + ------------------------------------------------------------------- Mon Jan 16 09:18:06 UTC 2023 - Filippo Bonazzi diff --git a/waybar.spec b/waybar.spec index f8f53bf..359ea46 100644 --- a/waybar.spec +++ b/waybar.spec @@ -26,6 +26,7 @@ URL: https://github.com/Alexays/Waybar Source0: %{name}-%{version}.tar.gz Patch0: 0000-replace-gethostbyname-getaddrinfo.patch Patch1: 0001-require-date-dependency.patch +Patch2: https://github.com/Alexays/Waybar/commit/ca9d237b00b4d01f341b0d7bc938afb10a4f8cad.patch BuildRequires: cmake %if 0%{?sle_version} >= 150400 BuildRequires: gcc11-c++