Patchwork [0/2] createrepo 0.4.11: create wrapper for python script

login
register
mail settings
Submitter Robert Yang
Date Aug. 1, 2012, 9:14 a.m.
Message ID <cover.1343811985.git.liezhi.yang@windriver.com>
Download mbox
Permalink /patch/33489/
State New
Headers show

Pull-request

git://git.pokylinux.org/poky-contrib robert/createrepo

Comments

Robert Yang - Aug. 1, 2012, 9:14 a.m.
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 4f31d21bcb1c8c744e9abb33248715afe4a40af0:

  lib/oe/lsb.py: Map unknown distributions to 'Unknown' (2012-07-31 08:02:11 +0100)

are available in the git repository at:
  git://git.pokylinux.org/poky-contrib robert/createrepo
  http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=robert/createrepo

Robert Yang (2):
  createrepo 0.4.11: add rpm-createsolvedb.py
  createrepo 0.4.11: create wrapper for python script

 meta/classes/rootfs_rpm.bbclass                    |    2 +-
 .../createrepo/createrepo}/rpm-createsolvedb.py    |    0
 .../createrepo/createrepo_0.4.11.bb                |   17 ++++++++++++++++-
 3 files changed, 17 insertions(+), 2 deletions(-)
 rename {scripts => meta/recipes-support/createrepo/createrepo}/rpm-createsolvedb.py (100%)
Richard Purdie - Aug. 1, 2012, 10:03 p.m.
On Wed, 2012-08-01 at 17:14 +0800, Robert Yang wrote:
> 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 4f31d21bcb1c8c744e9abb33248715afe4a40af0:
> 
>   lib/oe/lsb.py: Map unknown distributions to 'Unknown' (2012-07-31 08:02:11 +0100)
> 
> are available in the git repository at:
>   git://git.pokylinux.org/poky-contrib robert/createrepo
>   http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=robert/createrepo
> 
> Robert Yang (2):
>   createrepo 0.4.11: add rpm-createsolvedb.py
>   createrepo 0.4.11: create wrapper for python script

Merged to master, thanks.

Richard
Khem Raj - Aug. 3, 2012, 11:10 a.m.
On Wed, Aug 1, 2012 at 2:14 AM, Robert Yang <liezhi.yang@windriver.com> wrote:
> 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
>

this series has problem I think now bitbake meta-toolchain fails for me

run.populate_sdk_image.6792: line 610: rpm-createsolvedb.py: command not found

did you try bitbake meta-toolchain target from scratch with this change ?



> // Robert
>
> The following changes since commit 4f31d21bcb1c8c744e9abb33248715afe4a40af0:
>
>   lib/oe/lsb.py: Map unknown distributions to 'Unknown' (2012-07-31 08:02:11 +0100)
>
> are available in the git repository at:
>   git://git.pokylinux.org/poky-contrib robert/createrepo
>   http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=robert/createrepo
>
> Robert Yang (2):
>   createrepo 0.4.11: add rpm-createsolvedb.py
>   createrepo 0.4.11: create wrapper for python script
>
>  meta/classes/rootfs_rpm.bbclass                    |    2 +-
>  .../createrepo/createrepo}/rpm-createsolvedb.py    |    0
>  .../createrepo/createrepo_0.4.11.bb                |   17 ++++++++++++++++-
>  3 files changed, 17 insertions(+), 2 deletions(-)
>  rename {scripts => meta/recipes-support/createrepo/createrepo}/rpm-createsolvedb.py (100%)
>
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
Robert Yang - Aug. 4, 2012, 7:04 a.m.
On 08/03/2012 07:10 PM, Khem Raj wrote:
> On Wed, Aug 1, 2012 at 2:14 AM, Robert Yang <liezhi.yang@windriver.com> wrote:
>> 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
>>
>
> this series has problem I think now bitbake meta-toolchain fails for me
>
> run.populate_sdk_image.6792: line 610: rpm-createsolvedb.py: command not found
>
> did you try bitbake meta-toolchain target from scratch with this change ?
>

Hi Khem,

I'm sorry for this, this is because I hadn't fixed the depends of
populate_sdk_image, "bitbake createrepo-native" firstly can be a workaround,
I will send a official fix sooner.

// Robert

>
>
>> // Robert
>>
>> The following changes since commit 4f31d21bcb1c8c744e9abb33248715afe4a40af0:
>>
>>    lib/oe/lsb.py: Map unknown distributions to 'Unknown' (2012-07-31 08:02:11 +0100)
>>
>> are available in the git repository at:
>>    git://git.pokylinux.org/poky-contrib robert/createrepo
>>    http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=robert/createrepo
>>
>> Robert Yang (2):
>>    createrepo 0.4.11: add rpm-createsolvedb.py
>>    createrepo 0.4.11: create wrapper for python script
>>
>>   meta/classes/rootfs_rpm.bbclass                    |    2 +-
>>   .../createrepo/createrepo}/rpm-createsolvedb.py    |    0
>>   .../createrepo/createrepo_0.4.11.bb                |   17 ++++++++++++++++-
>>   3 files changed, 17 insertions(+), 2 deletions(-)
>>   rename {scripts => meta/recipes-support/createrepo/createrepo}/rpm-createsolvedb.py (100%)
>>
>>
>> _______________________________________________
>> 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
>
>
Robert Yang - Aug. 4, 2012, 7:08 a.m.
Hi Khem,

I just noticed that you had sent a pull request for it, thank you very much:-)

// Robert

On 08/04/2012 03:04 PM, Robert Yang wrote:
>
>
> On 08/03/2012 07:10 PM, Khem Raj wrote:
>> On Wed, Aug 1, 2012 at 2:14 AM, Robert Yang <liezhi.yang@windriver.com> wrote:
>>> 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
>>>
>>
>> this series has problem I think now bitbake meta-toolchain fails for me
>>
>> run.populate_sdk_image.6792: line 610: rpm-createsolvedb.py: command not found
>>
>> did you try bitbake meta-toolchain target from scratch with this change ?
>>
>
> Hi Khem,
>
> I'm sorry for this, this is because I hadn't fixed the depends of
> populate_sdk_image, "bitbake createrepo-native" firstly can be a workaround,
> I will send a official fix sooner.
>
> // Robert
>
>>
>>
>>> // Robert
>>>
>>> The following changes since commit 4f31d21bcb1c8c744e9abb33248715afe4a40af0:
>>>
>>>    lib/oe/lsb.py: Map unknown distributions to 'Unknown' (2012-07-31 08:02:11
>>> +0100)
>>>
>>> are available in the git repository at:
>>>    git://git.pokylinux.org/poky-contrib robert/createrepo
>>>    http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=robert/createrepo
>>>
>>> Robert Yang (2):
>>>    createrepo 0.4.11: add rpm-createsolvedb.py
>>>    createrepo 0.4.11: create wrapper for python script
>>>
>>>   meta/classes/rootfs_rpm.bbclass                    |    2 +-
>>>   .../createrepo/createrepo}/rpm-createsolvedb.py    |    0
>>>   .../createrepo/createrepo_0.4.11.bb                |   17 ++++++++++++++++-
>>>   3 files changed, 17 insertions(+), 2 deletions(-)
>>>   rename {scripts =>
>>> meta/recipes-support/createrepo/createrepo}/rpm-createsolvedb.py (100%)
>>>
>>>
>>> _______________________________________________
>>> 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
>>
>>
>