Packages can be selected by passing a file that's owned by a currently-installed package. For example, the following will result in app-admin/sudo and app-admin/logrotate being selected: # emerge -av /etc/sudoers /etc/logrotate.conf However, this requires *full* path names (starting from '/') in order to work. This pretty much negates its convenience, and will force the user to run something boilerplate-ish like the following (which also has no path-completion since it uses substitution): # emerge -av `pwd`/<filename> I think it'd be more useful if you could specify a file that's in the context of the current-working directory. You could optionally(?) use `./' to make the fact that you're trying to pass a `file' explicit. Example usage (aided by the shell's tab-completion): # cd /usr/src # emerge -Cav ./linux-2.6.36-r7
This is fixed in git: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=dfcef19feff049004e0a7043fb980ecdc711a930
This is fixed in 2.1.9.36 and 2.2.0_alpha20.