mirror of
https://git.yoctoproject.org/poky
synced 2026-05-31 00:39:46 +00:00
Revert "bitbake.conf/sstate.bbclass: Change PATH when installing sstate files to avoid issues"
Reluctantly revert this since it breaks the tar-native workaround we have
for old versions of tar :(
This reverts commit 01218e29f9.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -153,12 +153,6 @@ def sstate_installpkg(ss, d):
|
|||||||
bb.mkdirhier(dir)
|
bb.mkdirhier(dir)
|
||||||
oe.path.remove(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'])
|
sstateinst = d.expand("${WORKDIR}/sstate-install-%s/" % ss['name'])
|
||||||
sstatepkg = d.getVar('SSTATE_PKG', True) + '_' + ss['name'] + ".tgz"
|
sstatepkg = d.getVar('SSTATE_PKG', True) + '_' + ss['name'] + ".tgz"
|
||||||
|
|
||||||
@@ -196,8 +190,6 @@ def sstate_installpkg(ss, d):
|
|||||||
# conflict with another writer
|
# conflict with another writer
|
||||||
os.remove(fixmefn)
|
os.remove(fixmefn)
|
||||||
|
|
||||||
d.setVar("PATH", savedpath)
|
|
||||||
|
|
||||||
for state in ss['dirs']:
|
for state in ss['dirs']:
|
||||||
prepdir(state[1])
|
prepdir(state[1])
|
||||||
os.rename(sstateinst + state[0], state[1])
|
os.rename(sstateinst + state[0], state[1])
|
||||||
|
|||||||
@@ -402,7 +402,6 @@ EXTRA_IMAGEDEPENDS = ""
|
|||||||
# Toolchain info.
|
# Toolchain info.
|
||||||
##################################################################
|
##################################################################
|
||||||
|
|
||||||
ORIGPATH := "${PATH}"
|
|
||||||
PATH_prepend = "${STAGING_BINDIR_TOOLCHAIN}:${STAGING_BINDIR_CROSS}:${STAGING_DIR_NATIVE}${sbindir_native}:${STAGING_BINDIR_NATIVE}:${STAGING_DIR_NATIVE}${base_sbindir_native}:${STAGING_DIR_NATIVE}/${base_bindir_native}:"
|
PATH_prepend = "${STAGING_BINDIR_TOOLCHAIN}:${STAGING_BINDIR_CROSS}:${STAGING_DIR_NATIVE}${sbindir_native}:${STAGING_BINDIR_NATIVE}:${STAGING_DIR_NATIVE}${base_sbindir_native}:${STAGING_DIR_NATIVE}/${base_bindir_native}:"
|
||||||
export PATH
|
export PATH
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user