Bug 2599

Summary: Avoid extraneous dependencies when adding -dbg packages
Product: [Build System, Metadata & Runtime] Meta-yocto Reporter: Paul Eggleton <bluelightning>
Component: meta-yoctoAssignee: Paul Eggleton <bluelightning>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: alexandrux.palalau, jason.wessel, poky.bs.watcher, poky.watcher, sgw, song.liu
Version: 1.2   
Target Milestone: 1.3 M3   
Hardware: All   
OS: Multiple   
Whiteboard: (p2)
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Paul Eggleton 2012-06-13 12:07:50 UTC
Currently, the -dbg package dependency code uses the same code that -dev uses, which greedily pulls in all of the normal packages as dependencies. A pathological case of this is where the default shell is changed from busybox to bash since to eglibc-dbg depends upon bash-dbg (possibly as a result of the eglibc-utils dependency upon bash). We need to try to be smarter about this and only bring in what's really necessary, so that you can easily install the debug symbols without unexpected and unwanted items being pulled in.
Comment 1 Paul Eggleton 2012-07-30 13:00:37 UTC
Fix merged in a5227e205b4b22fd27989a3ca6bd722d35ac1435, with an additional improvement to help avoid bash being dragged in in 0565ae44d9bc89efd17f38938a0ba8185bc7c6e7.

It's worth noting that if you want to completely prevent dbg packages from depending on each other, you can just remove "-dbg" from DEPCHAINS_POST. This does mean that you won't have the debugging symbols for libraries installed when you install the debug package for a specific application; depending on the experience of the developer doing the debugging and where the bug that you're trying to track down actually lies that may or may not be an issue.
Comment 2 Alexandru Palalau 2012-11-08 07:22:09 UTC
Verified on master branch. Commit ID:78983e939ab17f02f8911c8b0d0e326b419856b9