Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 0/1] populate_sdk_rpm: add python to nativesdk INSTALL_PROVIDESNAME_RPM list
@ 2013-10-11 10:06 wenzong.fan
  2013-10-11 10:06 ` [PATCH 1/1] " wenzong.fan
  2013-10-16 21:26 ` [PATCH 0/1] " Saul Wold
  0 siblings, 2 replies; 3+ messages in thread
From: wenzong.fan @ 2013-10-11 10:06 UTC (permalink / raw)
  To: openembedded-core

From: Wenzong Fan <wenzong.fan@windriver.com>

If any native SDK packages involve python scripts that start with
'#!/usr/bin/python', then the populate_sdk step will fail with:

    error: Can't install nativesdk-xxx-$ver@x86_64_nativesdk: \
    no package provides /usr/bin/python

Just like perl, we also need to add python to INSTALL_PROVIDESNAME_RPM
list to fix this issue.

The following changes since commit 102bf5e0f640fe85068452a42b85077f1c81e0c9:

  build-appliance: Update SRCREV for release (2013-10-08 16:33:43 +0100)

are available in the git repository at:

  git://git.pokylinux.org/poky-contrib wenzong/nativesdk-ignore-python
  http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=wenzong/nativesdk-ignore-python

Wenzong Fan (1):
  populate_sdk_rpm: add python to nativesdk INSTALL_PROVIDESNAME_RPM
    list

 meta/classes/populate_sdk_rpm.bbclass |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
1.7.9.5



^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 1/1] populate_sdk_rpm: add python to nativesdk INSTALL_PROVIDESNAME_RPM list
  2013-10-11 10:06 [PATCH 0/1] populate_sdk_rpm: add python to nativesdk INSTALL_PROVIDESNAME_RPM list wenzong.fan
@ 2013-10-11 10:06 ` wenzong.fan
  2013-10-16 21:26 ` [PATCH 0/1] " Saul Wold
  1 sibling, 0 replies; 3+ messages in thread
From: wenzong.fan @ 2013-10-11 10:06 UTC (permalink / raw)
  To: openembedded-core

From: Wenzong Fan <wenzong.fan@windriver.com>

Add '/usr/bin/python' to rpm ignore list for fixing native SDK packages
installation error:

* error: Can't install nativesdk-xxx-$ver@x86_64_nativesdk: \
    no package provides /usr/bin/python

Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
---
 meta/classes/populate_sdk_rpm.bbclass |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes/populate_sdk_rpm.bbclass b/meta/classes/populate_sdk_rpm.bbclass
index b010593..1e64552 100644
--- a/meta/classes/populate_sdk_rpm.bbclass
+++ b/meta/classes/populate_sdk_rpm.bbclass
@@ -100,7 +100,7 @@ populate_sdk_rpm () {
 	export INSTALL_PACKAGES_RPM="${TOOLCHAIN_HOST_TASK}"
 	export INSTALL_PACKAGES_ATTEMPTONLY_RPM="$(echo '${TOOLCHAIN_HOST_TASK_ATTEMPTONLY}' | sed 's/ *$//g')"
 	export INSTALL_PACKAGES_LINGUAS_RPM=""
-	export INSTALL_PROVIDENAME_RPM="/bin/sh /bin/bash /usr/bin/env /usr/bin/perl pkgconfig libGL.so()(64bit) libGL.so"
+	export INSTALL_PROVIDENAME_RPM="/bin/sh /bin/bash /usr/bin/env /usr/bin/perl /usr/bin/python pkgconfig libGL.so()(64bit) libGL.so"
 	export INSTALL_TASK_RPM="populate_sdk_rpm-nativesdk"
 	export INSTALL_COMPLEMENTARY_RPM=""
 
-- 
1.7.9.5



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH 0/1] populate_sdk_rpm: add python to nativesdk INSTALL_PROVIDESNAME_RPM list
  2013-10-11 10:06 [PATCH 0/1] populate_sdk_rpm: add python to nativesdk INSTALL_PROVIDESNAME_RPM list wenzong.fan
  2013-10-11 10:06 ` [PATCH 1/1] " wenzong.fan
@ 2013-10-16 21:26 ` Saul Wold
  1 sibling, 0 replies; 3+ messages in thread
From: Saul Wold @ 2013-10-16 21:26 UTC (permalink / raw)
  To: wenzong.fan; +Cc: openembedded-core

On 10/11/2013 03:06 AM, wenzong.fan@windriver.com wrote:
> From: Wenzong Fan <wenzong.fan@windriver.com>
>
> If any native SDK packages involve python scripts that start with
> '#!/usr/bin/python', then the populate_sdk step will fail with:
>
>      error: Can't install nativesdk-xxx-$ver@x86_64_nativesdk: \
>      no package provides /usr/bin/python
>
There is a different problem, these should be using /usr/bin/env python 
not /usr/bin/python.  Since the nativesdk ships with a python binary to 
ensure that we have a correct and known version of python to work with.

What every is getting packaged with /usr/bin/python needs to be fixed.

> Just like perl, we also need to add python to INSTALL_PROVIDESNAME_RPM
> list to fix this issue.
>
perl is different, we don't care so much about perl's version as we do 
with python, perl is more forgiving.

> The following changes since commit 102bf5e0f640fe85068452a42b85077f1c81e0c9:
>
>    build-appliance: Update SRCREV for release (2013-10-08 16:33:43 +0100)
>
> are available in the git repository at:
>
>    git://git.pokylinux.org/poky-contrib wenzong/nativesdk-ignore-python
>    http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=wenzong/nativesdk-ignore-python
>
> Wenzong Fan (1):
>    populate_sdk_rpm: add python to nativesdk INSTALL_PROVIDESNAME_RPM
>      list
>
>   meta/classes/populate_sdk_rpm.bbclass |    2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-10-16 21:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-11 10:06 [PATCH 0/1] populate_sdk_rpm: add python to nativesdk INSTALL_PROVIDESNAME_RPM list wenzong.fan
2013-10-11 10:06 ` [PATCH 1/1] " wenzong.fan
2013-10-16 21:26 ` [PATCH 0/1] " Saul Wold

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox