Skip to contentSkip to conversation

libnma: allow building nor mipsn32

PATCH In review Joe Slater 2 participants 2 messages Apr 9, 2020

lore
Share & tools
lore

Joe Slater

author
#0 lore raw

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
index 267baff..f0f0064 100644
@@ -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
#1 lore raw

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 must

disable 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