Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Martin Jansa <martin.jansa@gmail.com>
To: openembedded-core@lists.openembedded.org
Cc: openembedded-commits@lists.openembedded.org
Subject: Re: [oe-commits] Morgan Little : python: Update for python-native changes
Date: Mon, 23 Jul 2012 13:18:29 +0200	[thread overview]
Message-ID: <20120723111829.GA20311@jama.jama.net> (raw)
In-Reply-To: <20120722104358.0339C10217@opal>

[-- Attachment #1: Type: text/plain, Size: 5650 bytes --]

On Sun, Jul 22, 2012 at 10:43:53AM +0000, git@git.openembedded.org wrote:
> Module: openembedded-core.git
> Branch: master
> Commit: 284a65d55f0ffad0f4f7f32d72da0f9410578643
> URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=284a65d55f0ffad0f4f7f32d72da0f9410578643
> 
> Author: Morgan Little <morgan.little@windriver.com>
> Date:   Thu Jul 19 13:46:07 2012 -0400
> 
> python: Update for python-native changes
> 
> Add pythonnative onto the list of inherits and update the paths to the binaries
> referenced in the recipe to the new paths.
> 
> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
> 

Any idea why is opkg package-index now failing _sometimes_ ?

| + '[' -e /var/lib/jenkins/jobs/shr-core/workspace/shr-core/tmp-eglibc/deploy/ipk/ ']'
| + touch /var/lib/jenkins/jobs/shr-core/workspace/shr-core/tmp-eglibc/deploy/ipk/Packages
| + flock /var/lib/jenkins/jobs/shr-core/workspace/shr-core/tmp-eglibc/deploy/ipk/Packages.flock -c 'opkg-make-index -r /var/lib/jenkins/jobs/shr-core/workspace/shr-core/tmp-eglibc/deploy/ipk/Packages -p /var/lib/jenkins/jobs/shr-core/workspace/shr-core/tmp-eglibc/deploy/ipk/Packages -m /var/lib/jenkins/jobs/shr-core/workspace/shr-core/tmp-eglibc/deploy/ipk/'
| Traceback (most recent call last):
|   File "/var/lib/jenkins/jobs/shr-core/workspace/shr-core/tmp-eglibc/sysroots/x86_64-linux/usr/lib/python2.7/site.py", line 569, in <module>
|     main()
|   File "/var/lib/jenkins/jobs/shr-core/workspace/shr-core/tmp-eglibc/sysroots/x86_64-linux/usr/lib/python2.7/site.py", line 552, in main
|     known_paths = addsitepackages(known_paths)
|   File "/var/lib/jenkins/jobs/shr-core/workspace/shr-core/tmp-eglibc/sysroots/x86_64-linux/usr/lib/python2.7/site.py", line 329, in addsitepackages
|     for sitedir in getsitepackages():
|   File "/var/lib/jenkins/jobs/shr-core/workspace/shr-core/tmp-eglibc/sysroots/x86_64-linux/usr/lib/python2.7/site.py", line 303, in getsitepackages
|     sitepackages.append(os.path.join(prefix, sys.lib,
| AttributeError: 'module' object has no attribute 'lib'
| ERROR: Function failed: do_package_index (see /var/lib/jenkins/jobs/shr-core/workspace/shr-core/tmp-eglibc/work/armv4t-oe-linux-gnueabi/package-index-1.0-r0/temp/log.do_package_index.17223 for further information)
NOTE: package package-index-1.0-r0: task do_package_index: Failed

Cheers,

> ---
> 
>  meta/recipes-devtools/python/python_2.7.3.bb |   18 +++++++++---------
>  1 files changed, 9 insertions(+), 9 deletions(-)
> 
> diff --git a/meta/recipes-devtools/python/python_2.7.3.bb b/meta/recipes-devtools/python/python_2.7.3.bb
> index b736cc2..d27ff05 100644
> --- a/meta/recipes-devtools/python/python_2.7.3.bb
> +++ b/meta/recipes-devtools/python/python_2.7.3.bb
> @@ -1,6 +1,6 @@
>  require python.inc
>  DEPENDS = "python-native bzip2 db gdbm openssl readline sqlite3 zlib"
> -PR = "${INC_PR}.0"
> +PR = "${INC_PR}.1"
>  
>  DISTRO_SRC_URI ?= "file://sitecustomize.py"
>  DISTRO_SRC_URI_linuxstdbase = ""
> @@ -30,7 +30,7 @@ SRC_URI += "\
>  
>  S = "${WORKDIR}/Python-${PV}"
>  
> -inherit autotools multilib_header
> +inherit autotools multilib_header pythonnative
>  
>  # The 3 lines below are copied from the libffi recipe, ctypes ships its own copy of the libffi sources
>  #Somehow gcc doesn't set __SOFTFP__ when passing -mfloatabi=softp :(
> @@ -45,7 +45,7 @@ do_configure_prepend() {
>  do_compile() {
>          # regenerate platform specific files, because they depend on system headers
>          cd Lib/plat-linux2
> -        include=${STAGING_INCDIR} ${STAGING_BINDIR_NATIVE}/python \
> +        include=${STAGING_INCDIR} ${STAGING_BINDIR_NATIVE}/python-native/python \
>                  ${S}/Tools/scripts/h2py.py -i '(u_long)' \
>                  ${STAGING_INCDIR}/dlfcn.h \
>                  ${STAGING_INCDIR}/linux/cdrom.h \
> @@ -89,8 +89,8 @@ do_compile() {
>  
>  	export CROSS_COMPILE="${TARGET_PREFIX}"
>  
> -	oe_runmake HOSTPGEN=${STAGING_BINDIR_NATIVE}/pgen \
> -		HOSTPYTHON=${STAGING_BINDIR_NATIVE}/python \
> +	oe_runmake HOSTPGEN=${STAGING_BINDIR_NATIVE}/python-native/pgen \
> +		HOSTPYTHON=${STAGING_BINDIR_NATIVE}/python-native/python \
>  		STAGING_LIBDIR=${STAGING_LIBDIR} \
>  		STAGING_BASELIBDIR=${STAGING_BASELIBDIR} \
>  		STAGING_INCDIR=${STAGING_INCDIR} \
> @@ -99,8 +99,8 @@ do_compile() {
>  
>  	oe_libinstall -so libpython${PYTHON_MAJMIN} ${STAGING_LIBDIR}
>  
> -	oe_runmake HOSTPGEN=${STAGING_BINDIR_NATIVE}/pgen \
> -		HOSTPYTHON=${STAGING_BINDIR_NATIVE}/python \
> +	oe_runmake HOSTPGEN=${STAGING_BINDIR_NATIVE}/python-native/pgen \
> +		HOSTPYTHON=${STAGING_BINDIR_NATIVE}/python-native/python \
>  		STAGING_LIBDIR=${STAGING_LIBDIR} \
>  		STAGING_INCDIR=${STAGING_INCDIR} \
>  		STAGING_BASELIBDIR=${STAGING_BASELIBDIR} \
> @@ -115,8 +115,8 @@ do_install() {
>  
>  	export CROSS_COMPILE="${TARGET_PREFIX}"
>  	
> -	oe_runmake HOSTPGEN=${STAGING_BINDIR_NATIVE}/pgen \
> -		HOSTPYTHON=${STAGING_BINDIR_NATIVE}/python \
> +	oe_runmake HOSTPGEN=${STAGING_BINDIR_NATIVE}/python-native/pgen \
> +		HOSTPYTHON=${STAGING_BINDIR_NATIVE}/python-native/python \
>  		CROSSPYTHONPATH=${STAGING_LIBDIR_NATIVE}/python${PYTHON_MAJMIN}/lib-dynload/ \
>  		STAGING_LIBDIR=${STAGING_LIBDIR} \
>  		STAGING_INCDIR=${STAGING_INCDIR} \
> 
> 
> _______________________________________________
> Openembedded-commits mailing list
> Openembedded-commits@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-commits

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]

       reply	other threads:[~2012-07-23 11:29 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20120722104358.0339C10217@opal>
2012-07-23 11:18 ` Martin Jansa [this message]
2012-07-23 11:32   ` [oe-commits] Morgan Little : python: Update for python-native changes Richard Purdie
2012-07-23 11:37     ` Martin Jansa
2012-07-23 13:02       ` Richard Purdie
2012-07-23 13:06         ` Martin Jansa
2012-07-24  7:57           ` Martin Jansa
2012-07-24  8:17             ` Richard Purdie
2012-07-24  8:25               ` Martin Jansa
2012-08-05 10:24       ` [PATCH] opkg-utils: inherit pythonnative Martin Jansa
2012-08-06  9:30         ` Martin Jansa
2012-07-29 12:50   ` [oe-commits] Morgan Little : python: Update for python-native changes Martin Jansa
2012-07-29 16:25     ` Richard Purdie

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120723111829.GA20311@jama.jama.net \
    --to=martin.jansa@gmail.com \
    --cc=openembedded-commits@lists.openembedded.org \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox