[oe] [meta-python2][PATCH] python-beautifulsoup4: fix target RDEPENDS

André Draszik git at andred.net
Mon Jan 20 10:29:29 UTC 2020


On Sun, 2020-01-19 at 15:24 -0800, Tim Orling wrote:
> * target has run-time dependencies on:
>   - python-html
>   - python-logging

Any reason -native doesn't depend on those?

> Unexpectedly, class-target += override is wiping out
> RDEPENDS_${PN}, so explicitly add the rest of the
> run-time dependencies (python-html5lib, python-lxml,
> python-soupsieve).

This is expected, you should instead do:

RDEPENDS_${PN}_append_class-target = "\
    ${PYTHON_PN}-html \
    ${PYTHON_PN}-logging"

So as to avoid duplication and having to maintain two distinct lists.

Cheers,
Andre'


> 
> Signed-off-by: Tim Orling <ticotimo at gmail.com>
> ---
>  recipes-devtools/python/python-beautifulsoup4_4.8.1.bb | 10 ++++++++++
>  1 file changed, 10 insertions(+)
> 
> diff --git a/recipes-devtools/python/python-beautifulsoup4_4.8.1.bb b/recipes-devtools/python/python-
> beautifulsoup4_4.8.1.bb
> index 86482714..8ac9c8c5 100644
> --- a/recipes-devtools/python/python-beautifulsoup4_4.8.1.bb
> +++ b/recipes-devtools/python/python-beautifulsoup4_4.8.1.bb
> @@ -19,4 +19,14 @@ RDEPENDS_${PN} = "\
>      ${PYTHON_PN}-soupsieve \
>  
> +# class override, which is not
> +# inheriting from above (FIXME?)
> +RDEPENDS_${PN}_class-target += "\
> +    ${PYTHON_PN}-html \
> +    ${PYTHON_PN}-html5lib \
> +    ${PYTHON_PN}-logging \
> +    ${PYTHON_PN}-lxml \
> +    ${PYTHON_PN}-soupsieve \
> +"
> +
>  BBCLASSEXTEND = "native nativesdk"
> -- 
> 2.25.0
> 



More information about the Openembedded-devel mailing list