Skip to contentSkip to conversation

xfce4-weather-plugin: upgrade 0.11.3 -> 0.12.0

PATCH New Jason Schonberg 1 participant 1 message Nov 13, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xfce4-weather-plugin: upgrade 0.11.3 -> 0.12.0

Drop backported patches which have already been integrated into this version.

0001-libxfce4ui-Avoid-deprecated-functions.patch
https://github.com/xfce-mirror/xfce4-weather-plugin/commit/9115037ed7cfe722d3739ca800d5247f4bb3bc53
0002-parsers-Generalise-input-to-array-of-gchar.patch
https://github.com/xfce-mirror/xfce4-weather-plugin/commit/c0653a903c6f2cecdf41ac9eaeba4f4617656ffe
0003-libsoup-Port-to-libsoup-3.0.patch
https://github.com/xfce-mirror/xfce4-weather-plugin/commit/279c975dc1f95bd1ce9152eee1d19122e7deb9a8
0004-Report-UPower-Glib-support.patch
https://github.com/xfce-mirror/xfce4-weather-plugin/commit/3bfb13249d3c3417a05d41e5a1924c841c83ebc6
0005-Make-libsoup-v3-support-optional.patch
https://github.com/xfce-mirror/xfce4-weather-plugin/commit/5116b68b453e04c2a72c21769f55b4c786a1318d

Use meson as that is now the supported build system.

Changelog: https://gitlab.xfce.org/panel-plugins/xfce4-weather-plugin/-/tags/xfce4-weather-plugin-0.12.0

---
 ...ibxfce4ui-Avoid-deprecated-functions.patch |  79 ---
 ...s-Generalise-input-to-array-of-gchar.patch | 289 --------
 .../0003-libsoup-Port-to-libsoup-3.0.patch    | 563 ----------------
 .../0004-Report-UPower-Glib-support.patch     |  20 -
 ...005-Make-libsoup-v3-support-optional.patch | 626 ------------------
 .../weather/xfce4-weather-plugin_0.11.3.bb    |  18 -
 .../weather/xfce4-weather-plugin_0.12.0.bb    |  15 +
 7 files changed, 15 insertions(+), 1595 deletions(-)
 delete mode 100644 meta-xfce/recipes-panel-plugins/weather/xfce4-weather-plugin/0001-libxfce4ui-Avoid-deprecated-functions.patch
 delete mode 100644 meta-xfce/recipes-panel-plugins/weather/xfce4-weather-plugin/0002-parsers-Generalise-input-to-array-of-gchar.patch
 delete mode 100644 meta-xfce/recipes-panel-plugins/weather/xfce4-weather-plugin/0003-libsoup-Port-to-libsoup-3.0.patch
 delete mode 100644 meta-xfce/recipes-panel-plugins/weather/xfce4-weather-plugin/0004-Report-UPower-Glib-support.patch
 delete mode 100644 meta-xfce/recipes-panel-plugins/weather/xfce4-weather-plugin/0005-Make-libsoup-v3-support-optional.patch
 delete mode 100644 meta-xfce/recipes-panel-plugins/weather/xfce4-weather-plugin_0.11.3.bb
 create mode 100644 meta-xfce/recipes-panel-plugins/weather/xfce4-weather-plugin_0.12.0.bb
