From eb4ce2b64f8515b5f043fe02b58f23bccfe6c6bd48f2fade06902f5ba1f5e716 Mon Sep 17 00:00:00 2001 From: Soc Virnyl Estela Date: Tue, 13 Dec 2022 22:37:43 +0000 Subject: [PATCH] Accepting request 1042785 from home:fbonazzi:branches:X11:Wayland - Fix: actually use the date library dependency provided by hhdate Currently packaged waybar is silently using a fallback version of the clock without fancy format strings, so that e.g. the calendar tooltip does not work. This was not obvious to me when I moved the date library dependency to its own hhdate package, and I am rectifying this now. OBS-URL: https://build.opensuse.org/request/show/1042785 OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/waybar?expand=0&rev=97 --- 0001-require-date-dependency.patch | 12 ++++++++++++ waybar.changes | 5 +++++ waybar.spec | 3 ++- 3 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 0001-require-date-dependency.patch diff --git a/0001-require-date-dependency.patch b/0001-require-date-dependency.patch new file mode 100644 index 0000000..7d1215b --- /dev/null +++ b/0001-require-date-dependency.patch @@ -0,0 +1,12 @@ +diff --git a/meson.build b/meson.build +index 9354ca8..e61ee70 100644 +--- a/meson.build ++++ b/meson.build +@@ -120,7 +120,6 @@ gtk_layer_shell = dependency('gtk-layer-shell-0', + fallback : ['gtk-layer-shell', 'gtk_layer_shell_dep']) + systemd = dependency('systemd', required: get_option('systemd')) + tz_dep = dependency('date', +- required: false, + default_options : [ 'use_system_tzdb=true' ], + modules : [ 'date::date', 'date::date-tz' ], + fallback: [ 'date', 'tz_dep' ]) diff --git a/waybar.changes b/waybar.changes index c1ad22c..a29500c 100644 --- a/waybar.changes +++ b/waybar.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Dec 13 20:58:47 UTC 2022 - Filippo Bonazzi + +- Fix: actually use the date library dependency provided by hhdate + ------------------------------------------------------------------- Mon Dec 5 19:10:20 UTC 2022 - Filippo Bonazzi diff --git a/waybar.spec b/waybar.spec index e96a995..0e709da 100644 --- a/waybar.spec +++ b/waybar.spec @@ -25,6 +25,7 @@ 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 BuildRequires: cmake %if 0%{?sle_version} >= 150400 BuildRequires: gcc11-c++ @@ -38,7 +39,7 @@ BuildRequires: pkgconfig # test dependency BuildRequires: pkgconfig(catch2) >= 3.0 BuildRequires: sndio-devel >= 1.7.0 -# date module +# clock module BuildRequires: hhdate-devel # optional: man pages BuildRequires: scdoc