- Add 0000-replace-gethostbyname-getaddrinfo.patch
OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/waybar?expand=0&rev=91
This commit is contained in:
parent
a046f27ca0
commit
4b136a8452
27
0000-replace-gethostbyname-getaddrinfo.patch
Normal file
27
0000-replace-gethostbyname-getaddrinfo.patch
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
diff --git a/src/modules/hyprland/backend.cpp b/src/modules/hyprland/backend.cpp
|
||||||
|
index 76c071c..f110825 100644
|
||||||
|
--- a/src/modules/hyprland/backend.cpp
|
||||||
|
+++ b/src/modules/hyprland/backend.cpp
|
||||||
|
@@ -140,7 +140,7 @@ std::string IPC::getSocket1Reply(const std::string& rq) {
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
|
||||||
|
- const auto SERVER = gethostbyname("localhost");
|
||||||
|
+ const auto SERVER = getaddrinfo("localhost", NULL, NULL, 0);
|
||||||
|
|
||||||
|
if (!SERVER) {
|
||||||
|
spdlog::error("Hyprland IPC: Couldn't get host (2)");
|
||||||
|
diff --git a/src/modules/sni/tray.cpp b/src/modules/sni/tray.cpp
|
||||||
|
index 87e5577..09d53e7 100644
|
||||||
|
--- a/src/modules/sni/tray.cpp
|
||||||
|
+++ b/src/modules/sni/tray.cpp
|
||||||
|
@@ -10,9 +10,6 @@ Tray::Tray(const std::string& id, const Bar& bar, const Json::Value& config)
|
||||||
|
watcher_(SNI::Watcher::getInstance()),
|
||||||
|
host_(nb_hosts_, config, bar, std::bind(&Tray::onAdd, this, std::placeholders::_1),
|
||||||
|
std::bind(&Tray::onRemove, this, std::placeholders::_1)) {
|
||||||
|
- spdlog::warn(
|
||||||
|
- "For a functional tray you must have libappindicator-* installed and export "
|
||||||
|
- "XDG_CURRENT_DESKTOP=Unity");
|
||||||
|
box_.set_name("tray");
|
||||||
|
event_box_.add(box_);
|
||||||
|
if (!id.empty()) {
|
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Dec 2 13:52:41 UTC 2022 - Soc Virnyl Estela <socvirnyl.estela@gmail.com>
|
||||||
|
|
||||||
|
- Add 0000-replace-gethostbyname-getaddrinfo.patch
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Dec 2 07:54:45 UTC 2022 - Soc Virnyl Estela <socvirnyl.estela@gmail.com>
|
Fri Dec 2 07:54:45 UTC 2022 - Soc Virnyl Estela <socvirnyl.estela@gmail.com>
|
||||||
|
|
||||||
|
@ -24,6 +24,7 @@ License: MIT
|
|||||||
Group: System/GUI/Other
|
Group: System/GUI/Other
|
||||||
URL: https://github.com/Alexays/Waybar
|
URL: https://github.com/Alexays/Waybar
|
||||||
Source0: %{name}-%{version}.tar.gz
|
Source0: %{name}-%{version}.tar.gz
|
||||||
|
Patch0: 0000-replace-gethostbyname-getaddrinfo.patch
|
||||||
# use this to download tarball. then use `meson subprojects download`
|
# use this to download tarball. then use `meson subprojects download`
|
||||||
# to get the `date` dependency. and create own tarball
|
# to get the `date` dependency. and create own tarball
|
||||||
# Source1: https://github.com/Alexays/Waybar/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
# Source1: https://github.com/Alexays/Waybar/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||||
@ -93,7 +94,7 @@ BuildArch: noarch
|
|||||||
This package provides the upstream look and feel for sway.
|
This package provides the upstream look and feel for sway.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n Waybar-%{version}
|
%autosetup -p1 -n Waybar-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%if 0%{?sle_version} >= 150400
|
%if 0%{?sle_version} >= 150400
|
||||||
|
Loading…
Reference in New Issue
Block a user