| Submitter | Saul Wold |
|---|---|
| Date | Sept. 8, 2011, 7:18 a.m. |
| Message ID | <fc7bc3e00722ddc9c5ae1b4c7866cf5cd313538c.1315466194.git.sgw@linux.intel.com> |
| Download | mbox | patch |
| Permalink | /patch/11227/ |
| State | New, archived |
| Headers | show |
Comments
On Thu, 2011-09-08 at 00:18 -0700, Saul Wold wrote: > Add link for python2 as some configuration tools search from a python2 > and could find the host python instead of the python-native. > > Signed-off-by: Saul Wold <sgw@linux.intel.com> > --- > .../recipes-devtools/python/python-native_2.6.6.bb | 5 ++++- > 1 files changed, 4 insertions(+), 1 deletions(-) Merged to master. Interesting find! Cheers, Richard
Patch
diff --git a/meta/recipes-devtools/python/python-native_2.6.6.bb b/meta/recipes-devtools/python/python-native_2.6.6.bb index 2b00d32..e0a4fb3 100644 --- a/meta/recipes-devtools/python/python-native_2.6.6.bb +++ b/meta/recipes-devtools/python/python-native_2.6.6.bb @@ -1,6 +1,6 @@ require python.inc DEPENDS = "openssl-native bzip2-full-native zlib-native readline-native sqlite3-native" -PR = "${INC_PR}.3" +PR = "${INC_PR}.4" LIC_FILES_CHKSUM = "file://LICENSE;md5=38fdd546420fab09ac6bd3d8a1c83eb6" @@ -42,4 +42,7 @@ do_install() { for PYTHSCRIPT in `grep -rIl ${bindir}/python ${D}${bindir}`; do sed -i -e '1s|^#!.*|#!/usr/bin/env python|' $PYTHSCRIPT done + + ln -sf python ${D}${bindir}/python2 + }
Add link for python2 as some configuration tools search from a python2 and could find the host python instead of the python-native. Signed-off-by: Saul Wold <sgw@linux.intel.com> --- .../recipes-devtools/python/python-native_2.6.6.bb | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-)