libgweather4: Fix introspection build

Missing libgweather4-gir is a gnome-session blocker:
| raspberrypi4-64 systemd[2783]: Failed to start GNOME Shell on Wayland.
| raspberrypi4-64 systemd[2783]: org.gnome.Shell@wayland.service: Failed with result 'protocol'.
| raspberrypi4-64 gnome-shell[4698]: Execution of main.js threw exception: Module resource:///org/gnome/shell/ui/init.js threw an exception
| raspberrypi4-64 gnome-shell[4698]: JS ERROR: Error: Requiring GWeather, version 4.0: Typelib file for namespace 'GWeather', version '4.0' not found

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Andreas Müller
2022-04-16 21:40:12 +02:00
committed by Khem Raj
parent 6fbe7f7487
commit 9864902a15
2 changed files with 35 additions and 5 deletions
@@ -0,0 +1,33 @@
From 179102310e9a3729fb5b00f2a7bf24b12f4a7a83 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@gmail.com>
Date: Sat, 16 Apr 2022 20:04:14 +0200
Subject: [PATCH] Allow building gir in cross environments
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
For us this works perfectly fine
Upstream-Status: Inappropriate [OE-specific]
Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
---
libgweather/meson.build | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libgweather/meson.build b/libgweather/meson.build
index 08311af..ef554f2 100644
--- a/libgweather/meson.build
+++ b/libgweather/meson.build
@@ -208,7 +208,7 @@ lib_libgweather = library('gweather-4',
)
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()
enable_vala = get_option('enable_vala')
vapigen = find_program('vapigen', required: enable_vala == 'true')
--
2.34.1
@@ -7,14 +7,11 @@ GNOMEBASEBUILDCLASS = "meson"
GNOMEBN = "libgweather"
S = "${WORKDIR}/${GNOMEBN}-${PV}"
inherit gnomebase gsettings gobject-introspection gettext gtk-doc vala features_check upstream-version-is-even
inherit gnomebase gsettings gobject-introspection gettext gtk-doc vala
SRC_URI += "file://0001-Allow-building-gir-in-cross-environments.patch"
SRC_URI[archive.sha256sum] = "440d44801b6f72b48c676e5e37f9109cfee1394fd74cc92725e1b1ba4fae834c"
# gobject-introspection is mandatory and cannot be configured
REQUIRED_DISTRO_FEATURES = "gobject-introspection-data"
GIR_MESON_OPTION = ""
GTKDOC_MESON_OPTION = "gtk_doc"
DEPENDS = " \