Accepting request 1089596 from home:fbonazzi:branches:X11:Wayland

- Update to version 0.9.18:
  * fix: battery time remaining
  * Sway window newstyles
  * fix(wireplumber): waybar crashes when default node changes
  * get_desktop_app_info: fix crash on failed DesktopAppInfo::create
  * hyprland/submap: run initial render on startup
  * GCC 13 and C++20 support
  * Allow any module to implement signal handling
  * modules/custom: Added percentage rounding
  * Sanitize hyprland language string only instead of the whole format
  * Year calendar
  * Clock. Proper handletoggle propagation
  * Clock. Formating simplify
  * Image module CSS fix
  * Fix kbName initialization
  * fix(wireplumber): free(): invalid pointer
  * When no one timezone is provided use system's TZ
  * Fixing memory leak on update UPower tooltip
  * Clock. Calendar. Avoid of unnecessary string transformation
  * Backlight: add brightness control
  * Set Image path from executable file (Image Module)
  * Remove repeated "the" and fix some typos
  * AModule implements module actions call
  * add river/layout
  * feat(sway): add workspace css class
  * Revert "feat(sway): add workspace css class"
  * AModule enable_click & enable_scroll
  * Clock tz try catch
  * group module: configurable orientation
  * Happy clang
  * fix: mpd bug paused with no song.
  * Wireplumber: Free the default node name
  * refactor: make linter happy.
  * config:output:Allow multiple exclusions & wildcard
  * custom module: free memory returned by libc's getline
  * modules/clock: fix calendar shift in months with 31 days
  * mpris: add tooltip, length limits, position tag
  * wlr-taskbar: allow sorting by app_id
  * [hyprland/language] Add more format replacements.
  * sway/window: Rewrite entire format output instead of just the title
  * mpris: fix css class application
  * Generate wireplumber module man page
  * Made use of node_id_
  * today style not applied to new date 1 day after starting waybar
  * Cava module
  * pulseaudio apply states
  * backlight: support tooltip
  * mpris: fix non-dynamic tags not being html escaped
  * Persistent workspaces for [wlr/workspaces]
  * Add DWL tags module
  * fix: use getaddrinfo() instead of gethostbyname()
  * river/tags: refactor to support special purpose tags
  * Fix hyprland language initialization problem
  * network: detect if link is p2p and use local addr
  * cava: shared library is not found
  * [wlr/workspaces] Separate CSS class for empty persistent workspaces
  * Add persistent format-icon to wlr/workspaces
  * mpris: Hide label if empty
  * mpris: Fix incorrect format replacement names
  * File descriptor handling bugs
  * Fix SEGFAULT in battery module
  * Update to new ipc version
- Disable cava module due to missing libcava
- Drop 0000-replace-gethostbyname-getaddrinfo.patch (fixed upstream)
- Drop 0001-require-date-dependency.patch (changed upstream)
- Drop ca9d237b00b4d01f341b0d7bc938afb10a4f8cad.patch (fixed upstream)

OBS-URL: https://build.opensuse.org/request/show/1089596
OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/waybar?expand=0&rev=104
This commit is contained in:
Soc Virnyl Estela 2023-05-29 15:38:01 +00:00 committed by Git OBS Bridge
parent 3e60dcf330
commit 1d8ccae2f8
8 changed files with 81 additions and 78 deletions

View File

