Skip to contentSkip to conversation

python-m2crypto-native: rdepend on python-typing

PATCH Superseded Max Krummenacher 3 participants 10 messages Feb 13, 2017 – Feb 15, 2017

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

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
new file mode 100644
index 0000000..afaeca8
@@ -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
index ca46222..7c41828 100644
@@ -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
#1 lore raw

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
index 2aa9a09..45ecdd7 100644
@@ -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
#2 lore raw

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.

---
 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
index 2aa9a09..45ecdd7 100644
@@ -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

#3 lore raw

PATCH 3/4 pywbem: depend on python-m2crypto-native and its rdepends

In reply to Max Krummenacher

This 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
index 8b5394e..14d4e69 100644
@@ -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
#4 lore raw

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.

---
 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
index 8b5394e..14d4e69 100644
@@ -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] = "898035866d3cc741bbcd62c4ac26e6
33ad07b7c11d89db2472b9f923f3fd3ed8"

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 RSS

http://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

#5 lore raw

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.

---
 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
index 8b5394e..14d4e69 100644
@@ -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] = "898035866d3cc741bbcd62c4ac26e
633ad07b7c11d89db2472b9f923f3fd3ed8"

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 RSS

http://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

#6 lore raw

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.

---
 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
index 8b5394e..14d4e69 100644
@@ -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] = "898035866d3cc741bbcd62c4ac26e
633ad07b7c11d89db2472b9f923f3fd3ed8"

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 RSS

http://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

#7 lore raw

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.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 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 <

[email protected]>

Quoted 9 lines
Quoted 9 lines
Quoted 7 lines · wrote:

This fixed the build, remove blacklist also.

---
 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
index 8b5394e..14d4e69 100644
--- a/meta-oe/recipes-extended/pywbem/pywbem_0.8.0.bb
Quoted 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] = "898035866d3cc741bbcd62c4ac26e
633ad07b7c11d89db2472b9f923f3fd3ed8"

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 RSS

http://errors.yoctoproject.org/Errors/Details/130596/"
-PNBLACKLIST[pywbem] ?= "Fails to build with RSS
http://errors.yoctoproject.org/Errors/Details/130681/"
--
2.6.6

Quoted 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

#8 lore raw

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

#9 lore raw

PATCH 4/4 openlmi-tools: remove blacklist

In reply to Max Krummenacher

Build 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
index cc8e829..b23869d 100644
@@ -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