[oe-commits] Mark Hatle : gcc: Fix file ownership
git version control
git at git.openembedded.org
Tue Jun 28 12:56:52 UTC 2011
Module: openembedded-core.git
Branch: master
Commit: db99a65b3e93dfacc27ea821c788f15b5de3a497
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=db99a65b3e93dfacc27ea821c788f15b5de3a497
Author: Mark Hatle <mark.hatle at windriver.com>
Date: Fri Jun 24 13:26:11 2011 -0500
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 at windriver.com>
---
.../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(+), 0 deletions(-)
diff --git a/meta/recipes-devtools/gcc/gcc-configure-runtime.inc b/meta/recipes-devtools/gcc/gcc-configure-runtime.inc
index 339a3c8..34bfaeb 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 23b9a48..7db7c52 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 afbcf0d..43e2bd5 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 b6cf268..b0523c7 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 b6cf268..b0523c7 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"
More information about the Openembedded-commits
mailing list