Basically what is done in:
https://git.openembedded.org/meta-openembedded/commit/?h=master-next&id=4c40897893f43a99e6ae12e652c0cf789d89df90

This fixes:
| gi.RepositoryError: Typelib file for namespace 'Gobject', version '2.0' not 
found
| gi.RepositoryError: Typelib file for namespace 'Gio', version '2.0' not found
| gi.RepositoryError: Typelib file for namespace 'GModule', version '2.0' not 
found

- Remove uneeded do_compile:prepend. It was broken because of {B}} and seems to 
be unneeded anyway

Signed-off-by: Markus Volk <[email protected]>
---
 .../networkmanager/networkmanager_1.46.0.bb                | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git 
a/meta-networking/recipes-connectivity/networkmanager/networkmanager_1.46.0.bb 
b/meta-networking/recipes-connectivity/networkmanager/networkmanager_1.46.0.bb
index be30154a3..8184fcf1a 100644
--- 
a/meta-networking/recipes-connectivity/networkmanager/networkmanager_1.46.0.bb
+++ 
b/meta-networking/recipes-connectivity/networkmanager/networkmanager_1.46.0.bb
@@ -76,9 +76,10 @@ EXTRA_OEMESON = "\
 CFLAGS:append:libc-musl = " \
     -DRTLD_DEEPBIND=0 \
 "
-
-do_compile:prepend() {
-    export 
GI_TYPELIB_PATH="${B}}/src/libnm-client-impl${GI_TYPELIB_PATH:+:$GI_TYPELIB_PATH}"
+do_configure:prepend() {
+    cp -f ${STAGING_LIBDIR}/girepository-1.0/GObject*typelib 
${STAGING_LIBDIR_NATIVE}/girepository-1.0/
+    cp -f ${STAGING_LIBDIR}/girepository-1.0/Gio*typelib 
${STAGING_LIBDIR_NATIVE}/girepository-1.0/
+    cp -f ${STAGING_LIBDIR}/girepository-1.0/GModule*typelib 
${STAGING_LIBDIR_NATIVE}/girepository-1.0/
 }
 
 PACKAGECONFIG ??= "readline nss ifupdown dnsmasq nmcli vala \
-- 
2.44.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#110190): 
https://lists.openembedded.org/g/openembedded-devel/message/110190
Mute This Topic: https://lists.openembedded.org/mt/105816581/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to