Patchwork package.bbclass: avoid packing debug sources from other packages

login
register
mail settings
Submitter Andreas Müller
Date July 22, 2013, 2:52 p.m.
Message ID <1374504735-22950-1-git-send-email-schnitzeltony@googlemail.com>
Download mbox | patch
Permalink /patch/54191/
State Accepted
Commit fd2c0af422d67da870a5a11720d06a871e660215
Headers show

Comments

Andreas Müller - July 22, 2013, 2:52 p.m.
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>
---
 meta/classes/package.bbclass |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index 02a1460..f92edf7 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -304,7 +304,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)