[oe] [meta-python PATCH v2] python3-pycrypto: Add python3 version of recipe
Otavio Salvador
otavio at ossystems.com.br
Mon Aug 28 20:42:51 UTC 2017
The python2 version of the recipe already exist but there was no
python3 alternative. This patch adds the missing bits.
Signed-off-by: Otavio Salvador <otavio at ossystems.com.br>
---
Changes in v2:
- rebase to master
- avoid duplication of patches
- move patches to .inc file so we ensure both versions are in sync
meta-python/recipes-devtools/python/python-pycrypto.inc | 6 +++++-
meta-python/recipes-devtools/python/python-pycrypto_2.6.1.bb | 4 ----
meta-python/recipes-devtools/python/python3-pycrypto_2.6.1.bb | 9 +++++++++
3 files changed, 14 insertions(+), 5 deletions(-)
create mode 100644 meta-python/recipes-devtools/python/python3-pycrypto_2.6.1.bb
diff --git a/meta-python/recipes-devtools/python/python-pycrypto.inc b/meta-python/recipes-devtools/python/python-pycrypto.inc
index fb2c17df1..76d0bea8c 100644
--- a/meta-python/recipes-devtools/python/python-pycrypto.inc
+++ b/meta-python/recipes-devtools/python/python-pycrypto.inc
@@ -3,12 +3,16 @@ HOMEPAGE = "http://www.pycrypto.org/"
LICENSE = "PSFv2"
LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=35f354d199e8cb7667b059a23578e63d"
-FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
+FILESEXTRAPATHS_prepend := "${THISDIR}/python-pycrypto:"
DEPENDS += " gmp"
inherit pypi autotools-brokensep
+SRC_URI += "file://cross-compiling.patch \
+ file://CVE-2013-7459.patch \
+"
+
SRC_URI[md5sum] = "55a61a054aa66812daf5161a0d5d7eda"
SRC_URI[sha256sum] = "f2ce1e989b272cfcb677616763e0a2e7ec659effa67a88aa92b3a65528f60a3c"
diff --git a/meta-python/recipes-devtools/python/python-pycrypto_2.6.1.bb b/meta-python/recipes-devtools/python/python-pycrypto_2.6.1.bb
index 919f91ecb..e13db01b7 100644
--- a/meta-python/recipes-devtools/python/python-pycrypto_2.6.1.bb
+++ b/meta-python/recipes-devtools/python/python-pycrypto_2.6.1.bb
@@ -1,10 +1,6 @@
inherit distutils
require python-pycrypto.inc
-SRC_URI += "file://cross-compiling.patch \
- file://CVE-2013-7459.patch \
- "
-
# We explicitly call distutils_do_install, since we want it to run, but
# *don't* want the autotools install to run, since this package doesn't
# provide a "make install" target.
diff --git a/meta-python/recipes-devtools/python/python3-pycrypto_2.6.1.bb b/meta-python/recipes-devtools/python/python3-pycrypto_2.6.1.bb
new file mode 100644
index 000000000..02d634cb0
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-pycrypto_2.6.1.bb
@@ -0,0 +1,9 @@
+inherit distutils3
+require python-pycrypto.inc
+
+# We explicitly call distutils_do_install, since we want it to run, but
+# *don't* want the autotools install to run, since this package doesn't
+# provide a "make install" target.
+do_install() {
+ distutils3_do_install
+}
--
2.14.1
More information about the Openembedded-devel
mailing list