NEEDED is not parsed for extra dependencies
It would be a very good idea to parse
NEEDED.ELF.2 for additional runtime dependencies, for a few reasons:
RDEPENDcan be outdated or just plain wrong sometimes.
RDEPENDby design never contains anything in the
@systemprofile or compiler runtimes, including libstdc++ and friends, which could cause issues if someone managed to build an entire system out of simple C apps then tried to install a C++ app without the runtime.
The apk-tools package upstream already seems to support
foo is a SONAME, therefore the apk side should be fairly easy. What we really should do, however, is strip SONAMEs that are provided by packages in