]> code.ossystems Code Review - openembedded-core.git/commitdiff
package.bbclass: avoid packing debug sources from other packages
authorAndreas Müller <schnitzeltony@googlemail.com>
Mon, 22 Jul 2013 14:52:15 +0000 (16:52 +0200)
committerSaul Wold <sgw@linux.intel.com>
Fri, 26 Jul 2013 06:44:27 +0000 (23:44 -0700)
The error case was gcc-dbg packing files from libgcc-dbg reported in [1]

[1] http://lists.openembedded.org/pipermail/openembedded-core/2013-July/080728.html

Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/classes/package.bbclass

index 5c2d1c6553baa802ea6d0a600e839326f476433d..2460d0ac628b5a9613aeefe1c162d81fc5ff90e4 100644 (file)
@@ -307,7 +307,7 @@ def copydebugsources(debugsrcdir, d):
         processdebugsrc =  "LC_ALL=C ; sort -z -u '%s' | egrep -v -z '(<internal>|<built-in>)$' | "
         # We need to ignore files that are not actually ours
         # we do this by only paying attention to items from this package
-        processdebugsrc += "fgrep -z '%s' | "
+        processdebugsrc += "fgrep -zw '%s' | "
         processdebugsrc += "(cd '%s' ; cpio -pd0mlL --no-preserve-owner '%s%s' 2>/dev/null)"
 
         cmd = processdebugsrc % (sourcefile, workbasedir, workparentdir, dvar, debugsrcdir)