Re: Supporting upcoming distribution releases
niqingliang
first sorry about that, indeed I don't know how to commit a patch, so
toggle quoted messageShow quoted text
just paste the diff result here. diff --git a/oe-init-build-env b/oe-init-build-env index 77332a7..0da8bc0 100755 --- a/oe-init-build-env +++ b/oe-init-build-env @@ -39,6 +39,20 @@ else $OEROOT/scripts/oe-setup-builddir unset OEROOT unset BBPATH + + # find the python version 2.x + # the 'python -V' need redirect to stdout + # precondition: + # $BUILDDIR is not NULL, but I doubt when it will be NULL. + # user have not made the file $BUILDDIR/python by himself. + for PY_BIN in `find /{usr/,}bin -regex '.*/python\(\|2\|2\.[0-9]* \)'`; do + if [ -n "`$PY_BIN -V 2>&1|grep '^Python 2\.'`" ]; then + ln -sf $PY_BIN $BUILDDIR/python + export PATH="$BUILDDIR:$PATH" + break + fi + done + [ -n "$BUILDDIR" ] && cd $BUILDDIR fi
On Wed, 2011-07-13 at 10:31 +0800, Joshua Lock wrote:
On Wed, 2011-07-13 at 10:19 +0800, NiQingliang wrote:/usr/bin/env python2These are both valid on Fedora 15, iirc before distributions started
|
|