From 03b400b3c4759014f8fb413297eead640156daeb Mon Sep 17 00:00:00 2001 From: Christopher Larson Date: Tue, 21 Apr 2015 17:39:00 -0700 Subject: [PATCH] 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 --- classes/external-toolchain.bbclass | 2 ++ 1 file changed, 2 insertions(+) diff --git a/classes/external-toolchain.bbclass b/classes/external-toolchain.bbclass index 78eeb3a..251096e 100644 --- a/classes/external-toolchain.bbclass +++ b/classes/external-toolchain.bbclass @@ -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())}"