]> code.ossystems Code Review - openembedded-core.git/commit
utils: Fix create_wrapper
authorAchille Fouilleul <achille.fouilleul@gadz.org>
Wed, 6 Mar 2019 15:32:52 +0000 (16:32 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 6 Mar 2019 23:12:06 +0000 (23:12 +0000)
commit791e5bfcb449024f295a4f8f507c1012cff76f9d
tree12efbdc05ddab3a094c4d981186fc022ce6bd1c0
parent6319a59c1d30eeb8ad4871d43641e3469fb543ba
utils: Fix create_wrapper

Wrappers generated by create_wrapper do not work properly:
python, for example, looks at argv[0] to know if it is
running from a virtualenv. Because the wrapper replaces
argv[0] with python's canonical path, python cannot tell
whether it has been invoked directly or from a virtualenv
symlink.

This change makes the wrapper pass the original argv[0] down
to the real command.

Signed-off-by: Achille Fouilleul <achille.fouilleul@gadz.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/utils.bbclass