NEEDED is not parsed for extra dependencies
It would be a very good idea to parse NEEDED
or NEEDED.ELF.2
for additional runtime dependencies, for a few reasons:
-
RDEPEND
can be outdated or just plain wrong sometimes. -
RDEPEND
by design never contains anything in the@system
profile 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 so:foo
where 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 RDEPEND
.