xfce4-weather-plugin: Upgrade to 0.11.3
PATCH v2 1/1 xfce4-weather-plugin: Upgrade to 0.11.3
* Backport patches to support libsoup3
* Replace libsoup-2.4 dependency with libsoup3
* Add required dependency on json-c in this version
Signed-off-by Khem Raj <[email protected]>
---
v2: Add missing dep on json-c
...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.1.bb | 12 - .../weather/xfce4-weather-plugin_0.11.3.bb | 18 + 7 files changed, 1595 insertions(+), 12 deletions(-) create mode 100644 meta-xfce/recipes-panel-plugins/weather/xfce4-weather-plugin/0001-libxfce4ui-Avoid-deprecated-functions.patch create mode 100644 meta-xfce/recipes-panel-plugins/weather/xfce4-weather-plugin/0002-parsers-Generalise-input-to-array-of-gchar.patch create mode 100644 meta-xfce/recipes-panel-plugins/weather/xfce4-weather-plugin/0003-libsoup-Port-to-libsoup-3.0.patch create mode 100644 meta-xfce/recipes-panel-plugins/weather/xfce4-weather-plugin/0004-Report-UPower-Glib-support.patch create 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.1.bb create mode 100644 meta-xfce/recipes-panel-plugins/weather/xfce4-weather-plugin_0.11.3.bb
meta-xfce/recipes-panel-plugins/weather/xfce4-weather-plugin/0001-libxfce4ui-Avoid-deprecated-functions.patch new file +79 -0
@@ -0,0 +1,79 @@ +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 new file +289 -0
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 new file +563 -0
563 lines not on this page · raw message
meta-xfce/recipes-panel-plugins/weather/xfce4-weather-plugin/0004-Report-UPower-Glib-support.patch new file +20 -0
@@ -0,0 +1,20 @@ +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 new file +626 -0
626 lines not on this page · raw message
meta-xfce/recipes-panel-plugins/weather/xfce4-weather-plugin_0.11.1.bb deleted +0 -12
@@ -1,12 +0,0 @@ -SUMMARY = "Panel plugin to display current temperature and weather condition" -HOMEPAGE = "http://goodies.xfce.org/projects/panel-plugins/xfce4-weather-plugin" -LICENSE = "GPL-2.0-only" -LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" - -inherit xfce-panel-plugin - -DEPENDS += "libsoup-2.4 dbus-glib upower" - -SRC_URI[sha256sum] = "a45146f9a0dcdc95d191c09c64ad279ae289cf8f811c4433e08e31a656845239" - -FILES:${PN} += "${datadir}/xfce4/weather"
meta-xfce/recipes-panel-plugins/weather/xfce4-weather-plugin_0.11.3.bb new file +18 -0
@@ -0,0 +1,18 @@ +SUMMARY = "Panel plugin to display current temperature and weather condition" +HOMEPAGE = "http://goodies.xfce.org/projects/panel-plugins/xfce4-weather-plugin" +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"