Currently portage generates NEEDED file in vdb which lists ELF dependencies of executable of a package. It would be useful to have an equivalent listing of all shebang dependencies for quick dependency check. It could contain entries like: /etc/init.d/bootmisc /sbin/runscript
Useful how?
I suppose that it could be used for a QA feature which verifies that all of the providers are listed in RDEPEND. It would have to look up the owning package for each file at merge time. In order to optimize it, we could maintain a cache for owners of files installed in {/usr,}/{s,}bin.
The use I thought about was rather for verifying presence of dependencies (e.g. like revdep-rebuild) without having to scan all executable files. But sure it would be nice for QA as well as warning when unmerging a shebang interpreter. This would come useful when installing to a different ROOT with INSTALL_MASK and checking if the resulting system does not miss dependencies.