meta-xfce/recipes-panel-plugins/weather/xfce4-weather-plugin/0001-libxfce4ui-Avoid-deprecated-functions.patch deleted +0 -79
deleted file mode 100644
index 981ba560d4..0000000000
@@ -1,79 +0,0 @@
-From 9a3fc89f924f7a322c3b537256621640561daf95 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?=
- <[email protected]>
-Date: Fri, 1 Mar 2024 21:56:34 +0700
-Subject: [PATCH 1/5] libxfce4ui: Avoid deprecated functions
-
-- xfce_titled_dialog_new_with_buttons is deprecated from 4.16.
-- xfce_spawn_command_line_on_screen is deprecated from 4.16
-
-- xfce_titled_dialog_new_with_mixed_buttons is available from 4.14
-- xfce_spawn_command_line is available from 4.16
-
-Upstream-Status: Backport [https://github.com/xfce-mirror/xfce4-weather-plugin/commit/9115037ed7cfe722d3739ca800d5247f4bb3bc53]
-Signed-off-by: Khem Raj <[email protected]>
----
- configure.ac                  |  2 +-
- panel-plugin/weather-config.c |  4 ++--
- panel-plugin/weather-search.c | 20 +++++++++++---------
- 3 files changed, 14 insertions(+), 12 deletions(-)
-
-diff --git a/configure.ac b/configure.ac
-index e0516e6..cf82b7e 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -66,7 +66,7 @@ XDT_CHECK_PACKAGE([GTK], [gtk+-3.0], [3.22.0])
- XDT_CHECK_PACKAGE([GTHREAD], [gthread-2.0], [2.64.0])
- XDT_CHECK_PACKAGE([GLIB], [glib-2.0], [2.64.0])
- XDT_CHECK_PACKAGE([LIBXFCE4UTIL], [libxfce4util-1.0], [4.12.0])
--XDT_CHECK_PACKAGE([LIBXFCE4UI], [libxfce4ui-2], [4.12.0])
-+XDT_CHECK_PACKAGE([LIBXFCE4UI], [libxfce4ui-2], [4.16.0])
- XDT_CHECK_PACKAGE([LIBXFCE4PANEL], [libxfce4panel-2.0], [4.14.0])
- XDT_CHECK_PACKAGE([XFCONF], [libxfconf-0], [4.12.0])
- XDT_CHECK_PACKAGE([LIBXML], [libxml-2.0], [2.4.0])
-diff --git a/panel-plugin/weather-config.c b/panel-plugin/weather-config.c
-index 9f77340..2645408 100644
---- a/panel-plugin/weather-config.c
-+++ b/panel-plugin/weather-config.c
-@@ -958,8 +958,8 @@ button_icons_dir_clicked(GtkWidget *button,
-     g_mkdir_with_parents(dir, 0755);
-     command = g_strdup_printf("exo-open %s", dir);
-     g_free(dir);
--    xfce_spawn_command_line_on_screen(gdk_screen_get_default(),
--                                      command, FALSE, TRUE, NULL);
-+    xfce_spawn_command_line(gdk_screen_get_default(), command, FALSE,
-+                            TRUE, TRUE, NULL);
-     g_free(command);
- }
- 
-diff --git a/panel-plugin/weather-search.c b/panel-plugin/weather-search.c
-index 83f1d71..7e87ae8 100644
---- a/panel-plugin/weather-search.c
-+++ b/panel-plugin/weather-search.c
-@@ -205,15 +205,17 @@ create_search_dialog(GtkWindow *parent,
-     dialog->session = session;
- 
-     dialog->dialog =
--        xfce_titled_dialog_new_with_buttons(_("Search location"),
--                                            parent,
--                                            GTK_DIALOG_MODAL |
--                                            GTK_DIALOG_DESTROY_WITH_PARENT,
--                                            _("Cancel"),
--                                            GTK_RESPONSE_REJECT,
--                                            _("OK"),
--                                            GTK_RESPONSE_ACCEPT,
--                                            NULL);
-+        xfce_titled_dialog_new_with_mixed_buttons(_("Search location"),
-+                                                  parent,
-+                                                  GTK_DIALOG_MODAL |
-+                                                  GTK_DIALOG_DESTROY_WITH_PARENT,
-+                                                  "",
-+                                                  _("Cancel"),
-+                                                  GTK_RESPONSE_REJECT,
-+                                                  "",
-+                                                  _("OK"),
-+                                                  GTK_RESPONSE_ACCEPT,
-+                                                  NULL);
-     gtk_dialog_set_response_sensitive(GTK_DIALOG(dialog->dialog),
-                                       GTK_RESPONSE_ACCEPT, FALSE);
-     gtk_window_set_icon_name(GTK_WINDOW(dialog->dialog), "edit-find");
meta-xfce/recipes-panel-plugins/weather/xfce4-weather-plugin/0002-parsers-Generalise-input-to-array-of-gchar.patch deleted +0 -289

289 lines not on this page · raw message

meta-xfce/recipes-panel-plugins/weather/xfce4-weather-plugin/0003-libsoup-Port-to-libsoup-3.0.patch deleted +0 -563

563 lines not on this page · raw message

meta-xfce/recipes-panel-plugins/weather/xfce4-weather-plugin/0004-Report-UPower-Glib-support.patch deleted +0 -20
deleted file mode 100644
index d7ee7b8135..0000000000
@@ -1,20 +0,0 @@
-From 34ac536970d2e9f3c3f8ffd691d6a8ef6f434b1a Mon Sep 17 00:00:00 2001
-From: Andrzej Radecki <[email protected]>
-Date: Sun, 10 Nov 2024 16:24:28 +0000
-Subject: [PATCH 4/5] Report UPower Glib support
-
-Upstream-Status: Submitted [Upstream-Status: Backport [https://github.com/xfce-mirror/xfce4-weather-plugin/commit/34ac536970d2e9f3c3f8ffd691d6a8ef6f434b1a]
-Signed-off-by: Khem Raj <[email protected]>
----
- configure.ac | 1 +
- 1 file changed, 1 insertion(+)
-
-diff --git a/configure.ac b/configure.ac
-index 15e8b46..da98a5e 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -120,3 +120,4 @@ echo
- echo "Build Configuration:"
- echo
- echo "* Debug Support:             $enable_debug"
-+echo "* UPower Glib Support:       ${UPOWER_GLIB_FOUND:-no}"
meta-xfce/recipes-panel-plugins/weather/xfce4-weather-plugin/0005-Make-libsoup-v3-support-optional.patch deleted +0 -626

626 lines not on this page · raw message

meta-xfce/recipes-panel-plugins/weather/xfce4-weather-plugin_0.11.3.bb deleted +0 -18
deleted file mode 100644
index c0c2ad3313..0000000000
@@ -1,18 +0,0 @@
-SUMMARY = "Panel plugin to display current temperature and weather condition"
-HOMEPAGE = "https://docs.xfce.org/panel-plugins/xfce4-weather-plugin/start"
-LICENSE = "GPL-2.0-only"
-LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
-
-inherit xfce-panel-plugin
-
-DEPENDS += "libsoup dbus-glib upower json-c"
-
-SRC_URI += "file://0001-libxfce4ui-Avoid-deprecated-functions.patch \
-            file://0002-parsers-Generalise-input-to-array-of-gchar.patch \
-            file://0003-libsoup-Port-to-libsoup-3.0.patch \
-            file://0004-Report-UPower-Glib-support.patch \
-            file://0005-Make-libsoup-v3-support-optional.patch \
-"
-SRC_URI[sha256sum] = "002d1fe63906d2f3a012f3cb58cceff1dfbcc466759e36c76d3b03dd01c0dc57"
-
-FILES:${PN} += "${datadir}/xfce4/weather"
meta-xfce/recipes-panel-plugins/weather/xfce4-weather-plugin_0.12.0.bb new file +15 -0
new file mode 100644
index 0000000000..35a55383bc
@@ -0,0 +1,15 @@
+SUMMARY = "Panel plugin to display current temperature and weather condition"
+HOMEPAGE = "https://docs.xfce.org/panel-plugins/xfce4-weather-plugin/start"
+LICENSE = "GPL-2.0-only"
+LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
+
+XFCEBASEBUILDCLASS = "meson"
+XFCE_COMPRESS_TYPE = "xz"
+
+inherit xfce-panel-plugin
+
+DEPENDS += "libsoup dbus-glib upower json-c"
+
+SRC_URI[sha256sum] = "5dd90b032c06ef4b64b818023154ef9463a2c694a0290e57f3412296c7545ff6"
+
+FILES:${PN} += "${datadir}/xfce4/weather"
Signature · 1 line
2.43.0