Skip to contentSkip to conversation

python3-pycairo: update to 1.17.1

PATCH In review Derek Straka 2 participants 2 messages Jul 10, 2018 – Jul 13, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 python3-pycairo: update to 1.17.1

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

---
 ...{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%)
meta/recipes-devtools/python/python3-pycairo_1.17.1.bb renamed from meta/recipes-devtools/python/python3-pycairo_1.15.6.bb +8 -5
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
@@ -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"
Signature · 1 line
2.7.4
#1 lore raw

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

Quoted 51 lines · Derek Straka

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

---
 ...{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%)
meta/recipes-devtools/python/python3-pycairo_1.17.1.bb renamed from meta/recipes-devtools/python/python3-pycairo_1.15.6.bb +8 -6
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
@@ -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
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core