Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 288663 - Record shebang dependencies in NEEDED or similar file
Summary: Record shebang dependencies in NEEDED or similar file
Status: CONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Enhancement/Feature Requests (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-11 23:26 UTC by Bruno
Modified: 2009-10-12 08:27 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bruno 2009-10-11 23:26:38 UTC
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
Comment 1 Alec Warner (RETIRED) archtester gentoo-dev Security 2009-10-12 04:29:12 UTC
Useful how?
Comment 2 Zac Medico gentoo-dev 2009-10-12 04:42:16 UTC
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.
Comment 3 Bruno 2009-10-12 08:27:29 UTC
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.