libnma: allow building nor mipsn32
PATCH 1/1 libnma: allow building nor mipsn32
go introspection is not support for mipsn32, so we must not try to build vapi support. Using sed allows us to change the meson option, if it is present, to be set correctly, and is more flexible than a patch would be.
--- meta-gnome/recipes-connectivity/libnma/libnma_1.8.28.bb | 7 +++++++ 1 file changed, 7 insertions(+)
meta-gnome/recipes-connectivity/libnma/libnma_1.8.28.bb +7 -0
@@ -19,3 +19,10 @@ PACKAGECONFIG[iso_codes] = "-Diso_codes=true,-Diso_codes=false,iso-codes,iso-cod PACKAGECONFIG[mobile_broadband_provider_info] = "-Dmobile_broadband_provider_info=true,-Dmobile_broadband_provider_info=false,mobile-broadband-provider-info,mobile-broadband-provider-info" GTKDOC_MESON_OPTION = "gtk_doc" + +# go object introspection is not supported for mipsn32, so we must disable trying +# to build vapi. +# +do_configure_prepend_mipsarchn32 () { + sed -i "/^option('vapi/ s!true!false!" ${S}/meson_options.txt +}
Signature · 1 line
2.7.4
meta-gnome/recipes-connectivity/libnma/libnma_1.8.28.bb PACKAGECONFIG[iso_codes] = "-Diso_codes=true,-Diso_codes=false,iso-codes,iso-cod · line 28
Quoted 12 lines · Joe Slater
go introspection is not support for mipsn32, so we must not try to build vapi support. Using sed allows us to change the meson option, if it is present, to be set correctly, and is more flexible than a patch would be.
(quoted diff) +2
-0+ +# go object introspection is not supported for mipsn32, so we mustdisable trying
meta-gnome/recipes-connectivity/libnma/libnma_1.8.28.bb +5
-0+# to build vapi. +# +do_configure_prepend_mipsarchn32 () { + sed -i "/^option('vapi/ s!true!false!" ${S}/meson_options.txt +}
Wait, what? Why don't you set the option directly:EXTRA_OEMESON_mipsarchn32_append = "-Dvapi=false" instead of hacking the default value with sed?
Alex