[OE-core] [PATCH 5/8] python: fix install when libdir is not "lib"

Martin Jansa martin.jansa at gmail.com
Thu Mar 15 07:19:01 UTC 2012


On Wed, Mar 14, 2012 at 07:02:14PM -0700, nitin.a.kamble at intel.com wrote:
> From: Nitin A Kamble <nitin.a.kamble at intel.com>
> 
> This commit fixes python's install issue of not finding the
> native pythong binray modules.
> 
> Signed-off-by: Nitin A Kamble <nitin.a.kamble at intel.com>
> ---
>  .../python/fix_for_using_different_libdir.patch    |   78 ++++++++++++++++++++
>  meta/recipes-devtools/python/python_2.7.2.bb       |    3 +-
>  2 files changed, 80 insertions(+), 1 deletions(-)
>  create mode 100644 meta/recipes-devtools/python/python/fix_for_using_different_libdir.patch
> 
> diff --git a/meta/recipes-devtools/python/python_2.7.2.bb b/meta/recipes-devtools/python/python_2.7.2.bb
> index d2100be..412b294 100644
> --- a/meta/recipes-devtools/python/python_2.7.2.bb
> +++ b/meta/recipes-devtools/python/python_2.7.2.bb
> @@ -20,7 +20,7 @@ SRC_URI += "\
>    file://setup_py_skip_cross_import_check.patch \
>    file://add-md5module-support.patch \
>    file://host_include_contamination.patch \
> -  file://sys_platform_is_now_always_linux2.patch \
> +  file://fix_for_using_different_libdir.patch \

^ really?

>  "
>  
>  S = "${WORKDIR}/Python-${PV}"
> @@ -99,6 +99,7 @@ do_install() {
>  	
>  	oe_runmake HOSTPGEN=${STAGING_BINDIR_NATIVE}/pgen \
>  		HOSTPYTHON=${STAGING_BINDIR_NATIVE}/python \
> +		CROSSPYTHONPATH=${STAGING_LIBDIR_NATIVE}/python${PYTHON_MAJMIN}/lib-dynload/ \
>  		STAGING_LIBDIR=${STAGING_LIBDIR} \
>  		STAGING_INCDIR=${STAGING_INCDIR} \
>  		BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20120315/cb6618e2/attachment-0002.sig>


More information about the Openembedded-core mailing list