After running "aptitude build-dep zsh", a ran "apt-get source zsh", entered the source directory, and attempted to build a package. However, the build failed: dpkg-checkbuilddeps: Unmet build dependencies: libcap2-dev It seems that this package should have been pulled in with the first command.
reassign 569568 aptitude quit If this is a bug and not an effect of your particular setup, the bug would be in aptitude.
forcemerge 509100 569568 thanks Indeed, and it is already known that aptitude does not handle virtual packages in the build-dep command. Sven
Ah, I should switch back to libcap-dev.
I found a workaround. If you need to install build dependencies for package X, just create a fake package, which has "Depends", which are equal to X's "Build-Depends". Then install this fake package via aptitude. Possibility of such workaround means that aptitude already has all needed machinery. We just need to make aptitude to treat "Build-Depends" in similar way to "Depends"