]> code.ossystems Code Review - openembedded-core.git/commitdiff
toolchain-scripts.bbclass: unset command_not_found_handle
authorFang Jia <fang.jia@windriver.com>
Mon, 30 Nov 2015 08:50:34 +0000 (16:50 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 8 Dec 2015 10:20:06 +0000 (10:20 +0000)
On Ubuntu-system, When sourcing the env.sh from an exported sdk, and
running a bogus linux command (for example "asd"), a core dump of
python is usually generated.

Unset the command_not_found_handle to fix it.

Signed-off-by: Fang Jia <fang.jia@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/toolchain-scripts.bbclass

index d0b2b9148c0ae512d1e7bb26669eab132c055034..ab4feb083429257d2d179103d1fd4bb2fae4aa2a 100644 (file)
@@ -32,6 +32,7 @@ toolchain_create_sdk_env_script () {
        echo 'export OECORE_TARGET_SYSROOT="$SDKTARGETSYSROOT"' >> $script
        echo "export OECORE_ACLOCAL_OPTS=\"-I $sdkpathnative/usr/share/aclocal\"" >> $script
        echo "export PYTHONHOME=$sdkpathnative$prefix" >> $script
+       echo 'unset command_not_found_handle' >> $script
 
        toolchain_shared_env_script
 }