Accepting request 1078128 from X11:Wayland

Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1078128
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/waybar?expand=0&rev=43
This commit is contained in:
Dominique Leuenberger 2023-04-09 16:40:58 +00:00 committed by Git OBS Bridge
commit de0a6571ca
3 changed files with 43 additions and 0 deletions

View File

@ -0,0 +1,36 @@
From ca9d237b00b4d01f341b0d7bc938afb10a4f8cad Mon Sep 17 00:00:00 2001
From: Aleksei Bavshin <alebastr89@gmail.com>
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 <cstring>
#include <memory>
#include <mutex>
+#include <string>
#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 <fcntl.h>
+#include <stdexcept>
+
namespace waybar::modules::sway {
Ipc::Ipc() {

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sat Apr 1 19:59:55 UTC 2023 - Bjørn Lie <bjorn.lie@gmail.com>
- Add ca9d237b00b4d01f341b0d7bc938afb10a4f8cad.patch: Fix(sway):
add missing includes for GCC 13
-------------------------------------------------------------------
Mon Jan 16 09:18:06 UTC 2023 - Filippo Bonazzi <filippo.bonazzi@suse.com>

View File

@ -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++