Skip to contentSkip to conversation

typing: add version 3.5.3.0

PATCH In review [email protected] 2 participants 5 messages Feb 2, 2017 – Feb 3, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 typing: add version 3.5.3.0

From: Andy Kling <[email protected]>

this is a dependency for m2crypto > 0.24.0

---
 meta-python/recipes-devtools/python/python-typing.inc        | 9 +++++++++
 meta-python/recipes-devtools/python/python-typing_3.5.3.0.bb | 2 ++
 2 files changed, 11 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python-typing.inc
 create mode 100644 meta-python/recipes-devtools/python/python-typing_3.5.3.0.bb
meta-python/recipes-devtools/python/python-typing.inc new file +9 -0
new file mode 100644
index 000000000..49da4feb1
@@ -0,0 +1,9 @@
+SUMMARY = "Simple Python module defined by PEP 484."
+HOMEPAGE = "https://github.com/python/typing"
+LICENSE = "PSF"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=64fc2b30b67d0a8423c250e0386ed72f"
+
+SRC_URI[md5sum] = "3996a747158e5591abf689c1c5f8f9db"
+SRC_URI[sha256sum] = "ca2daac7e393e8ee86e9140cd0cf0172ff6bb50ebdf0b06281770f98f31bff21"
+
+BBCLASSEXTEND = "native nativesdk"
meta-python/recipes-devtools/python/python-typing_3.5.3.0.bb new file +2 -0
new file mode 100644
index 000000000..04ce063c9
@@ -0,0 +1,2 @@
+inherit pypi setuptools
+require python-typing.inc
Signature · 1 line
2.11.0
#1 lore raw

PATCH 2/2 m2crypto: depend on typing

From: Andy Kling <[email protected]>

m2crypto requires typing since 0.24.0-38-g8bbd0ec

---
 meta-python/recipes-devtools/python/python-m2crypto_0.25.1.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-python/recipes-devtools/python/python-m2crypto_0.25.1.bb +1 -1
index 5a9594f07..ca462229e 100644
@@ -12,7 +12,7 @@ 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"
+DEPENDS += "openssl swig-native 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.11.0
#2 lore raw

Re: [meta-python][PATCH 2/2] m2crypto: depend on typing

Is this meant to be a build time dependency? If it were required to build, I would have expected to see a build failure.

-Derek

Quoted 32 lines · On Thu, Feb 2, 2017 at 8:49 AM, <[email protected]> wrote:

From: Andy Kling <[email protected]>

m2crypto requires typing since 0.24.0-38-g8bbd0ec

---
 meta-python/recipes-devtools/python/python-m2crypto_0.25.1.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-python/recipes-devtools/python/python-m2crypto_0.25.1.bb +0 -0
index 5a9594f07..ca462229e 100644
@@ -12,7 +12,7 @@ SRC_URI += "file://0001-setup.py-link-in-

sysroot-not-in-host-directories.patch "
PYPI_PACKAGE = "M2Crypto"
inherit pypi setuptools siteinfo

meta-python/recipes-devtools/python/python-m2crypto_0.25.1.bb +1 -3
-DEPENDS += "openssl swig-native"
+DEPENDS += "openssl swig-native python-typing"
 
 DISTUTILS_BUILD_ARGS += "build_ext --openssl=${STAGING_DIR_HOST}
-I${STAGING_INCDIR}"
 DISTUTILS_INSTALL_ARGS += "build_ext --openssl=${STAGING_DIR_HOST}"
--

2.11.0

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

author
#3 lore raw

Re: [meta-python][PATCH 2/2] m2crypto: depend on typing

you are right, this was a dependency during runtime of native, my build of crda failed with
ERROR: Failed to import the "M2Crypto" module: No module named typing How should the the RDPENDS look like? Obviously I was to stupid to write it down correctly.

2017-02-02 15:00 GMT+01:00 Derek Straka <[email protected]>:

Quoted 44 lines

Is this meant to be a build time dependency? If it were required to build, I would have expected to see a build failure.

-Derek

Quoted 26 lines · On Thu, Feb 2, 2017 at 8:49 AM, <[email protected]> wrote:

From: Andy Kling <[email protected]>

m2crypto requires typing since 0.24.0-38-g8bbd0ec

---
 meta-python/recipes-devtools/python/python-m2crypto_0.25.1.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-python/recipes-devtools/python/python-m2crypto_0.25.1.bb +0 -0
index 5a9594f07..ca462229e 100644
@@ -12,7 +12,7 @@ SRC_URI += "file://0001-setup.py-link-in-

sysroot-not-in-host-directories.patch "
PYPI_PACKAGE = "M2Crypto"
inherit pypi setuptools siteinfo

