diff mbox series

[meta-gnome,18/21] libgweather4: upgrade 4.4.4 -> 4.6.0

Message ID 20261127070211.2329979-19-khem.raj@oss.qualcomm.com
State New
Headers show
Series Upstream checks, source fixes and upgrades | expand

Commit Message

Khem Raj Nov. 27, 2026, 7:02 a.m. UTC
4.5 moved the locations database to the separate gweather-locations
module, dropped libsoup 2 support and updated the METAR endpoint; 4.6.0
is the stable release of that series.

Depend on gweather-locations at build and run time, and skip the recipe
when it cannot be built (without GI_DATA_ENABLED). libgweather no longer
generates the database, so python3-pygobject-native and the
GI_TYPELIB_PATH export are dropped. Refresh the cross gir patch.

AI-Generated: Uses Claude Code
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
---
 ...1-Allow-building-gir-in-cross-environments.patch | 10 +++++-----
 ...{libgweather4_4.4.4.bb => libgweather4_4.6.0.bb} | 13 +++++++++----
 2 files changed, 14 insertions(+), 9 deletions(-)
 rename meta-gnome/recipes-gnome/libgweather/{libgweather4_4.4.4.bb => libgweather4_4.6.0.bb} (71%)
diff mbox series

Patch

diff --git a/meta-gnome/recipes-gnome/libgweather/libgweather4/0001-Allow-building-gir-in-cross-environments.patch b/meta-gnome/recipes-gnome/libgweather/libgweather4/0001-Allow-building-gir-in-cross-environments.patch
index 3a075de651..6e355cbe33 100644
--- a/meta-gnome/recipes-gnome/libgweather/libgweather4/0001-Allow-building-gir-in-cross-environments.patch
+++ b/meta-gnome/recipes-gnome/libgweather/libgweather4/0001-Allow-building-gir-in-cross-environments.patch
@@ -13,14 +13,14 @@  Upstream-Status: Inappropriate [OE-specific]
 Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
 Signed-off-by: Markus Volk <f_l_k@t-online.de>
 
---- a/meson.build	2022-09-18 14:48:53.000000000 +0200
-+++ b/meson.build	2022-11-26 14:05:13.302487232 +0100
-@@ -51,7 +51,7 @@
- gen_locations_variant = find_program('build-aux/meson/gen_locations_variant.py')
+--- a/meson.build
++++ b/meson.build
+@@ -49,7 +49,7 @@
+ ]
  
  g_ir_scanner = find_program('g-ir-scanner', required: get_option('introspection'))
 -build_gir = get_option('introspection') and g_ir_scanner.found() and not meson.is_cross_build()
 +build_gir = get_option('introspection') and g_ir_scanner.found()
  build_docs = get_option('gtk_doc') and build_gir
  
- schemas_srcdir = meson.project_source_root() / 'schemas'
+ locations_bin = dependency('gweather-locations').get_variable(
diff --git a/meta-gnome/recipes-gnome/libgweather/libgweather4_4.4.4.bb b/meta-gnome/recipes-gnome/libgweather/libgweather4_4.6.0.bb
similarity index 71%
rename from meta-gnome/recipes-gnome/libgweather/libgweather4_4.4.4.bb
rename to meta-gnome/recipes-gnome/libgweather/libgweather4_4.6.0.bb
index 57f599211a..8aad70466b 100644
--- a/meta-gnome/recipes-gnome/libgweather/libgweather4_4.4.4.bb
+++ b/meta-gnome/recipes-gnome/libgweather/libgweather4_4.6.0.bb
@@ -11,7 +11,7 @@  inherit gnomebase gsettings gobject-introspection gettext gi-docgen vala feature
 REQUIRED_DISTRO_FEATURES = "opengl"
 
 SRC_URI += "file://0001-Allow-building-gir-in-cross-environments.patch"
-SRC_URI[archive.sha256sum] = "7017677753cdf7d1fdc355e4bfcdb1eba8369793a8df24d241427a939cbf4283"
+SRC_URI[archive.sha256sum] = "7f5d0e8c9685ef2ff46c2f3a57cae48d7bf3540b2d83921f889ef28e6a876788"
 
 # 40.0 is an older libgweather-3 release; odd minors are development releases
 UPSTREAM_CHECK_REGEX = "libgweather-(?P<pver>4\.\d*[02468](\.\d+)+)\.tar"
@@ -19,16 +19,21 @@  UPSTREAM_CHECK_REGEX = "libgweather-(?P<pver>4\.\d*[02468](\.\d+)+)\.tar"
 GTKDOC_MESON_OPTION = "gtk_doc"
 VALA_MESON_OPTION = "enable_vala"
 
-export GI_TYPELIB_PATH = "${STAGING_LIBDIR}/girepository-1.0/"
-
 DEPENDS = " \
     geocode-glib \
     gtk4 \
+    gweather-locations \
     json-glib \
     libsoup-3.0 \
-    python3-pygobject-native \
 "
 
+RDEPENDS:${PN} += "gweather-locations"
+
+python __anonymous() {
+    if d.getVar('GI_DATA_ENABLED') != 'True':
+        raise bb.parse.SkipRecipe("depends on gweather-locations, which needs GI_DATA_ENABLED")
+}
+
 FILES:${PN} += " \
     ${datadir}/libgweather-4 \
     ${libdir}/libgweather-4 \