commit:     5890ab330b1fe490a6c938fa974391993da52c8c
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Aug 29 22:07:22 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Aug 29 22:07:22 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5890ab33

gui-apps/waybar: fix build w/ libc++

Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../waybar/files/waybar-0.9.13-libcxx-build.patch  | 36 ++++++++++++++++++++++
 gui-apps/waybar/waybar-0.9.13.ebuild               |  4 +++
 2 files changed, 40 insertions(+)

diff --git a/gui-apps/waybar/files/waybar-0.9.13-libcxx-build.patch 
b/gui-apps/waybar/files/waybar-0.9.13-libcxx-build.patch
new file mode 100644
index 000000000000..ad24e22fc437
--- /dev/null
+++ b/gui-apps/waybar/files/waybar-0.9.13-libcxx-build.patch
@@ -0,0 +1,36 @@
+https://github.com/Alexays/Waybar/commit/d25278f710a4932798c98141bcf5b482de0e9166
+
+From: Jan Beich <[email protected]>
+Date: Mon, 23 May 2022 16:23:00 +0000
+Subject: [PATCH] fix(upower): add missing include for libc++
+
+In file included from src/modules/upower/upower.cpp:1:
+include/modules/upower/upower.hpp:25:16: error: no template named 
'unordered_map' in namespace 'std'
+  typedef std::unordered_map<std::string, UpDevice *> Devices;
+          ~~~~~^
+In file included from src/modules/upower/upower_tooltip.cpp:1:
+include/modules/upower/upower_tooltip.hpp:13:16: error: no template named 
'unordered_map' in namespace 'std'
+  typedef std::unordered_map<std::string, UpDevice*> Devices;
+          ~~~~~^
+--- a/include/modules/upower/upower.hpp
++++ b/include/modules/upower/upower.hpp
+@@ -5,6 +5,7 @@
+ #include <iostream>
+ #include <map>
+ #include <string>
++#include <unordered_map>
+ 
+ #include "ALabel.hpp"
+ #include "glibconfig.h"
+--- a/include/modules/upower/upower_tooltip.hpp
++++ b/include/modules/upower/upower_tooltip.hpp
+@@ -2,6 +2,8 @@
+ 
+ #include <libupower-glib/upower.h>
+ 
++#include <unordered_map>
++
+ #include "gtkmm/box.h"
+ #include "gtkmm/label.h"
+ #include "gtkmm/window.h"
+

diff --git a/gui-apps/waybar/waybar-0.9.13.ebuild 
b/gui-apps/waybar/waybar-0.9.13.ebuild
index 6fbac657f700..c4886a844841 100644
--- a/gui-apps/waybar/waybar-0.9.13.ebuild
+++ b/gui-apps/waybar/waybar-0.9.13.ebuild
@@ -57,6 +57,10 @@ DEPEND="
 "
 RDEPEND="${DEPEND}"
 
+PATCHES=(
+       "${FILESDIR}"/${P}-libcxx-build.patch
+)
+
 src_configure() {
        local emesonargs=(
                $(meson_feature mpd)

Reply via email to