From: Ross Burton Date: Wed, 12 Jun 2013 16:25:05 +0000 (+0100) Subject: python-native: add nativepython symlink X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~37031 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d99dac66e3e121e96c4d8a29aee846d4b8f38622;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git python-native: add nativepython symlink Add a symlink to the native Python so that scripts can just invoke "nativepython" and get the right one without needing absolute paths (these often end up too long for the #! parser in the kernel as the buffer is 128 bytes long). The name "nativepython" was chosen to match the existing "nativeperl" which serves the same purpose. Signed-off-by: Ross Burton Signed-off-by: Saul Wold --- diff --git a/meta/recipes-devtools/python/python-native_2.7.3.bb b/meta/recipes-devtools/python/python-native_2.7.3.bb index 722d92c0968..39d53bb03c4 100644 --- a/meta/recipes-devtools/python/python-native_2.7.3.bb +++ b/meta/recipes-devtools/python/python-native_2.7.3.bb @@ -48,4 +48,10 @@ do_install() { for PYTHSCRIPT in `grep -rIl ${bindir}/${PN}/python ${D}${bindir}/${PN}`; do sed -i -e '1s|^#!.*|#!/usr/bin/env python|' $PYTHSCRIPT done + + # Add a symlink to the native Python so that scripts can just invoke + # "nativepython" and get the right one without needing absolute paths + # (these often end up too long for the #! parser in the kernel as the + # buffer is 128 bytes long). + ln -s python-native/python ${D}${bindir}/nativepython }