diff options
| author | Bruce Ashfield <bruce.ashfield@windriver.com> | 2013-09-06 16:33:13 -0400 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2013-09-06 18:00:08 -0400 |
| commit | 4d830901c31baf8b507ebd38aa9f226c7148d2b1 (patch) | |
| tree | ff30644e6256a6d1f0f4053cb4d45adb4be28c76 /meta-openstack/recipes-devtools/python/python-pycrypto_2.6.bb | |
| parent | 50e7cbe258d16cef353f09f9c74d918a57ff06be (diff) | |
| download | meta-cloud-services-4d830901c31baf8b507ebd38aa9f226c7148d2b1.tar.gz | |
pycrypto: fix QA errors and configure fail
Two fixes in this change, one is to clearly set capabilities and
trigger configure, to avoid build and configuration issues.
The second is to workaround an autoconf bug by exporting: ac_cv_func_malloc_0_nonnull=yes
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-pycrypto_2.6.bb')
| -rw-r--r-- | meta-openstack/recipes-devtools/python/python-pycrypto_2.6.bb | 32 |
1 files changed, 31 insertions, 1 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-pycrypto_2.6.bb b/meta-openstack/recipes-devtools/python/python-pycrypto_2.6.bb index 416dee8..9972d2d 100644 --- a/meta-openstack/recipes-devtools/python/python-pycrypto_2.6.bb +++ b/meta-openstack/recipes-devtools/python/python-pycrypto_2.6.bb | |||
| @@ -15,7 +15,37 @@ SRC_URI[sha256sum] = "7293c9d7e8af2e44a82f86eb9c3b058880f4bcc884bf3ad6c8a34b6498 | |||
| 15 | 15 | ||
| 16 | S = "${WORKDIR}/${SRCNAME}-${PV}" | 16 | S = "${WORKDIR}/${SRCNAME}-${PV}" |
| 17 | 17 | ||
| 18 | inherit distutils | ||
| 19 | |||
| 20 | export STAGING_INCDIR | ||
| 21 | export STAGING_LIBDIR | ||
| 18 | export BUILD_SYS | 22 | export BUILD_SYS |
| 19 | export HOST_SYS | 23 | export HOST_SYS |
| 20 | 24 | ||
| 21 | inherit distutils | 25 | CONFIGUREOPTS = "--build=${BUILD_SYS} \ |
| 26 | --host=${HOST_SYS} \ | ||
| 27 | --target=${TARGET_SYS} \ | ||
| 28 | --prefix=${prefix} \ | ||
| 29 | --exec_prefix=${exec_prefix} \ | ||
| 30 | --bindir=${bindir} \ | ||
| 31 | --sbindir=${sbindir} \ | ||
| 32 | --libexecdir=${libexecdir} \ | ||
| 33 | --datadir=${datadir} \ | ||
| 34 | --sysconfdir=${sysconfdir} \ | ||
| 35 | --sharedstatedir=${sharedstatedir} \ | ||
| 36 | --localstatedir=${localstatedir} \ | ||
| 37 | --libdir=${libdir} \ | ||
| 38 | --includedir=${includedir} \ | ||
| 39 | --oldincludedir=${oldincludedir} \ | ||
| 40 | --infodir=${infodir} \ | ||
| 41 | --mandir=${mandir} \ | ||
| 42 | --disable-silent-rules \ | ||
| 43 | --with-libtool-sysroot=${STAGING_DIR_HOST}" | ||
| 44 | |||
| 45 | do_configure () { | ||
| 46 | # Workaround autoconf bug | ||
| 47 | export ac_cv_func_malloc_0_nonnull=yes | ||
| 48 | |||
| 49 | ./configure ${CONFIGUREOPTS} | ||
| 50 | } | ||
| 51 | |||
