From f53cbbcee2fab21b79ce66a1d8df97396b2d34c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89rico=20Nogueira?= Date: Thu, 29 Jul 2021 16:00:15 -0300 Subject: [PATCH] yambar: fix launching with --backend=wayland. Fixes: #32248. --- .../yambar/patches/0001-bar-fix-typo.patch | 27 +++++++++++++++++++ srcpkgs/yambar/template | 2 +- 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/yambar/patches/0001-bar-fix-typo.patch diff --git a/srcpkgs/yambar/patches/0001-bar-fix-typo.patch b/srcpkgs/yambar/patches/0001-bar-fix-typo.patch new file mode 100644 index 00000000000..2315031f0c1 --- /dev/null +++ b/srcpkgs/yambar/patches/0001-bar-fix-typo.patch @@ -0,0 +1,27 @@ +From 7d94631991a5d530884664705341a4410ff45f74 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?=C3=89rico=20Nogueira?= +Date: Thu, 29 Jul 2021 15:57:00 -0300 +Subject: [PATCH] bar: fix typo. + +Running 'yambar --backend=wayland' would always error out saying it was +built without wayland support. +--- + bar/bar.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/bar/bar.c b/bar/bar.c +index 4829162..c7b1ea5 100644 +--- a/bar/bar.c ++++ b/bar/bar.c +@@ -399,7 +399,7 @@ bar_new(const struct bar_config *config) + break; + + case BAR_BACKEND_WAYLAND: +-#if defined(BAR_WAYLAND) ++#if defined(ENABLE_WAYLAND) + backend_data = bar_backend_wayland_new(); + backend_iface = &wayland_backend_iface; + #else +-- +2.32.0 + diff --git a/srcpkgs/yambar/template b/srcpkgs/yambar/template index a2608045b3a..19167b33bad 100644 --- a/srcpkgs/yambar/template +++ b/srcpkgs/yambar/template @@ -1,7 +1,7 @@ # Template file for 'yambar' pkgname=yambar version=1.6.2 -revision=1 +revision=2 wrksrc=$pkgname build_style=meson hostmakedepends="pkg-config scdoc wayland-devel"