From db99a65b3e93dfacc27ea821c788f15b5de3a497 Mon Sep 17 00:00:00 2001 From: Mark Hatle Date: Fri, 24 Jun 2011 13:26:11 -0500 Subject: gcc: Fix file ownership 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 --- meta/recipes-devtools/gcc/gcc-configure-runtime.inc | 1 + meta/recipes-devtools/gcc/gcc-package-sdk.inc | 2 ++ meta/recipes-devtools/gcc/gcc-package-target.inc | 2 ++ meta/recipes-devtools/gcc/libgcc_4.5.1.bb | 2 ++ meta/recipes-devtools/gcc/libgcc_4.6.bb | 2 ++ 5 files changed, 9 insertions(+) (limited to 'meta') diff --git a/meta/recipes-devtools/gcc/gcc-configure-runtime.inc b/meta/recipes-devtools/gcc/gcc-configure-runtime.inc index 339a3c8a7..34bfaeb96 100644 --- a/meta/recipes-devtools/gcc/gcc-configure-runtime.inc +++ b/meta/recipes-devtools/gcc/gcc-configure-runtime.inc @@ -37,6 +37,7 @@ do_install () { cd ${B}/$d/ oe_runmake 'DESTDIR=${D}' install done + chown -R root:root ${D} } INHIBIT_DEFAULT_DEPS = "1" diff --git a/meta/recipes-devtools/gcc/gcc-package-sdk.inc b/meta/recipes-devtools/gcc/gcc-package-sdk.inc index 23b9a48eb..7db7c52ef 100644 --- a/meta/recipes-devtools/gcc/gcc-package-sdk.inc +++ b/meta/recipes-devtools/gcc/gcc-package-sdk.inc @@ -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} } diff --git a/meta/recipes-devtools/gcc/gcc-package-target.inc b/meta/recipes-devtools/gcc/gcc-package-target.inc index afbcf0d2a..43e2bd5db 100644 --- a/meta/recipes-devtools/gcc/gcc-package-target.inc +++ b/meta/recipes-devtools/gcc/gcc-package-target.inc @@ -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} } diff --git a/meta/recipes-devtools/gcc/libgcc_4.5.1.bb b/meta/recipes-devtools/gcc/libgcc_4.5.1.bb index b6cf2685e..b0523c78a 100644 --- a/meta/recipes-devtools/gcc/libgcc_4.5.1.bb +++ b/meta/recipes-devtools/gcc/libgcc_4.5.1.bb @@ -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" diff --git a/meta/recipes-devtools/gcc/libgcc_4.6.bb b/meta/recipes-devtools/gcc/libgcc_4.6.bb index b6cf2685e..b0523c78a 100644 --- a/meta/recipes-devtools/gcc/libgcc_4.6.bb +++ b/meta/recipes-devtools/gcc/libgcc_4.6.bb @@ -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" -- cgit v1.2.3