Bug 3621 - Source in -dbg packages is wasteful and not massively useful
Summary: Source in -dbg packages is wasteful and not massively useful
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 1.4
Hardware: x86 Multiple
: Low enhancement
Target Milestone: 1.4
Assignee: Ross Burton
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2012-12-19 12:31 UTC by Ross Burton
Modified: 2013-04-25 15:32 UTC (History)
5 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ross Burton 2012-12-19 12:31:01 UTC
Currently the -dbg packages contain all of the sources, not just the debug symbols.  These are not massively useful as many embedded boards are not powerful enough to store all of the sources, and the debugging symbols are sufficient for most debugging activities.

The impact of adding the source is not insignificant.  Consider gtk+3, the -dbg package is 43M unpacked, 26M of which is source code.

I propose two options:
1) have an option to enable or disable the debug source code packaging (default to disable)
2) split the source code to a -dbgsrc package
Comment 1 tf 2012-12-19 12:35:00 UTC
+1 from me; I don't have a huge preferrence for either of the two proposed options.
Comment 2 Richard Purdie 2012-12-19 17:58:45 UTC
The argument has been that if your board can't cope with the debug packages themselves, the debug source probably doesn't make much difference and it won't be able to cope with that either so either the board will or won't be able to cope with them regardless of absolute size. 

I've also been repeatedly told our old -dbg packages without the source were "useless" and had to give up arguing otherwise. This therefore needs discussion on the mailing list. I'm happy to see an option, I don't think we can default to off though.
Comment 3 Martin Jansa 2013-03-12 15:45:33 UTC
Patch to add option without src sent to ML
http://lists.linuxtogo.org/pipermail/openembedded-core/2013-March/036965.html

My use case was a bit different: to be able to build proprietary blobs with OE and exchange resulting .ipk files with partners without revealing source in PN-dbg.

Ross said this option is good enough to close this.
Comment 4 Richard Purdie 2013-04-25 15:32:17 UTC
Martin's patch was merged.