From: Andreas Müller Date: Mon, 22 Jul 2013 14:52:15 +0000 (+0200) Subject: package.bbclass: avoid packing debug sources from other packages X-Git-Tag: rev_ivi_2015_02_04~11704 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d385131c832bb7513c0446ba98f5ad3ace22cca4;p=scm%2Fbb%2Ftizen-distro.git package.bbclass: avoid packing debug sources from other packages 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 (From OE-Core rev: fd2c0af422d67da870a5a11720d06a871e660215) Signed-off-by: Andreas Müller Signed-off-by: Saul Wold Signed-off-by: Richard Purdie --- diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass index 5c2d1c6..2460d0a 100644 --- a/meta/classes/package.bbclass +++ b/meta/classes/package.bbclass @@ -307,7 +307,7 @@ def copydebugsources(debugsrcdir, d): processdebugsrc = "LC_ALL=C ; sort -z -u '%s' | egrep -v -z '(|)$' | " # 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)