meta-python/recipes-devtools/python/python-m2crypto_0.25.1.bb +1 -3
-DEPENDS += "openssl swig-native"
+DEPENDS += "openssl swig-native python-typing"
 
 DISTUTILS_BUILD_ARGS += "build_ext --openssl=${STAGING_DIR_HOST}
-I${STAGING_INCDIR}"
 DISTUTILS_INSTALL_ARGS += "build_ext --openssl=${STAGING_DIR_HOST}"
--

2.11.0

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

author
#4 lore raw

Re: [meta-python][PATCH 2/2] m2crypto: depend on typing

sorry for bothering the list again with this question which for sure was answered a hundred times in the past, but the increasing amount of browser tabs shows that my search does not lead in the right direction. Also I was not able to find a sophisticated grep expression for the mailing list archives. If someone can point me to an earlier thread or another link that clarifies things I would be very happy.

I'm working with bitbake for some years now but I'm still struggling at this point since the beginning. How to define runtime dependencies for a native recipe required by a target recipe. what I thought I had learned in the past:

DEPENDS is for build time, do_configure -> do_populate_sysroot. RDEPENDS for runtime, expressing dependencies for package manager and do_build -> do_package_write. Native class allows to build the recipe for the build machine, native recipes do not create packages.

I see many recipes setting RDEPENDS_${PN}_class-native = "", which makes sense to me if native versions of things mentioned in RDEPENDS do not exist as native.bbclass automatically adds '-native' to each RDEPENDS. Also many recipes set RDEPENDS_${PN}_class-native to meaning full values mapping to RDEPENDS or not. Why should values already present in RDEPENDS_${PN} be added to RDEPENDS_${PN}_class-native? Why does the native class handle rdepends if packaging is not part of the native build? I see I'm missing an important part here :/

DEPENDS_class-native also makes sense to me if additional/other build dependencies are required for the build machine.

So what can I do to get the dependency chain build?

1) add all native dependencies on the top level (in my case crda) DEPENDS = "python-m2crypto-native python-typing ....". This does not feel right as it has to be done for every top level recipe and I think there must be a fancy way to do this.

2) add the dependency to the middle layer(in my case python-m2crypto) but only for the native build DEPENDS_class-native = "python-typing-native". feels much better, but seems to not reflect the idea of DEPENDS.

3) add the dependency to the middle layer with DEPENDS. This is wrong for sure ;)

4) rtfm section x.x.x

So in my case I have to add RDEPENDS_${PN}="python-typing" to python-m2crypto to get the target packaging right. But what to do with the native build. Using RDEPENDS only, leads to a build error in crda as expected.

bitbake -f -c cleansstate python-m2crypto python-m2crypto-native python-typing python-typing-native crda
bitbake crda
...
ERROR: crda-3.18-r0 do_compile: oe_runmake failed
...
| ERROR: Failed to import the "M2Crypto" module: No module named typing
....

-Andy

2017-02-02 15:09 GMT+01:00 Andy <[email protected]>:

Quoted 51 lines

you are right, this was a dependency during runtime of native, my build of crda failed with
ERROR: Failed to import the "M2Crypto" module: No module named typing How should the the RDPENDS look like? Obviously I was to stupid to write it down correctly.

2017-02-02 15:00 GMT+01:00 Derek Straka <[email protected]>:

Quoted 44 lines

Is this meant to be a build time dependency? If it were required to build, I would have expected to see a build failure.

-Derek

Quoted 26 lines · On Thu, Feb 2, 2017 at 8:49 AM, <[email protected]> wrote:

From: Andy Kling <[email protected]>

m2crypto requires typing since 0.24.0-38-g8bbd0ec

---
 meta-python/recipes-devtools/python/python-m2crypto_0.25.1.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-python/recipes-devtools/python/python-m2crypto_0.25.1.bb +0 -0
index 5a9594f07..ca462229e 100644
@@ -12,7 +12,7 @@ SRC_URI += "file://0001-setup.py-link-in-

sysroot-not-in-host-directories.patch "
PYPI_PACKAGE = "M2Crypto"
inherit pypi setuptools siteinfo

meta-python/recipes-devtools/python/python-m2crypto_0.25.1.bb +1 -3
-DEPENDS += "openssl swig-native"
+DEPENDS += "openssl swig-native python-typing"
 
 DISTUTILS_BUILD_ARGS += "build_ext --openssl=${STAGING_DIR_HOST}
-I${STAGING_INCDIR}"
 DISTUTILS_INSTALL_ARGS += "build_ext --openssl=${STAGING_DIR_HOST}"
--

2.11.0

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