[oe-commits] Richard Purdie : package.bbclass: Correctly handle /usr/src/ debug file ownership

git at git.openembedded.org git at git.openembedded.org
Tue Mar 26 17:54:34 UTC 2013


Module: openembedded-core.git
Branch: master
Commit: 553a8010e81448629a94ab04fd989e6e49066f2b
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=553a8010e81448629a94ab04fd989e6e49066f2b

Author: Richard Purdie <richard.purdie at linuxfoundation.org>
Date:   Tue Mar 26 15:37:45 2013 +0000

package.bbclass: Correctly handle /usr/src/debug file ownership

After the recent cached path operation improvements, we need to tell
the cache about directory changes. /usr/src/debug was was cached as
not created and this was leading to bugs in file ownership. This
change updates the cache and avoids this issue.

Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/classes/package.bbclass |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index 447a74b..3479947 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -302,6 +302,7 @@ def copydebugsources(debugsrcdir, d):
             if not cpath.exists(basepath):
                 nosuchdir.append(basepath)
         bb.utils.mkdirhier(basepath)
+        cpath.updatecache(basepath)
 
         processdebugsrc =  "LC_ALL=C ; sort -z -u '%s' | egrep -v -z '(<internal>|<built-in>)$' | "
         # We need to ignore files that are not actually ours





More information about the Openembedded-commits mailing list