summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@windriver.com>2011-06-24 13:26:11 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-06-28 13:46:57 +0100
commitdb99a65b3e93dfacc27ea821c788f15b5de3a497 (patch)
tree7c0ff600b56645477311b958a8cc13c8bb8b7062
parent2e3727b05ae58aaf1eed88967c13cae085e7a702 (diff)
downloadopenembedded-core-db99a65b3e93dfacc27ea821c788f15b5de3a497.tar.gz
openembedded-core-db99a65b3e93dfacc27ea821c788f15b5de3a497.tar.bz2
openembedded-core-db99a65b3e93dfacc27ea821c788f15b5de3a497.zip
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 <mark.hatle@windriver.com>
-rw-r--r--meta/recipes-devtools/gcc/gcc-configure-runtime.inc1
-rw-r--r--meta/recipes-devtools/gcc/gcc-package-sdk.inc2
-rw-r--r--meta/recipes-devtools/gcc/gcc-package-target.inc2
-rw-r--r--meta/recipes-devtools/gcc/libgcc_4.5.1.bb2
-rw-r--r--meta/recipes-devtools/gcc/libgcc_4.6.bb2
5 files changed, 9 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-configure-runtime.inc b/meta/recipes-devtools/gcc/gcc-configure-runtime.inc
index 339a3c8a72..34bfaeb960 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 23b9a48eb3..7db7c52eff 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 afbcf0d2af..43e2bd5dba 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 b6cf2685e5..b0523c78ac 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 b6cf2685e5..b0523c78ac 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"