mirror of
https://github.com/thead-yocto-mirror/meta-external-toolchain
synced 2026-10-17 05:23:17 +02:00
external-toolchain: correct ownership of our files
Since we're running cp -p to preserve other aspects, we need to manually correct the ownership to what we expect (root:root) rather than the current ownership. JIRA: SB-4185 Signed-off-by: Christopher Larson <kergoth@gmail.com>
This commit is contained in:
@@ -105,10 +105,12 @@ python do_install () {
|
||||
}
|
||||
|
||||
python external_toolchain_do_install () {
|
||||
import subprocess
|
||||
installdest = d.getVar('D', True)
|
||||
sysroots, mirrors = get_file_search_metadata(d)
|
||||
files = gather_pkg_files(d)
|
||||
copy_from_sysroots(files, sysroots, mirrors, installdest)
|
||||
subprocess.check_call(['chown', '-R', 'root:root', installdest])
|
||||
}
|
||||
external_toolchain_do_install[vardeps] += "${@' '.join('FILES_%s' % pkg for pkg in '${PACKAGES}'.split())}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user