diff options
-rw-r--r-- | meta/classes/package.bbclass | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass index 322c4ec77f..be316510a6 100644 --- a/meta/classes/package.bbclass +++ b/meta/classes/package.bbclass | |||
@@ -471,7 +471,8 @@ def copydebugsources(debugsrcdir, d): | |||
471 | 471 | ||
472 | # cpio seems to have a bug with -lL together and symbolic links are just copied, not dereferenced. | 472 | # cpio seems to have a bug with -lL together and symbolic links are just copied, not dereferenced. |
473 | # Work around this by manually finding and copying any symbolic links that made it through. | 473 | # Work around this by manually finding and copying any symbolic links that made it through. |
474 | cmd = "find %s%s -type l -print0 -delete | sed s#%s%s/##g | (cd '%s' ; cpio -pd0mL --no-preserve-owner '%s%s' 2>/dev/null)" % (dvar, debugsrcdir, dvar, debugsrcdir, workparentdir, dvar, debugsrcdir) | 474 | cmd = "find %s%s -type l -print0 -delete | sed s#%s%s/##g | (cd '%s' ; cpio -pd0mL --no-preserve-owner '%s%s')" % \ |
475 | (dvar, debugsrcdir, dvar, debugsrcdir, workparentdir, dvar, debugsrcdir) | ||
475 | subprocess.check_output(cmd, shell=True, stderr=subprocess.STDOUT) | 476 | subprocess.check_output(cmd, shell=True, stderr=subprocess.STDOUT) |
476 | 477 | ||
477 | # The copy by cpio may have resulted in some empty directories! Remove these | 478 | # The copy by cpio may have resulted in some empty directories! Remove these |