Fix for oe-buildenv-internal
cover Fix for oe-buildenv-internal
A late improvement to the oe-buildenv-internal patches i provided last week introduced an error in the code that adds paths to $PATH. This can cause $PATH to end up with a trailing : which will subsequently cause the sannity checker to fail.
//Peter
The following changes since commit 068afc5d436c716591a54f7d6e1944d8b6f9a198:
tzdata: update to 2016b (2016-03-20 23:12:32 +0000)
are available in the git repository at:
git://git.yoctoproject.org/poky-contrib pkj/oe-init-build-env
http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=pkj/oe-init-build-env
Peter Kjellerstedt (1):
oe-buildenv-internal: Correct the sed expression which updates $PATH
scripts/oe-buildenv-internal | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Signature · 1 line
2.1.0
PATCH 1/1 oe-buildenv-internal: Correct the sed expression which updates $PATH
Without this, the code that adds paths to $PATH could cause it to end up with a trailing : which would then cause an error from the sanity checker.
--- scripts/oe-buildenv-internal | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/oe-buildenv-internal +1 -1
@@ -99,7 +99,7 @@ fi # Make sure our paths are at the beginning of $PATH for newpath in "$BITBAKEDIR/bin" "$OEROOT/scripts"; do # Remove any existences of $newpath from $PATH - PATH=$(echo $PATH | sed -re "s#(^|:)$newpath(:|$)#\1#g;s#^:##") + PATH=$(echo $PATH | sed -re "s#(^|:)$newpath(:|$)#\2#g;s#^:##") # Add $newpath to $PATH PATH="$newpath:$PATH"
Signature · 1 line
2.1.0