python-m2crypto-native: rdepend on python-typing
PATCH 1/4 python-m2crypto-native: rdepend on python-typing
Because of a bitbake limitation add python-m2crypto-native.bbclass which can be inherited by users of python-m2crypto-native to get the required dependencies into their recipe specific sysroot.
--- meta-python/classes/python-m2crypto-native.bbclass | 6 ++++++ meta-python/recipes-devtools/python/python-m2crypto_0.25.1.bb | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 meta-python/classes/python-m2crypto-native.bbclass
meta-python/classes/python-m2crypto-native.bbclass new file +6 -0
@@ -0,0 +1,6 @@ +# Inherit this class if you need python-m2crypto-native in your +# sysroot. This works around RDEPENDS of native packages pulled in via +# DEPENDS not being installed otherwise. + +DEPENDS_append = " python-m2crypto-native python-typing-native" +inherit pythonnative
meta-python/recipes-devtools/python/python-m2crypto_0.25.1.bb +3 -1
@@ -12,7 +12,9 @@ SRC_URI += "file://0001-setup.py-link-in-sysroot-not-in-host-directories.patch " PYPI_PACKAGE = "M2Crypto" inherit pypi setuptools siteinfo -DEPENDS += "openssl swig-native python-typing" +DEPENDS += "openssl swig-native" +# any change to RDEPENDS should also go into python-m2crypto-native.bbclass +RDEPENDS_${PN} += "python-typing" DISTUTILS_BUILD_ARGS += "build_ext --openssl=${STAGING_DIR_HOST} -I${STAGING_INCDIR}" DISTUTILS_INSTALL_ARGS += "build_ext --openssl=${STAGING_DIR_HOST}"
Signature · 1 line
2.6.6
PATCH 2/4 crda: add rdepends of python-m2crypto-native
This fixed the build, remove blacklist also.
While at it, cleanup DEPENDS of python stuff already added by inherit.
--- meta-networking/recipes-connectivity/crda/crda_3.18.bb | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)
meta-networking/recipes-connectivity/crda/crda_3.18.bb +3 -4
@@ -4,7 +4,7 @@ SECTION = "net" LICENSE = "copyleft-next-0.3.0" LIC_FILES_CHKSUM = "file://copyleft-next-0.3.0;md5=8743a2c359037d4d329a31e79eabeffe" -DEPENDS = "python-m2crypto-native python-native libgcrypt libnl openssl" +DEPENDS = "libgcrypt libnl openssl" SRC_URI = "https://www.kernel.org/pub/software/network/${BPN}/${BP}.tar.xz \ file://do-not-run-ldconfig-if-destdir-is-set.patch \
@@ -18,7 +18,8 @@ SRC_URI = "https://www.kernel.org/pub/software/network/${BPN}/${BP}.tar.xz \ SRC_URI[md5sum] = "0431fef3067bf503dfb464069f06163a" SRC_URI[sha256sum] = "43fcb9679f8b75ed87ad10944a506292def13e4afb194afa7aa921b01e8ecdbf" -inherit python-dir pythonnative +inherit python-m2crypto-native + # Recursive make problem EXTRA_OEMAKE = "MAKEFLAGS= DESTDIR=${D} LIBDIR=${libdir}/crda LDLIBREG='-Wl,-rpath,${libdir}/crda -lreg'" EXTRA_OEMAKE_append = " USE_OPENSSL=1"
@@ -34,5 +35,3 @@ do_install() { } RDEPENDS_${PN} = "udev wireless-regdb" - -PNBLACKLIST[crda] ?= "Fails to build with RSS http://errors.yoctoproject.org/Errors/Details/130675/"
Signature · 1 line
2.6.6
Re: [meta-oe][PATCH][master-next 2/4] crda: add rdepends of python-m2crypto-native
all right, the fancy way. Thanks you for clarifying.
2017-02-13 22:02 GMT+01:00 Max Krummenacher <[email protected]>:
Quoted 45 lines
This fixed the build, remove blacklist also.
While at it, cleanup DEPENDS of python stuff already added by inherit.Signed-off-by Max Krummenacher <[email protected]>--- meta-networking/recipes-connectivity/crda/crda_3.18.bb | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)meta-networking/recipes-connectivity/crda/crda_3.18.bb +3
-5@@ -4,7 +4,7 @@ SECTION = "net" LICENSE = "copyleft-next-0.3.0" LIC_FILES_CHKSUM = "file://copyleft-next-0.3.0;md5=8743a2c359037d4d329a31e79eabeffe" -DEPENDS = "python-m2crypto-native python-native libgcrypt libnl openssl" +DEPENDS = "libgcrypt libnl openssl" SRC_URI = "https://www.kernel.org/pub/software/network/${BPN}/${BP}.tar.xz \ file://do-not-run-ldconfig-if-destdir-is-set.patch \@@ -18,7 +18,8 @@ SRC_URI = "https://www.kernel.org/pub/software/network/${BPN}/${BP}.tar.xz \ SRC_URI[md5sum] = "0431fef3067bf503dfb464069f06163a" SRC_URI[sha256sum] = "43fcb9679f8b75ed87ad10944a506292def13e4afb194afa7aa921b01e8ecdbf" -inherit python-dir pythonnative +inherit python-m2crypto-native + # Recursive make problem EXTRA_OEMAKE = "MAKEFLAGS= DESTDIR=${D} LIBDIR=${libdir}/crda LDLIBREG='-Wl,-rpath,${libdir}/crda -lreg'" EXTRA_OEMAKE_append = " USE_OPENSSL=1"@@ -34,5 +35,3 @@ do_install() { } RDEPENDS_${PN} = "udev wireless-regdb" - -PNBLACKLIST[crda] ?= "Fails to build with RSS http://errors.yoctoproject.org/Errors/Details/130675/" --2.6.6
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
PATCH 3/4 pywbem: depend on python-m2crypto-native and its rdepends
In reply to Max KrummenacherThis fixed the build, remove blacklist also.
--- meta-oe/recipes-extended/pywbem/pywbem_0.8.0.bb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-)
meta-oe/recipes-extended/pywbem/pywbem_0.8.0.bb +1 -5
@@ -16,14 +16,13 @@ HOMEPAGE = "http://pywbem.sf.net/" LICENSE = "LGPLv2" LIC_FILES_CHKSUM = "file://pywbem/LICENSE.txt;md5=fbc093901857fcd118f065f900982c24" SECTION = "Development/Libraries" -DEPENDS = "python-m2crypto-native" SRC_URI = "http://jaist.dl.sourceforge.net/project/${BPN}/${BPN}/${BP}/${BP}-dev.r704.zip" SRC_URI[md5sum] = "84072451dcdd1aa9ee82363848faf7ad" SRC_URI[sha256sum] = "898035866d3cc741bbcd62c4ac26e633ad07b7c11d89db2472b9f923f3fd3ed8" S = "${WORKDIR}/${BP}-dev" -inherit setuptools python-dir +inherit setuptools python-m2crypto-native do_install_append() { mv ${D}${bindir}/wbemcli.py ${D}${bindir}/pywbemcli
@@ -34,6 +33,3 @@ do_install_append() { } BBCLASSEXTEND = "native" - -PNBLACKLIST[pywbem] ?= "Fails to build with RSS http://errors.yoctoproject.org/Errors/Details/130596/" -PNBLACKLIST[pywbem] ?= "Fails to build with RSS http://errors.yoctoproject.org/Errors/Details/130681/"
Signature · 1 line
2.6.6
Re: [meta-oe][PATCH][master-next 3/4] pywbem: depend on python-m2crypto-native and its rdepends
Did you test this change? You added it to inherit not DEPENDS..
Quoted 49 lines · Max Krummenacher
This fixed the build, remove blacklist also.
Signed-off-by Max Krummenacher <[email protected]>--- meta-oe/recipes-extended/pywbem/pywbem_0.8.0.bb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-)meta-oe/recipes-extended/pywbem/pywbem_0.8.0.bb +0
-0@@ -16,14 +16,13 @@ HOMEPAGE = "http://pywbem.sf.net/" LICENSE = "LGPLv2" LIC_FILES_CHKSUM = "file://pywbem/LICENSE.txt;md5=
fbc093901857fcd118f065f900982c24"
SECTION = "Development/Libraries"
-DEPENDS = "python-m2crypto-native"
SRC_URI= "http://jaist.dl.sourceforge.net/project/${BPN}/${BPN}/${
BP}/${BP}-dev.r704.zip"
SRC_URI[md5sum] = "84072451dcdd1aa9ee82363848faf7ad" SRC_URI[sha256sum] = "898035866d3cc741bbcd62c4ac26e633ad07b7c11d89db2472b9f923f3fd3ed8"S = "${WORKDIR}/${BP}-dev"
meta-oe/recipes-extended/pywbem/pywbem_0.8.0.bb +1
-3-inherit setuptools python-dir +inherit setuptools python-m2crypto-native do_install_append() { mv ${D}${bindir}/wbemcli.py ${D}${bindir}/pywbemcli@@ -34,6 +33,3 @@ do_install_append() { } BBCLASSEXTEND = "native" - -PNBLACKLIST[pywbem] ?= "Fails to build with RSShttp://errors.yoctoproject.org/Errors/Details/130596/"
-PNBLACKLIST[pywbem] ?= "Fails to build with RSS
http://errors.yoctoproject.org/Errors/Details/130681/"
--
2.6.6--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Re: [meta-oe][PATCH][master-next 3/4] pywbem: depend on python-m2crypto-native and its rdepends
Oh, I see what you did in master-next 1/4, but is it worth creating .bbclass for just 2 dependencies which probably won't be used by so many recipes?
Quoted 56 lines · Martin Jansa
Did you test this change? You added it to inherit not DEPENDS..
Quoted 49 lines · Max Krummenacher
This fixed the build, remove blacklist also.
Signed-off-by Max Krummenacher <[email protected]>--- meta-oe/recipes-extended/pywbem/pywbem_0.8.0.bb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-)meta-oe/recipes-extended/pywbem/pywbem_0.8.0.bb +0
-0@@ -16,14 +16,13 @@ HOMEPAGE = "http://pywbem.sf.net/" LICENSE = "LGPLv2" LIC_FILES_CHKSUM = "file://pywbem/LICENSE.txt;md5=fbc093901857fcd118f065f900982c24"
SECTION = "Development/Libraries"
-DEPENDS = "python-m2crypto-native"
SRC_URI= "http://jaist.dl.sourceforge.net/project/${BPN}/${BPN}/${BP}
/${BP}-dev.r704.zip"
SRC_URI[md5sum] = "84072451dcdd1aa9ee82363848faf7ad" SRC_URI[sha256sum] = "898035866d3cc741bbcd62c4ac26e633ad07b7c11d89db2472b9f923f3fd3ed8"S = "${WORKDIR}/${BP}-dev"
meta-oe/recipes-extended/pywbem/pywbem_0.8.0.bb +1
-3-inherit setuptools python-dir +inherit setuptools python-m2crypto-native do_install_append() { mv ${D}${bindir}/wbemcli.py ${D}${bindir}/pywbemcli@@ -34,6 +33,3 @@ do_install_append() { } BBCLASSEXTEND = "native" - -PNBLACKLIST[pywbem] ?= "Fails to build with RSShttp://errors.yoctoproject.org/Errors/Details/130596/"
-PNBLACKLIST[pywbem] ?= "Fails to build with RSS
http://errors.yoctoproject.org/Errors/Details/130681/"
--
2.6.6--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Re: [meta-oe][PATCH][master-next 3/4] pywbem: depend on python-m2crypto-native and its rdepends
Hi
Am Montag, den 13.02.2017, 22:40 +0100 schrieb Martin Jansa:
Quoted 3 lines
Oh, I see what you did in master-next 1/4, but is it worth creating .bbclass for just 2 dependencies which probably won't be used by so many recipes?
That's how I understand Richard here:
http://lists.openembedded.org/pipermail/openembedded-core/2017-February/132693.html
Actually it is not 2 dependencies, it is 1 dependency on python-m2crypto-native and the run time dependency that python-m2crypto-native needs since it upgrade to 0.25.1.
So the issue here is that if some time in the future there is another RDEPENDS that python-m2crypto-native needs we will have to track down all the users of it and add the new dependency there too.
If you think this does not merit a new class I can substitute the new class by adding python-typing-native to crda and pywbem to fix the build in the current setup and resend the patch series.
Max
On Mon, Feb 13, 2017 at 10:39 PM, Martin Jansa <[email protected]>
Quoted 58 lines
Quoted 56 lines · wrote:
Did you test this change? You added it to inherit not DEPENDS..
Quoted 49 lines · Max Krummenacher
This fixed the build, remove blacklist also.
Signed-off-by Max Krummenacher <[email protected]>--- meta-oe/recipes-extended/pywbem/pywbem_0.8.0.bb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-)meta-oe/recipes-extended/pywbem/pywbem_0.8.0.bb +0
-0@@ -16,14 +16,13 @@ HOMEPAGE = "http://pywbem.sf.net/" LICENSE = "LGPLv2" LIC_FILES_CHKSUM = "file://pywbem/LICENSE.txt;md5=fbc093901857fcd118f065f900982c24"
SECTION = "Development/Libraries"
-DEPENDS = "python-m2crypto-native"
SRC_URI= "http://jaist.dl.sourceforge.net/project/${BPN}/${BPN}/${BP}
/${BP}-dev.r704.zip"
SRC_URI[md5sum] = "84072451dcdd1aa9ee82363848faf7ad" SRC_URI[sha256sum] = "898035866d3cc741bbcd62c4ac26e633ad07b7c11d89db2472b9f923f3fd3ed8"S = "${WORKDIR}/${BP}-dev"
meta-oe/recipes-extended/pywbem/pywbem_0.8.0.bb +1
-3-inherit setuptools python-dir +inherit setuptools python-m2crypto-native do_install_append() { mv ${D}${bindir}/wbemcli.py ${D}${bindir}/pywbemcli@@ -34,6 +33,3 @@ do_install_append() { } BBCLASSEXTEND = "native" - -PNBLACKLIST[pywbem] ?= "Fails to build with RSShttp://errors.yoctoproject.org/Errors/Details/130596/"
-PNBLACKLIST[pywbem] ?= "Fails to build with RSS
http://errors.yoctoproject.org/Errors/Details/130681/"
--
2.6.6--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Re: [meta-oe][PATCH][master-next 3/4] pywbem: depend on python-m2crypto-native and its rdepends
Yes, I guessed that Richard answer was the motivation for what you did, but the original issue reported by Andreas was about "many recipes depending on kdoctool".
Here I see only 2 cases of such dependency, so I think we can live without the bbclass - unless someone says that he has many recipes in internal layers which depend on python-m2crypto-native.
Just my 2c (I'm not familiar with python-m2crypto so I cannot say how common this use-case is).
Quoted 95 lines · Max Krummenacher
Hi
Am Montag, den 13.02.2017, 22:40 +0100 schrieb Martin Jansa:
Quoted 3 lines
Oh, I see what you did in master-next 1/4, but is it worth creating .bbclass for just 2 dependencies which probably won't be used by so many recipes?
That's how I understand Richard here:
http://lists.openembedded.org/pipermail/openembedded-core/
2017-February/132693.htmlActually it is not 2 dependencies, it is 1 dependency on python-m2crypto-native and the run time dependency that python-m2crypto-native
needs since it upgrade to 0.25.1.So the issue here is that if some time in the future there is another RDEPENDS that python-m2crypto-native needs we will have to track down all the users of it and add the new dependency there too.
If you think this does not merit a new class I can substitute the new class by adding python-typing-native to crda and pywbem to fix the build in the current setup and resend the patch series.
Max
On Mon, Feb 13, 2017 at 10:39 PM, Martin Jansa <[email protected]>
Quoted 5 lines
Quoted 3 lines · wrote:
Did you test this change? You added it to inherit not DEPENDS..
On Mon, Feb 13, 2017 at 10:02 PM, Max Krummenacher <
Quoted 9 lines
Quoted 9 lines
Quoted 7 lines · wrote:
This fixed the build, remove blacklist also.
Signed-off-by Max Krummenacher <[email protected]>--- meta-oe/recipes-extended/pywbem/pywbem_0.8.0.bb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-)Quoted 12 lines
Quoted 4 lines
Quoted 4 lines
meta-oe/recipes-extended/pywbem/pywbem_0.8.0.bb +0
-1--- a/meta-oe/recipes-extended/pywbem/pywbem_0.8.0.bbQuoted 8 lines
Quoted 8 lines
+++ b/meta-oe/recipes-extended/pywbem/pywbem_0.8.0.bb
meta-oe/recipes-extended/pywbem/pywbem_0.8.0.bb +0
-0@@ -16,14 +16,13 @@ HOMEPAGE = "http://pywbem.sf.net/" LICENSE = "LGPLv2" LIC_FILES_CHKSUM = "file://pywbem/LICENSE.txt;md5=fbc093901857fcd118f065f900982c24"
SECTION = "Development/Libraries"
-DEPENDS = "python-m2crypto-native"
SRC_URI= "http://jaist.dl.sourceforge.net/project/${BPN}/${BPN}/${BP}
Quoted 24 lines
Quoted 24 lines
Quoted 24 lines
/${BP}-dev.r704.zip"
SRC_URI[md5sum] = "84072451dcdd1aa9ee82363848faf7ad" SRC_URI[sha256sum] = "898035866d3cc741bbcd62c4ac26e633ad07b7c11d89db2472b9f923f3fd3ed8"S = "${WORKDIR}/${BP}-dev"
meta-oe/recipes-extended/pywbem/pywbem_0.8.0.bb +1
-3-inherit setuptools python-dir +inherit setuptools python-m2crypto-native do_install_append() { mv ${D}${bindir}/wbemcli.py ${D}${bindir}/pywbemcli@@ -34,6 +33,3 @@ do_install_append() { } BBCLASSEXTEND = "native" - -PNBLACKLIST[pywbem] ?= "Fails to build with RSShttp://errors.yoctoproject.org/Errors/Details/130596/"
-PNBLACKLIST[pywbem] ?= "Fails to build with RSS
http://errors.yoctoproject.org/Errors/Details/130681/"
--
2.6.6Quoted 8 lines
Quoted 8 lines
Quoted 6 lines
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Re: [meta-oe][PATCH][master-next 3/4] pywbem: depend on python-m2crypto-native and its rdepends
2017-02-13 23:58 GMT+01:00 Martin Jansa <[email protected]>:
Quoted 10 lines
Yes, I guessed that Richard answer was the motivation for what you did, but the original issue reported by Andreas was about "many recipes depending on kdoctool".
Here I see only 2 cases of such dependency, so I think we can live without the bbclass - unless someone says that he has many recipes in internal layers which depend on python-m2crypto-native.
Just my 2c (I'm not familiar with python-m2crypto so I cannot say how common this use-case is).
I don't know either.
I rework the patches to only use DEPENDS and send a v2.
Max
PATCH 4/4 openlmi-tools: remove blacklist
In reply to Max KrummenacherBuild is fixed for bywbem, bywbem-native.
--- meta-oe/recipes-extended/openlmi/openlmi-tools_0.10.5.bb | 2 -- 1 file changed, 2 deletions(-)
meta-oe/recipes-extended/openlmi/openlmi-tools_0.10.5.bb +0 -2
@@ -21,5 +21,3 @@ do_compile_prepend() { do_install_prepend() { cd cli } - -PNBLACKLIST[openlmi-tools] ?= "Depends on blacklisted pywbem"
Signature · 1 line
2.6.6