diff options
Diffstat (limited to 'meta/classes/sstate.bbclass')
-rw-r--r-- | meta/classes/sstate.bbclass | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass index 0d16d118d9..15706541ae 100644 --- a/meta/classes/sstate.bbclass +++ b/meta/classes/sstate.bbclass @@ -153,6 +153,12 @@ def sstate_installpkg(ss, d): bb.mkdirhier(dir) oe.path.remove(dir) + # We're adding binaries into the sysroots, we don't want to execute them + # whilst they're half installed or being installed so we need to + # remove the sysroots from PATH + savedpath = d.getVar("PATH") + d.setVar("PATH", "${ORIGPATH}") + sstateinst = d.expand("${WORKDIR}/sstate-install-%s/" % ss['name']) sstatepkg = d.getVar('SSTATE_PKG', True) + '_' + ss['name'] + ".tgz" @@ -190,6 +196,8 @@ def sstate_installpkg(ss, d): # conflict with another writer os.remove(fixmefn) + d.setVar("PATH", savedpath) + for state in ss['dirs']: prepdir(state[1]) os.rename(sstateinst + state[0], state[1]) |