[OE-core] [PATCH 7/8] gobject-introspection.bbclass: make additional DEPENDS conditional
Martin Jansa
martin.jansa at gmail.com
Fri Mar 18 20:46:26 UTC 2016
On Fri, Mar 18, 2016 at 09:22:29PM +0200, alexander.kanavin at linux.intel.com wrote:
> > 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"
Thanks, this did the trick.
--
Martin 'JaMa' Jansa jabber: Martin.Jansa at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20160318/0dddca3b/attachment-0002.sig>
More information about the Openembedded-core
mailing list