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.
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.
Verified on master branch. Commit ID:78983e939ab17f02f8911c8b0d0e326b419856b9