[oe] [meta-python2][PATCH 1/2] python-ldap: skip when meta-networking isn't included

Tim Orling ticotimo at gmail.com
Wed Feb 26 15:57:52 UTC 2020


Merged. Thank you!

On Tue, Feb 25, 2020 at 11:07 AM Martin Jansa <martin.jansa at gmail.com>
wrote:

> * fixes:
>   ERROR: Nothing PROVIDES 'cyrus-sasl' (but
> meta-python2/recipes-devtools/python/python-ldap_3.2.0.bb DEPENDS on or
> otherwise requires it)
>   in world builds without meta-networking
>
> Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>
> ---
>  recipes-devtools/python/python-ldap_3.2.0.bb | 6 ++++++
>  1 file changed, 6 insertions(+)
>
> diff --git a/recipes-devtools/python/python-ldap_3.2.0.bb
> b/recipes-devtools/python/python-ldap_3.2.0.bb
> index af8961e..8e43dee 100644
> --- a/recipes-devtools/python/python-ldap_3.2.0.bb
> +++ b/recipes-devtools/python/python-ldap_3.2.0.bb
> @@ -23,9 +23,15 @@ do_configure_prepend() {
>      sed -i -e 's:^include_dirs =.*:include_dirs = =/usr/include/sasl/:'
> setup.cfg
>  }
>
> +
>  RDEPENDS_${PN} = " \
>      ${PYTHON_PN}-pprint \
>      ${PYTHON_PN}-threading \
>      ${PYTHON_PN}-pyasn1 \
>      ${PYTHON_PN}-pyasn1-modules \
>  "
> +
> +python() {
> +    if 'networking-layer' not in d.getVar('BBFILE_COLLECTIONS').split():
> +        raise bb.parse.SkipRecipe('Requires networking-layer to be
> present to provide cyrus-sasl.')
> +}
> --
> 2.20.1
>
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
>


More information about the Openembedded-devel mailing list