@ -1,28 +0,0 @@
diff --git a/src/modules/hyprland/backend.cpp b/src/modules/hyprland/backend.cpp
index 76c071c..33212c7 100644
--- a/src/modules/hyprland/backend.cpp
+++ b/src/modules/hyprland/backend.cpp
@@ -132,15 +132,20 @@ void IPC::unregisterForIPC(EventHandler* ev_handler) {
std::string IPC::getSocket1Reply(const std::string& rq) {
// basically hyprctl
-
+
+ struct addrinfo ai_hints;
+ struct addrinfo *ai_res = NULL;
const auto SERVERSOCKET = socket(AF_UNIX, SOCK_STREAM, 0);
if (SERVERSOCKET < 0) {
spdlog::error("Hyprland IPC: Couldn't open a socket (1)");
return "";
}
-
- const auto SERVER = gethostbyname("localhost");
+
+ memset(&ai_hints, 0, sizeof(struct addrinfo));
+ ai_hints.ai_family = AF_UNSPEC;
+ ai_hints.ai_socktype = SOCK_STREAM;
+ const auto SERVER = getaddrinfo("localhost", NULL, &ai_hints, &ai_res);
if (!SERVER) {
spdlog::error("Hyprland IPC: Couldn't get host (2)");

View File

@ -2,7 +2,7 @@
<service name="obs_scm" mode="manual">
<param name="scm">git</param>
<param name="url">https://github.com/Alexays/Waybar.git</param>
<param name="revision">0.9.17</param>
<param name="revision">0.9.18</param>
<param name="versionformat">@PARENT_TAG@</param>
<param name="versionrewrite-pattern">(.*)</param>
<param name="filename">waybar</param>

View File

@ -1,36 +0,0 @@
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 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3cf2765f24520526f0b2f59355d3679218e5711d19e80918b350cf9d08b80a27
size 877068

3
waybar-0.9.18.obscpio Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e2482edfc22bf107423a87bbd53139b493dcd72ae65ad18e2170c790b8513b88
size 969740

View File

@ -1,3 +1,73 @@
-------------------------------------------------------------------
Mon May 29 14:20:12 UTC 2023 - Filippo Bonazzi <filippo.bonazzi@suse.com>
- Update to version 0.9.18:
* fix: battery time remaining
* Sway window newstyles
* fix(wireplumber): waybar crashes when default node changes
* get_desktop_app_info: fix crash on failed DesktopAppInfo::create
* hyprland/submap: run initial render on startup
* GCC 13 and C++20 support
* Allow any module to implement signal handling
* modules/custom: Added percentage rounding
* Sanitize hyprland language string only instead of the whole format
* Year calendar
* Clock. Proper handletoggle propagation
* Clock. Formating simplify
* Image module CSS fix
* Fix kbName initialization
* fix(wireplumber): free(): invalid pointer
* When no one timezone is provided use system's TZ
* Fixing memory leak on update UPower tooltip
* Clock. Calendar. Avoid of unnecessary string transformation
* Backlight: add brightness control
* Set Image path from executable file (Image Module)
* Remove repeated "the" and fix some typos
* AModule implements module actions call
* add river/layout
* feat(sway): add workspace css class
* Revert "feat(sway): add workspace css class"
* AModule enable_click & enable_scroll
* Clock tz try catch
* group module: configurable orientation
* Happy clang
* fix: mpd bug paused with no song.
* Wireplumber: Free the default node name
* refactor: make linter happy.
* config:output:Allow multiple exclusions & wildcard
* custom module: free memory returned by libc's getline
* modules/clock: fix calendar shift in months with 31 days
* mpris: add tooltip, length limits, position tag
* wlr-taskbar: allow sorting by app_id
* [hyprland/language] Add more format replacements.
* sway/window: Rewrite entire format output instead of just the title
* mpris: fix css class application
* Generate wireplumber module man page
* Made use of node_id_
* today style not applied to new date 1 day after starting waybar
* Cava module
* pulseaudio apply states
* backlight: support tooltip
* mpris: fix non-dynamic tags not being html escaped
* Persistent workspaces for [wlr/workspaces]
* Add DWL tags module
* fix: use getaddrinfo() instead of gethostbyname()
* river/tags: refactor to support special purpose tags
* Fix hyprland language initialization problem
* network: detect if link is p2p and use local addr
* cava: shared library is not found
* [wlr/workspaces] Separate CSS class for empty persistent workspaces
* Add persistent format-icon to wlr/workspaces
* mpris: Hide label if empty
* mpris: Fix incorrect format replacement names
* File descriptor handling bugs
* Fix SEGFAULT in battery module
* Update to new ipc version
- Disable cava module due to missing libcava
- Drop 0000-replace-gethostbyname-getaddrinfo.patch (fixed upstream)
- Drop 0001-require-date-dependency.patch (changed upstream)
- Drop ca9d237b00b4d01f341b0d7bc938afb10a4f8cad.patch (fixed upstream)
-------------------------------------------------------------------
Sat Apr 1 19:59:55 UTC 2023 - Bjørn Lie <bjorn.lie@gmail.com>

View File

@ -1,4 +1,4 @@
name: waybar
version: 0.9.17
mtime: 1673433570
commit: f0bead34d4f3a36cb9c94d60152d22dc6a773d60
version: 0.9.18
mtime: 1685345101
commit: 47193a3d2f81a8ce7177449f92e927db74d873b0

View File

@ -17,19 +17,16 @@
Name: waybar
Version: 0.9.17
Version: 0.9.18
Release: 0
Summary: Customizable Wayland bar for Sway and Wlroots based compositors
License: MIT
Group: System/GUI/Other
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++
BuildRequires: gcc13-c++
%else
BuildRequires: gcc-c++ >= 8
%endif
@ -102,9 +99,9 @@ This package provides the upstream look and feel for sway.
%build
%if 0%{?sle_version} >= 150400
export CXX=g++-11
export CXX=g++-13
%endif
%meson
%meson -Dcava=disabled
%meson_build
%install