diff options
author | Mark Hatle <mark.hatle@windriver.com> | 2011-06-24 13:26:11 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-06-28 13:55:40 +0100 |
commit | 1d640c9436ecc65d8864e8a742926fbeb5d7826e (patch) | |
tree | fa598f3bd8712c8a92546b7e4c734a68f0c5ffa2 /meta | |
parent | 0496564b64798760116c55be27b9540c50ef4233 (diff) | |
download | poky-1d640c9436ecc65d8864e8a742926fbeb5d7826e.tar.gz |
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.
(From OE-Core rev: db99a65b3e93dfacc27ea821c788f15b5de3a497)
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-configure-runtime.inc | 1 | ||||
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-package-sdk.inc | 2 | ||||
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-package-target.inc | 2 | ||||
-rw-r--r-- | meta/recipes-devtools/gcc/libgcc_4.5.1.bb | 2 | ||||
-rw-r--r-- | 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 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 () { | |||
37 | cd ${B}/$d/ | 37 | cd ${B}/$d/ |
38 | oe_runmake 'DESTDIR=${D}' install | 38 | oe_runmake 'DESTDIR=${D}' install |
39 | done | 39 | done |
40 | chown -R root:root ${D} | ||
40 | } | 41 | } |
41 | 42 | ||
42 | INHIBIT_DEFAULT_DEPS = "1" | 43 | 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 () { | |||
48 | for t in ar as ld nm objcopy objdump ranlib strip g77 gcc cpp gfortran; do | 48 | for t in ar as ld nm objcopy objdump ranlib strip g77 gcc cpp gfortran; do |
49 | ln -sf ${bindir}/${TARGET_PREFIX}$t $dest$t | 49 | ln -sf ${bindir}/${TARGET_PREFIX}$t $dest$t |
50 | done | 50 | done |
51 | |||
52 | chown -R root:root ${D} | ||
51 | } | 53 | } |
52 | 54 | ||
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 () { | |||
101 | ln -sf g++ c++ | 101 | ln -sf g++ c++ |
102 | ln -sf gcc cc | 102 | ln -sf gcc cc |
103 | ln -sf ${bindir}/${TARGET_PREFIX}cpp ${D}${bindir}/cpp | 103 | ln -sf ${bindir}/${TARGET_PREFIX}cpp ${D}${bindir}/cpp |
104 | |||
105 | chown -R root:root ${D} | ||
104 | } | 106 | } |
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 () { | |||
36 | else | 36 | else |
37 | mv ${D}${libdir}/libgcc* ${D}${base_libdir} || true | 37 | mv ${D}${libdir}/libgcc* ${D}${base_libdir} || true |
38 | fi | 38 | fi |
39 | |||
40 | chown -R root:root ${D} | ||
39 | } | 41 | } |
40 | 42 | ||
41 | do_package_write_ipk[depends] += "virtual/libc:do_package" | 43 | 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 () { | |||
36 | else | 36 | else |
37 | mv ${D}${libdir}/libgcc* ${D}${base_libdir} || true | 37 | mv ${D}${libdir}/libgcc* ${D}${base_libdir} || true |
38 | fi | 38 | fi |
39 | |||
40 | chown -R root:root ${D} | ||
39 | } | 41 | } |
40 | 42 | ||
41 | do_package_write_ipk[depends] += "virtual/libc:do_package" | 43 | do_package_write_ipk[depends] += "virtual/libc:do_package" |