]> code.ossystems Code Review - openembedded-core.git/commit
terminal.bbclass: Generate do_terminal as bitbake would
authorNathan Rossi <nathan@nathanrossi.com>
Tue, 2 Apr 2019 08:17:39 +0000 (08:17 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 3 Apr 2019 13:46:57 +0000 (14:46 +0100)
commit53724281eb486847bc3be824aa4513a8688ec296
tree86cc04532f1b374e83f6cad2f9fecefa361e8e24
parent0ee8d4d58b2d755615ae4f7c3783b72d5aabaa63
terminal.bbclass: Generate do_terminal as bitbake would

This changes the runfile that is generated to have the same behaviour as
bitbake with regards to emitting the shebang and trap code. The existing
implementation used 'env' with the current var-SHELL. This means that if
the user has configured there system/environment with a alternate shell
(e.g. csh, zsh, fish, etc.) the do_terminal function would attempt to
execute with the wrong/incompatible shell and fail silently.

With this change devshell and other classes that rely on terminal can
now run when the var-SHELL is not set to a sh compatible shell. For
devshell, it will launch the devshell with the users configured shell.

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/terminal.bbclass