Skip to contentSkip to conversation

gobject-introspection.bbclass: disable introspection for -native recipes

PATCH In review Alexander Kanavin 2 participants 2 messages May 2, 2016 – May 4, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gobject-introspection.bbclass: disable introspection for -native recipes

It is not necessary for native, adds to the build time, and pulls in the unneeded qemu-native dependency.

---
 meta/classes/gobject-introspection.bbclass | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)
meta/classes/gobject-introspection.bbclass +10 -2
index 2d73e40..d320b5b 100644
@@ -3,13 +3,21 @@
 # This sets up autoconf-based recipes to build introspection data (or not),
 # depending on distro and machine features (see gobject-introspection-data class).
 inherit gobject-introspection-data
-EXTRA_OECONF_prepend = "${@bb.utils.contains('GI_DATA_ENABLED', 'True', '--enable-introspection', '--disable-introspection', d)} "
+EXTRA_OECONF_prepend_class-target = "${@bb.utils.contains('GI_DATA_ENABLED', 'True', '--enable-introspection', '--disable-introspection', d)} "
+
+# When building native recipes, disable introspection, as it is not necessary,
+# pulls in additional dependencies, and makes build times longer
+EXTRA_OECONF_prepend_class-native = "--disable-introspection "
 
 UNKNOWN_CONFIGURE_WHITELIST_append = " --enable-introspection --disable-introspection"
 
 # Generating introspection data depends on a combination of native and target
 # introspection tools, and qemu to run the target tools.
-DEPENDS_append = " gobject-introspection gobject-introspection-native qemu-native"
+DEPENDS_append_class-target = " gobject-introspection gobject-introspection-native qemu-native"
+
+# Even though introspection is disable on -native, gobject-introspection package is still
+# needed for m4 macros.
+DEPENDS_append_class-native = " gobject-introspection-native"
 
 # This is necessary for python scripts to succeed - distutils fails if these
 # are not set
Signature · 1 line
2.8.1
#1 lore raw

On 2 May 2016 at 13:17, Alexander Kanavin <[email protected]

Quoted 27 lines

wrote:

-EXTRA_OECONF_prepend = "${@bb.utils.contains('GI_DATA_ENABLED', 'True', '--enable-introspection', '--disable-introspection', d)} " +EXTRA_OECONF_prepend_class-target = "${@bb.utils.contains('GI_DATA_ENABLED', 'True', '--enable-introspection', '--disable-introspection', d)} "

(quoted diff) +2 -0
+
+# When building native recipes, disable introspection, as it is not

necessary,

meta/classes/gobject-introspection.bbclass +2 -1
+# pulls in additional dependencies, and makes build times longer
+EXTRA_OECONF_prepend_class-native = "--disable-introspection "
 
 UNKNOWN_CONFIGURE_WHITELIST_append = " --enable-introspection
--disable-introspection"
 
 # Generating introspection data depends on a combination of native and

target

 # introspection tools, and qemu to run the target tools.
-DEPENDS_append = " gobject-introspection gobject-introspection-native
qemu-native"
+DEPENDS_append_class-target = " gobject-introspection
gobject-introspection-native qemu-native"
(quoted diff) +2 -0
+
+# Even though introspection is disable on -native, gobject-introspection

package is still

meta/classes/gobject-introspection.bbclass line 20

Quoted 2 lines
meta/classes/gobject-introspection.bbclass +2 -0
+# needed for m4 macros.
+DEPENDS_append_class-native = " gobject-introspection-native"

This leaves the nativesdk case undefined. We probably want it enabled for nativesdk?

Ross