* [PATCH 0/1] Fix ext SDK installer regression
@ 2015-12-08 2:42 Paul Eggleton
2015-12-08 2:42 ` [PATCH 1/1] toolchain-shar-extract.sh: ensure cleaned environment will work for ext SDK Paul Eggleton
0 siblings, 1 reply; 2+ messages in thread
From: Paul Eggleton @ 2015-12-08 2:42 UTC (permalink / raw)
To: openembedded-core
The following changes since commit 687e5ef86361a16d6c411386939d4ba96a5909ea:
libsdl: remove redundant configure_tweak patch (2015-12-01 21:31:04 +0000)
are available in the git repository at:
git://git.openembedded.org/openembedded-core-contrib paule/sdk-env-fix3
http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=paule/sdk-env-fix3
Paul Eggleton (1):
toolchain-shar-extract.sh: ensure cleaned environment will work for ext SDK
meta/files/toolchain-shar-extract.sh | 2 ++
1 file changed, 2 insertions(+)
--
2.5.0
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH 1/1] toolchain-shar-extract.sh: ensure cleaned environment will work for ext SDK
2015-12-08 2:42 [PATCH 0/1] Fix ext SDK installer regression Paul Eggleton
@ 2015-12-08 2:42 ` Paul Eggleton
0 siblings, 0 replies; 2+ messages in thread
From: Paul Eggleton @ 2015-12-08 2:42 UTC (permalink / raw)
To: openembedded-core
In OE-Core revision 6d2074d477596971dc52027dd87b02af7f39138d we added a
line which re-executes the script with a cleaned environment using
env -i; unfortunately that caused a regression in the extensible SDK on
Ubuntu 14.04 - strangely, there it seems that the value you get for PATH
under env -i contains '.' which triggers a sanity check failure when
preparing the build system. Do a belt-and-braces fix - source
/etc/environment if it exists (so you get a more complete PATH value)
and then filter any nastiness out of PATH for good measure. (Ubuntu
15.04 doesn't seem to suffer from the same problem.)
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
---
| 2 ++
1 file changed, 2 insertions(+)
--git a/meta/files/toolchain-shar-extract.sh b/meta/files/toolchain-shar-extract.sh
index 8ef2b77..b20e393 100644
--- a/meta/files/toolchain-shar-extract.sh
+++ b/meta/files/toolchain-shar-extract.sh
@@ -1,6 +1,8 @@
#!/bin/sh
[ -z "$ENVCLEANED" ] && exec /usr/bin/env -i ENVCLEANED=1 "$0" "$@"
+[ -f /etc/environment ] && . /etc/environment
+export PATH=`echo "$PATH" | sed -e 's/:\.//' -e 's/::/:/'`
INST_ARCH=$(uname -m | sed -e "s/i[3-6]86/ix86/" -e "s/x86[-_]64/x86_64/")
SDK_ARCH=$(echo @SDK_ARCH@ | sed -e "s/i[3-6]86/ix86/" -e "s/x86[-_]64/x86_64/")
--
2.5.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-12-08 2:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-08 2:42 [PATCH 0/1] Fix ext SDK installer regression Paul Eggleton
2015-12-08 2:42 ` [PATCH 1/1] toolchain-shar-extract.sh: ensure cleaned environment will work for ext SDK Paul Eggleton
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.