Pārlūkot izejas kodu

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>
Christopher Larson 9 gadi atpakaļ
vecāks
revīzija
03b400b3c4
1 mainītis faili ar 2 papildinājumiem un 0 dzēšanām
  1. 2 0
      classes/external-toolchain.bbclass

+ 2 - 0
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())}"