* [PATCH 0/1] package-index: inherit pythonnative
@ 2012-07-24 10:19 Robert Yang
2012-07-24 10:19 ` [PATCH 1/1] " Robert Yang
0 siblings, 1 reply; 10+ messages in thread
From: Robert Yang @ 2012-07-24 10:19 UTC (permalink / raw)
To: openembedded-core; +Cc: Zhenfeng.Zhao
This is used for fixing the rpm-createsolvedb.py error:
'import site' failed; use -v for traceback
Traceback (most recent call last):
File "/srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly/build/scripts/rpm-createsolvedb.py", line 14, in
import sys, os
ImportError: No module named os
// Robert
The following changes since commit 0ffb02eec2beaea27ff0ec9d3d31b0a09e675a4c:
documentation: Updated the h6 style to use a larger font (2012-07-24 10:35:34 +0100)
are available in the git repository at:
git://git.pokylinux.org/poky-contrib robert/package_index
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=robert/package_index
Robert Yang (1):
package-index: inherit pythonnative
meta/recipes-core/meta/package-index.bb | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 1/1] package-index: inherit pythonnative
2012-07-24 10:19 [PATCH 0/1] package-index: inherit pythonnative Robert Yang
@ 2012-07-24 10:19 ` Robert Yang
2012-07-24 10:49 ` Richard Purdie
0 siblings, 1 reply; 10+ messages in thread
From: Robert Yang @ 2012-07-24 10:19 UTC (permalink / raw)
To: openembedded-core; +Cc: Zhenfeng.Zhao
The native python binary has been moved from usr/bin/python to
usr/bin/python-native/python, the recipe which needs python-native
should "inherit pythonnative", otherwise there would be errors when the
python script runs.
[YOCTO #2822]
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
---
meta/recipes-core/meta/package-index.bb | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/meta/recipes-core/meta/package-index.bb b/meta/recipes-core/meta/package-index.bb
index 96d54e3..3d7bb7e 100644
--- a/meta/recipes-core/meta/package-index.bb
+++ b/meta/recipes-core/meta/package-index.bb
@@ -1,6 +1,8 @@
DESCRIPTION = "Rebuild the package index"
LICENSE = "MIT"
+inherit pythonnative
+
INHIBIT_DEFAULT_DEPS = "1"
ALLOW_EMPTY = "1"
PACKAGES = ""
--
1.7.1
^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [PATCH 1/1] package-index: inherit pythonnative
2012-07-24 10:19 ` [PATCH 1/1] " Robert Yang
@ 2012-07-24 10:49 ` Richard Purdie
2012-07-25 3:31 ` Robert Yang
` (2 more replies)
0 siblings, 3 replies; 10+ messages in thread
From: Richard Purdie @ 2012-07-24 10:49 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer; +Cc: Zhenfeng.Zhao
On Tue, 2012-07-24 at 18:19 +0800, Robert Yang wrote:
> The native python binary has been moved from usr/bin/python to
> usr/bin/python-native/python, the recipe which needs python-native
> should "inherit pythonnative", otherwise there would be errors when the
> python script runs.
>
> [YOCTO #2822]
>
> Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
> ---
> meta/recipes-core/meta/package-index.bb | 2 ++
> 1 files changed, 2 insertions(+), 0 deletions(-)
Which part of this recipe needs python-native? Shouldn't scripts which
need pythonnative be using the path to the python interpreter
explicitly?
Cheers,
Richard
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 1/1] package-index: inherit pythonnative
2012-07-24 10:49 ` Richard Purdie
@ 2012-07-25 3:31 ` Robert Yang
2012-07-27 1:18 ` Robert Yang
2012-08-06 9:29 ` Martin Jansa
2 siblings, 0 replies; 10+ messages in thread
From: Robert Yang @ 2012-07-25 3:31 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer; +Cc: Zhenfeng.Zhao
On 07/24/2012 06:49 PM, Richard Purdie wrote:
> On Tue, 2012-07-24 at 18:19 +0800, Robert Yang wrote:
>> The native python binary has been moved from usr/bin/python to
>> usr/bin/python-native/python, the recipe which needs python-native
>> should "inherit pythonnative", otherwise there would be errors when the
>> python script runs.
>>
>> [YOCTO #2822]
>>
>> Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
>> ---
>> meta/recipes-core/meta/package-index.bb | 2 ++
>> 1 files changed, 2 insertions(+), 0 deletions(-)
>
> Which part of this recipe needs python-native? Shouldn't scripts which
> need pythonnative be using the path to the python interpreter
> explicitly?
>
It is the poky/scripts/rpm-createsolvedb.py which needs python-native,
I think that if we want to use /path/to/python-native/python to run
rpm-createsolvedb.py or create a wrapper for it, we should put the
rpm-createsolvedb.py into a recipe. So I just inherit pythonnative
in package-index.bb to make it work. I wonder whether this will cause
something wrong, please?
// Robert
> Cheers,
>
> Richard
>
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 1/1] package-index: inherit pythonnative
2012-07-24 10:49 ` Richard Purdie
2012-07-25 3:31 ` Robert Yang
@ 2012-07-27 1:18 ` Robert Yang
2012-07-27 10:32 ` Robert Yang
2012-08-06 9:29 ` Martin Jansa
2 siblings, 1 reply; 10+ messages in thread
From: Robert Yang @ 2012-07-27 1:18 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer; +Cc: Zhenfeng.Zhao
Hi Richard,
There was something wrong with my mail sever, I resend the answer now.
On 07/24/2012 06:49 PM, Richard Purdie wrote:
> On Tue, 2012-07-24 at 18:19 +0800, Robert Yang wrote:
>> The native python binary has been moved from usr/bin/python to
>> usr/bin/python-native/python, the recipe which needs python-native
>> should "inherit pythonnative", otherwise there would be errors when the
>> python script runs.
>>
>> [YOCTO #2822]
>>
>> Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
>> ---
>> meta/recipes-core/meta/package-index.bb | 2 ++
>> 1 files changed, 2 insertions(+), 0 deletions(-)
>
> Which part of this recipe needs python-native? Shouldn't scripts which
> need pythonnative be using the path to the python interpreter
> explicitly?
>
It is the poky/scripts/rpm-createsolvedb.py which needs python-native,
I think that if we want to use /path/to/python-native/python to run
rpm-createsolvedb.py or create a wrapper for it, we should put the
rpm-createsolvedb.py into a recipe. So I just inherit pythonnative
in package-index.bb to make it work. I wonder whether this will cause
something wrong, please?
// Robert
> Cheers,
>
> Richard
>
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 1/1] package-index: inherit pythonnative
2012-07-27 1:18 ` Robert Yang
@ 2012-07-27 10:32 ` Robert Yang
0 siblings, 0 replies; 10+ messages in thread
From: Robert Yang @ 2012-07-27 10:32 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer; +Cc: Zhenfeng.Zhao
After talk with Richard, we'd better move the scripts/rpm-createsolvedb.py to
meta/recipes-support/createrepo/createrepo_0.4.11.bb, I will send an update
sooner, the current fix can be a workaround.
// Robert
On 07/27/2012 09:18 AM, Robert Yang wrote:
>
> Hi Richard,
>
> There was something wrong with my mail sever, I resend the answer now.
>
> On 07/24/2012 06:49 PM, Richard Purdie wrote:
>> On Tue, 2012-07-24 at 18:19 +0800, Robert Yang wrote:
>>> The native python binary has been moved from usr/bin/python to
>>> usr/bin/python-native/python, the recipe which needs python-native
>>> should "inherit pythonnative", otherwise there would be errors when the
>>> python script runs.
>>>
>>> [YOCTO #2822]
>>>
>>> Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
>>> ---
>>> meta/recipes-core/meta/package-index.bb | 2 ++
>>> 1 files changed, 2 insertions(+), 0 deletions(-)
>>
>> Which part of this recipe needs python-native? Shouldn't scripts which
>> need pythonnative be using the path to the python interpreter
>> explicitly?
>>
>
> It is the poky/scripts/rpm-createsolvedb.py which needs python-native,
> I think that if we want to use /path/to/python-native/python to run
> rpm-createsolvedb.py or create a wrapper for it, we should put the
> rpm-createsolvedb.py into a recipe. So I just inherit pythonnative
> in package-index.bb to make it work. I wonder whether this will cause
> something wrong, please?
>
> // Robert
>
>
>> Cheers,
>>
>> Richard
>>
>>
>> _______________________________________________
>> Openembedded-core mailing list
>> Openembedded-core@lists.openembedded.org
>> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>>
>>
>
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 1/1] package-index: inherit pythonnative
2012-07-24 10:49 ` Richard Purdie
2012-07-25 3:31 ` Robert Yang
2012-07-27 1:18 ` Robert Yang
@ 2012-08-06 9:29 ` Martin Jansa
2012-08-07 16:57 ` Richard Purdie
2 siblings, 1 reply; 10+ messages in thread
From: Martin Jansa @ 2012-08-06 9:29 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer; +Cc: Zhenfeng.Zhao
[-- Attachment #1: Type: text/plain, Size: 1760 bytes --]
On Tue, Jul 24, 2012 at 11:49:52AM +0100, Richard Purdie wrote:
> On Tue, 2012-07-24 at 18:19 +0800, Robert Yang wrote:
> > The native python binary has been moved from usr/bin/python to
> > usr/bin/python-native/python, the recipe which needs python-native
> > should "inherit pythonnative", otherwise there would be errors when the
> > python script runs.
> >
> > [YOCTO #2822]
> >
> > Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
> > ---
> > meta/recipes-core/meta/package-index.bb | 2 ++
> > 1 files changed, 2 insertions(+), 0 deletions(-)
>
> Which part of this recipe needs python-native? Shouldn't scripts which
> need pythonnative be using the path to the python interpreter
> explicitly?
This fixes my opkg-utils related issues too
http://lists.linuxtogo.org/pipermail/openembedded-core/2012-July/026333.html
The problem is that with pythonnative in opkg-utils it's still using
#!/usr/bin/env python
in tmp-eglibc/sysroots/x86_64-linux/usr/bin/opkg-make-index
And when python-index executes this:
| + [ -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):
It depends on PATH of package-index not opkg-utils.
Cheers,
--
Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 1/1] package-index: inherit pythonnative
2012-08-06 9:29 ` Martin Jansa
@ 2012-08-07 16:57 ` Richard Purdie
2012-08-08 7:58 ` Robert Yang
0 siblings, 1 reply; 10+ messages in thread
From: Richard Purdie @ 2012-08-07 16:57 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer; +Cc: Zhenfeng.Zhao
On Mon, 2012-08-06 at 11:29 +0200, Martin Jansa wrote:
> On Tue, Jul 24, 2012 at 11:49:52AM +0100, Richard Purdie wrote:
> > On Tue, 2012-07-24 at 18:19 +0800, Robert Yang wrote:
> > > The native python binary has been moved from usr/bin/python to
> > > usr/bin/python-native/python, the recipe which needs python-native
> > > should "inherit pythonnative", otherwise there would be errors when the
> > > python script runs.
> > >
> > > [YOCTO #2822]
> > >
> > > Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
> > > ---
> > > meta/recipes-core/meta/package-index.bb | 2 ++
> > > 1 files changed, 2 insertions(+), 0 deletions(-)
> >
> > Which part of this recipe needs python-native? Shouldn't scripts which
> > need pythonnative be using the path to the python interpreter
> > explicitly?
>
> This fixes my opkg-utils related issues too
> http://lists.linuxtogo.org/pipermail/openembedded-core/2012-July/026333.html
>
> The problem is that with pythonnative in opkg-utils it's still using
> #!/usr/bin/env python
> in tmp-eglibc/sysroots/x86_64-linux/usr/bin/opkg-make-index
>
> And when python-index executes this:
> | + [ -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):
>
> It depends on PATH of package-index not opkg-utils.
I think the right fix here is to remove the PYTHONPATH line in
package-index.bb. We should no longer need that and that should fix the
problems but its going to be a while before I can test this on a system
showing the problem.
Cheers,
Richard
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 1/1] package-index: inherit pythonnative
2012-08-07 16:57 ` Richard Purdie
@ 2012-08-08 7:58 ` Robert Yang
2012-08-08 8:29 ` Robert Yang
0 siblings, 1 reply; 10+ messages in thread
From: Robert Yang @ 2012-08-08 7:58 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer; +Cc: Zhenfeng.Zhao
On 08/08/2012 12:57 AM, Richard Purdie wrote:
> On Mon, 2012-08-06 at 11:29 +0200, Martin Jansa wrote:
>> On Tue, Jul 24, 2012 at 11:49:52AM +0100, Richard Purdie wrote:
>>> On Tue, 2012-07-24 at 18:19 +0800, Robert Yang wrote:
>>>> The native python binary has been moved from usr/bin/python to
>>>> usr/bin/python-native/python, the recipe which needs python-native
>>>> should "inherit pythonnative", otherwise there would be errors when the
>>>> python script runs.
>>>>
>>>> [YOCTO #2822]
>>>>
>>>> Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
>>>> ---
>>>> meta/recipes-core/meta/package-index.bb | 2 ++
>>>> 1 files changed, 2 insertions(+), 0 deletions(-)
>>>
>>> Which part of this recipe needs python-native? Shouldn't scripts which
>>> need pythonnative be using the path to the python interpreter
>>> explicitly?
>>
>> This fixes my opkg-utils related issues too
>> http://lists.linuxtogo.org/pipermail/openembedded-core/2012-July/026333.html
>>
>> The problem is that with pythonnative in opkg-utils it's still using
>> #!/usr/bin/env python
>> in tmp-eglibc/sysroots/x86_64-linux/usr/bin/opkg-make-index
>>
>> And when python-index executes this:
>> | + [ -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):
>>
>> It depends on PATH of package-index not opkg-utils.
>
> I think the right fix here is to remove the PYTHONPATH line in
> package-index.bb. We should no longer need that and that should fix the
> problems but its going to be a while before I can test this on a system
> showing the problem.
>
Hi Richard
I'd like to remove the PYTHONPATH and started testing package_rpm, package_deb
pacakge_ipk now (meta-toolchain-sdk and core-image-sato), I will send the
the patch if the testing is ok (tomorrow).
// Robert
> Cheers,
>
> Richard
>
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 1/1] package-index: inherit pythonnative
2012-08-08 7:58 ` Robert Yang
@ 2012-08-08 8:29 ` Robert Yang
0 siblings, 0 replies; 10+ messages in thread
From: Robert Yang @ 2012-08-08 8:29 UTC (permalink / raw)
To: Robert Yang
Cc: Zhenfeng.Zhao, Patches and discussions about the oe-core layer
On 08/08/2012 03:58 PM, Robert Yang wrote:
>
>
> On 08/08/2012 12:57 AM, Richard Purdie wrote:
>> On Mon, 2012-08-06 at 11:29 +0200, Martin Jansa wrote:
>>> On Tue, Jul 24, 2012 at 11:49:52AM +0100, Richard Purdie wrote:
>>>> On Tue, 2012-07-24 at 18:19 +0800, Robert Yang wrote:
>>>>> The native python binary has been moved from usr/bin/python to
>>>>> usr/bin/python-native/python, the recipe which needs python-native
>>>>> should "inherit pythonnative", otherwise there would be errors when the
>>>>> python script runs.
>>>>>
>>>>> [YOCTO #2822]
>>>>>
>>>>> Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
>>>>> ---
>>>>> meta/recipes-core/meta/package-index.bb | 2 ++
>>>>> 1 files changed, 2 insertions(+), 0 deletions(-)
>>>>
>>>> Which part of this recipe needs python-native? Shouldn't scripts which
>>>> need pythonnative be using the path to the python interpreter
>>>> explicitly?
>>>
>>> This fixes my opkg-utils related issues too
>>> http://lists.linuxtogo.org/pipermail/openembedded-core/2012-July/026333.html
>>>
>>> The problem is that with pythonnative in opkg-utils it's still using
>>> #!/usr/bin/env python
>>> in tmp-eglibc/sysroots/x86_64-linux/usr/bin/opkg-make-index
>>>
>>> And when python-index executes this:
>>> | + [ -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):
>>>
>>> It depends on PATH of package-index not opkg-utils.
>>
>> I think the right fix here is to remove the PYTHONPATH line in
>> package-index.bb. We should no longer need that and that should fix the
>> problems but its going to be a while before I can test this on a system
>> showing the problem.
>>
>
> Hi Richard
>
> I'd like to remove the PYTHONPATH and started testing package_rpm, package_deb
> pacakge_ipk now (meta-toolchain-sdk and core-image-sato), I will send the
> the patch if the testing is ok (tomorrow).
>
Just noticed that it has been removed after a 'git pull'
// Robert
> // Robert
>
>> Cheers,
>>
>> Richard
>>
>>
>> _______________________________________________
>> Openembedded-core mailing list
>> Openembedded-core@lists.openembedded.org
>> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>>
>>
>
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2012-08-08 8:41 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-24 10:19 [PATCH 0/1] package-index: inherit pythonnative Robert Yang
2012-07-24 10:19 ` [PATCH 1/1] " Robert Yang
2012-07-24 10:49 ` Richard Purdie
2012-07-25 3:31 ` Robert Yang
2012-07-27 1:18 ` Robert Yang
2012-07-27 10:32 ` Robert Yang
2012-08-06 9:29 ` Martin Jansa
2012-08-07 16:57 ` Richard Purdie
2012-08-08 7:58 ` Robert Yang
2012-08-08 8:29 ` Robert Yang
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.