<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 7, 2014 at 3:25 AM, Burton, Ross <span dir="ltr"><<a href="mailto:ross.burton@intel.com" target="_blank">ross.burton@intel.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 11 June 2014 20:10, Burton, Ross <<a href="mailto:ross.burton@intel.com">ross.burton@intel.com</a>> wrote:<br>
> I know there are recipes floating around that have multiple -dbg<br>
> packages, but I can't see a great rationale for that. I also can't<br>
> see a reason why you'd want debug objects/sources outside of the -dbg<br>
> package, or something that wasn't a debug object or source inside the<br>
> -dbg package.<br>
<br>
</span>So last night I resurrected this patch and did an oe-core world build<br>
with a small change to clear FILES_${PN}-dbg before automatically<br>
populating it. The results were interesting and invalidated my two<br>
assumptions:<br>
<br>
1) Adding files that are not debug symbols or sources to -dbg packages<br>
is done: both gcc and glib add Python code for gdb to execute and the<br>
-dbg package is the obvious location for it.<br>
<br>
2) A recipe having multiple -dbg packages is sensible for eg Qt4,<br>
which if all the debug information is put into a single package<br>
results in a 367M package, expanding to 1.1G on disk.<br>
<br>
So I've a proposed change to the logic:<br>
* If there are multiple names in PACKAGES that match *-dbg, then don't<br>
do automatic debug packaging<br>
* The default value for FILES_PN-dbg in bitbake.conf should be empty,<br>
and recipes can extend it as required (e.g. gdb Python scripts) with<br>
the automatic debug packaging extending FILES_PN-dbg.</blockquote></div><br>For what it's worth, this behavior seems quite sane to me.<br>-- <br>Christopher Larson<br>clarson at kergoth dot com<br>Founder - BitBake, OpenEmbedded, OpenZaurus<br>Maintainer - Tslib<br>Senior Software Engineer, Mentor Graphics
</div></div>