From 421ddd1427972d9e70b24a0e40789a3bdd1ba0e0 Mon Sep 17 00:00:00 2001 From: Mihai Prica Date: Fri, 17 May 2013 17:26:41 +0300 Subject: python-pycrypto: added 2.6 Signed-off-by: Mihai Prica --- .../python/python-pycrypto/cross-compiling.patch | 23 ++++++++++++++++++++++ .../recipes-devtools/python/python-pycrypto_2.6.bb | 21 ++++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 meta-openstack/recipes-devtools/python/python-pycrypto/cross-compiling.patch create mode 100644 meta-openstack/recipes-devtools/python/python-pycrypto_2.6.bb diff --git a/meta-openstack/recipes-devtools/python/python-pycrypto/cross-compiling.patch b/meta-openstack/recipes-devtools/python/python-pycrypto/cross-compiling.patch new file mode 100644 index 0000000..712f3e8 --- /dev/null +++ b/meta-openstack/recipes-devtools/python/python-pycrypto/cross-compiling.patch @@ -0,0 +1,23 @@ +Index: pycrypto-2.6/setup.py +=================================================================== +--- pycrypto-2.6.orig/setup.py ++++ pycrypto-2.6/setup.py +@@ -271,7 +271,8 @@ class PCTBuildConfigure(Command): + if not os.path.exists("config.status"): + if os.system("chmod 0755 configure") != 0: + raise RuntimeError("chmod error") +- cmd = "sh configure" # we use "sh" here so that it'll work on mingw32 with standard python.org binaries ++ host = os.environ.get("HOST_SYS") ++ cmd = "ac_cv_func_malloc_0_nonnull=yes sh configure --host " + host # we use "sh" here so that it'll work on mingw32 with standard python.org binaries + if self.verbose < 1: + cmd += " -q" + if os.system(cmd) != 0: +@@ -370,7 +371,7 @@ kw = {'name':"pycrypto", + 'ext_modules': plat_ext + [ + # _fastmath (uses GNU mp library) + Extension("Crypto.PublicKey._fastmath", +- include_dirs=['src/','/usr/include/'], ++ include_dirs=['src/'], + libraries=['gmp'], + sources=["src/_fastmath.c"]), + diff --git a/meta-openstack/recipes-devtools/python/python-pycrypto_2.6.bb b/meta-openstack/recipes-devtools/python/python-pycrypto_2.6.bb new file mode 100644 index 0000000..6eb32f5 --- /dev/null +++ b/meta-openstack/recipes-devtools/python/python-pycrypto_2.6.bb @@ -0,0 +1,21 @@ +DESCRIPTION = "Cryptographic modules for Python." +HOMEPAGE = "http://www.pycrypto.org/" +SECTION = "devel/python" +LICENSE = "PSFv2" +LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=35f354d199e8cb7667b059a23578e63d" + +PR = "r0" +SRCNAME = "pycrypto" + +SRC_URI = "https://ftp.dlitz.net/pub/dlitz/crypto/pycrypto/${SRCNAME}-${PV}.tar.gz \ + file://cross-compiling.patch" + +SRC_URI[md5sum] = "88dad0a270d1fe83a39e0467a66a22bb" +SRC_URI[sha256sum] = "7293c9d7e8af2e44a82f86eb9c3b058880f4bcc884bf3ad6c8a34b64986edde8" + +S = "${WORKDIR}/${SRCNAME}-${PV}" + +export BUILD_SYS +export HOST_SYS + +inherit distutils -- cgit v1.2.3-54-g00ecf