]> code.ossystems Code Review - openembedded-core.git/commitdiff
gcc: Fix file ownership
authorMark Hatle <mark.hatle@windriver.com>
Fri, 24 Jun 2011 18:26:11 +0000 (13:26 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 28 Jun 2011 12:46:57 +0000 (13:46 +0100)
Most of the files that end up in the gcc include dir and other
misc files scattered throughout the install get the build users
uid and gid.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
meta/recipes-devtools/gcc/gcc-configure-runtime.inc
meta/recipes-devtools/gcc/gcc-package-sdk.inc
meta/recipes-devtools/gcc/gcc-package-target.inc
meta/recipes-devtools/gcc/libgcc_4.5.1.bb
meta/recipes-devtools/gcc/libgcc_4.6.bb

index 339a3c8a72c46ece206028e68c0dd14430096d31..34bfaeb9604c174cae6749f00986aa330e315eee 100644 (file)
@@ -37,6 +37,7 @@ do_install () {
                cd ${B}/$d/
                oe_runmake 'DESTDIR=${D}' install
        done
+       chown -R root:root ${D}
 }
 
 INHIBIT_DEFAULT_DEPS = "1"
index 23b9a48eb32a62023551ef0fdb5db64e6365f635..7db7c52eff090c0e1a22f73d45ad80a42109f8fc 100644 (file)
@@ -48,5 +48,7 @@ do_install () {
        for t in ar as ld nm objcopy objdump ranlib strip g77 gcc cpp gfortran; do
                ln -sf ${bindir}/${TARGET_PREFIX}$t $dest$t
        done
+
+       chown -R root:root ${D}
 }
 
index afbcf0d2afa5a936cb2949d67612c65b895e072d..43e2bd5dbaca8fd110f4dd347e0ffcf193b24fc6 100644 (file)
@@ -101,4 +101,6 @@ do_install () {
        ln -sf g++ c++
        ln -sf gcc cc
        ln -sf ${bindir}/${TARGET_PREFIX}cpp ${D}${bindir}/cpp
+
+       chown -R root:root ${D}
 }
index b6cf2685e5194693756b607672c747f800a01316..b0523c78acfc3762ac7ff6f1d1b687bf9a8e3e6b 100644 (file)
@@ -36,6 +36,8 @@ do_install () {
        else
                mv ${D}${libdir}/libgcc* ${D}${base_libdir} || true
        fi
+
+       chown -R root:root ${D}
 }
 
 do_package_write_ipk[depends] += "virtual/libc:do_package"
index b6cf2685e5194693756b607672c747f800a01316..b0523c78acfc3762ac7ff6f1d1b687bf9a8e3e6b 100644 (file)
@@ -36,6 +36,8 @@ do_install () {
        else
                mv ${D}${libdir}/libgcc* ${D}${base_libdir} || true
        fi
+
+       chown -R root:root ${D}
 }
 
 do_package_write_ipk[depends] += "virtual/libc:do_package"