[oe] [PATCH] python-pycairo: convert to new style staging and bump PR

Frans Meulenbroeks fransmeulenbroeks at gmail.com
Fri Oct 15 07:07:08 UTC 2010


2010/10/15 Simon Busch <morphis at gravedo.de>:
> Signed-off-by: Simon Busch <morphis at gravedo.de>
> ---
>  recipes/python/python-pycairo_1.4.0.bb |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/recipes/python/python-pycairo_1.4.0.bb b/recipes/python/python-pycairo_1.4.0.bb
> index 94bb338..b0cbf95 100644
> --- a/recipes/python/python-pycairo_1.4.0.bb
> +++ b/recipes/python/python-pycairo_1.4.0.bb
> @@ -3,7 +3,7 @@ SECTION = "devel/python"
>  HOMEPAGE = "http://cairographics.org/pycairo"
>  LICENSE = "LGPL MPL"
>  DEPENDS = "cairo"
> -PR = "ml3"
> +PR = "ml4"
>
>  SRC_URI = "http://cairographics.org/releases/pycairo-${PV}.tar.gz \
>            file://fix-setup-py.patch"
> @@ -15,7 +15,7 @@ do_configure_append() {
>        sed -e 's:@prefix@:${prefix}:' -e 's:@includedir@:\$\{prefix\}/include:' -e 's:@VERSION@:${PV}:' pycairo.pc.in > pycairo.pc
>  }
>
> -do_stage() {
> +do_install_append() {
>        install -d ${STAGING_INCDIR}
>        install -m 0644 cairo/pycairo.h ${STAGING_INCDIR}
>  }


Some concerns:
I don't think STAGING_INCDIR should be used; guess it should go to
${D}/${includedir} (just like the 1.8.0 version does).
You might also peek at the do_install_append of the 1.8.0 recipe as it
does different/more things. I don't know too much about pycairo, but I
can imagine these make sense for 1.4.0 too.

Then again perhaps it is time to move to 1.8.0; this version has a
DEFAULT_PREFERENCE of -1, but angstrom 2008 and 2010 and kaeilos
already have 1.8.0 as preferred version (and the 1.8.0 version is
around for 1.5 year or so).

BTW the latest version of cairo is 1.8.10 so we might consider moving
to that version too.

Enjoy, Frans




More information about the Openembedded-devel mailing list