[OE-core] [PATCH 7/8] gobject-introspection.bbclass: make additional DEPENDS conditional

alexander.kanavin at linux.intel.com alexander.kanavin at linux.intel.com
Fri Mar 18 19:22:29 UTC 2016


> Even with gobject-introspection-data removed from DISTRO_FEATURES I'm
> seeing
> couple recipes (our version of gst-*) failing with:
>
> | configure:22282: error: possibly undefined macro: PKG_CONFIG_SYSROOT_DIR
> |       If this token and others are legitimate, please use
> m4_pattern_allow.
> |       See the Autoconf documentation.
>
> and PKG_CONFIG_SYSROOT_DIR is added by introspection.m4 from g-i patchset.

Disabling building of introspection data will not guarantee absence of
build failures, I'm afraid. Some recipes will work just fine unchanged,
but others, including gstreamer, do need custom fixing, usually because
they have non-standard locations for m4 macros, or those macros themselves
are non-standard. So you need to rebase your recipes on top of those
available now in oe-core, and particularly this snippet will fix the
immediate problem you have above:

delete_pkg_m4_file() {
        # This m4 file is out of date and is missing
PKG_CONFIG_SYSROOT_PATH tweaks which we need for introspection
        rm "${S}/common/m4/pkg.m4" || true
}

do_configure[prefuncs] += " delete_pkg_m4_file"


Alex



More information about the Openembedded-core mailing list