[OE-core] [PATCH] python3-pycairo: update to 1.17.1
Burton, Ross
ross.burton at intel.com
Fri Jul 13 12:09:09 UTC 2018
Hi Derek,
Breaks under multilib configurations:
| mv: cannot stat
'/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-multilib/build/build/tmp/work/core2-64-poky-linux/python3-pycairo/1.17.1-r0/image/usr/share/lib/pkgconfig/py3cairo.pc':
No such file or directory
(https://autobuilder.yocto.io/builders/nightly-multilib/builds/1142/steps/BuildImages_2/logs/stdio)
I suspect that the path will be .../usr/share/lib64/pkgconfig/...
Clearly that path is wrong. Would it be easier to fix the setup.py
and send a patch?
Ross
On 10 July 2018 at 22:18, Derek Straka <derek at asterius.io> wrote:
> Update the python3-pycairo package to the latest stable version and
> move the .h and .pc files to the standard location
>
> Tested on the qemu with core-image-minimal
>
> Signed-off-by: Derek Straka <derek at asterius.io>
> ---
> ...{python3-pycairo_1.15.6.bb => python3-pycairo_1.17.1.bb} | 13 ++++++++-----
> 1 file changed, 8 insertions(+), 5 deletions(-)
> rename meta/recipes-devtools/python/{python3-pycairo_1.15.6.bb => python3-pycairo_1.17.1.bb} (57%)
>
> diff --git a/meta/recipes-devtools/python/python3-pycairo_1.15.6.bb b/meta/recipes-devtools/python/python3-pycairo_1.17.1.bb
> similarity index 57%
> rename from meta/recipes-devtools/python/python3-pycairo_1.15.6.bb
> rename to meta/recipes-devtools/python/python3-pycairo_1.17.1.bb
> index 5c3e1e6..54e7dcd 100644
> --- a/meta/recipes-devtools/python/python3-pycairo_1.15.6.bb
> +++ b/meta/recipes-devtools/python/python3-pycairo_1.17.1.bb
> @@ -13,8 +13,8 @@ DEPENDS = "cairo"
> SRC_URI = "https://github.com/pygobject/pycairo/releases/download/v${PV}/pycairo-${PV}.tar.gz"
> UPSTREAM_CHECK_URI = "https://github.com/pygobject/pycairo/releases/"
>
> -SRC_URI[md5sum] = "3ff210c34e7b052590e15fd0fb147766"
> -SRC_URI[sha256sum] = "ad150ea637860836b66705e0513b8e59494538f0b80497ad3462051368755016"
> +SRC_URI[md5sum] = "34c1ee106655b450c4bd57e29371a4a7"
> +SRC_URI[sha256sum] = "0f0a35ec923d87bc495f6753b1e540fd046d95db56a35250c44089fbce03b698"
>
> S = "${WORKDIR}/pycairo-${PV}"
>
> @@ -25,7 +25,10 @@ CFLAGS += "-fPIC"
> BBCLASSEXTEND = "native"
>
> do_install_append() {
> - install -d ${D}${includedir}/pycairo/
> - install -m 0644 ${D}${datadir}/include/pycairo/py3cairo.h ${D}${includedir}/pycairo/
> + install -d ${D}${includedir}/pycairo/ ${D}${libdir}/pkgconfig
> + # setup.py uses --install-data which points to a non-standard datadir to install the header and .pc files
> + # Fix the paths here to install in the standard locations instead
> + mv ${D}${datadir}/include/pycairo/py3cairo.h ${D}${includedir}/pycairo/
> + mv ${D}${datadir}/lib/pkgconfig/py3cairo.pc ${D}${libdir}/pkgconfig/
> + rm -rf ${D}${datadir}
> }
> -FILES_${PN} += "${datadir}/include/pycairo/py3cairo.h"
> --
> 2.7.4
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
More information about the Openembedded-core
mailing list