* [PATCH 0/1] Fix for oe-buildenv-internal
@ 2016-03-21 11:41 Peter Kjellerstedt
2016-03-21 11:41 ` [PATCH 1/1] oe-buildenv-internal: Correct the sed expression which updates $PATH Peter Kjellerstedt
0 siblings, 1 reply; 2+ messages in thread
From: Peter Kjellerstedt @ 2016-03-21 11:41 UTC (permalink / raw)
To: openembedded-core
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(-)
--
2.1.0
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH 1/1] oe-buildenv-internal: Correct the sed expression which updates $PATH
2016-03-21 11:41 [PATCH 0/1] Fix for oe-buildenv-internal Peter Kjellerstedt
@ 2016-03-21 11:41 ` Peter Kjellerstedt
0 siblings, 0 replies; 2+ messages in thread
From: Peter Kjellerstedt @ 2016-03-21 11:41 UTC (permalink / raw)
To: openembedded-core
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.
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
---
scripts/oe-buildenv-internal | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/oe-buildenv-internal b/scripts/oe-buildenv-internal
index bc6a4fe..8eee008 100755
--- a/scripts/oe-buildenv-internal
+++ b/scripts/oe-buildenv-internal
@@ -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"
--
2.1.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-03-21 11:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-21 11:41 [PATCH 0/1] Fix for oe-buildenv-internal Peter Kjellerstedt
2016-03-21 11:41 ` [PATCH 1/1] oe-buildenv-internal: Correct the sed expression which updates $PATH Peter Kjellerstedt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox