| Message ID | 20240430064721.164017-1-f_l_k@t-online.de |
|---|---|
| State | Accepted |
| Headers | show |
| Series | [meta-networking] networkmanager: fix gir build | expand |
This patch breaks my build (scarthgap): | DEBUG: Executing shell function do_configure | cp: cannot stat '$BBPATH/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/networkmanager/1.46.0/recipe-sysroot/usr/lib/girepository-1.0/GObject*typelib': No such file or directory | WARNING: $BBPATH/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/networkmanager/1.46.0/temp/run.do_configure.1339834:152 exit 1 from 'cp -f $BBPATH/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/networkmanager/1.46.0/recipe-sysroot/usr/lib/girepository-1.0/GObject*typelib $BBPATH/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/networkmanager/1.46.0/recipe-sysroot-native/usr/lib/girepository-1.0/' I believe this might be related to the fact that I have gobject introspection data generation disabled via DISTRO_FEATURES_BACKFILL_CONSIDERED="gobject-introspection-data" ?
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 \
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 <f_l_k@t-online.de> --- .../networkmanager/networkmanager_1.46.0.bb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)