Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 352208 - [emerge] Selecting packages by passing a package-owned `file' only works with absolute paths
Summary: [emerge] Selecting packages by passing a package-owned `file' only works with...
Status: RESOLVED FIXED
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: InVCS
Depends on:
Blocks: 349307
  Show dependency tree
 
Reported: 2011-01-20 07:05 UTC by Dean Matzkov
Modified: 2011-02-05 08:46 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 Dean Matzkov 2011-01-20 07:05:16 UTC
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
Comment 2 Zac Medico gentoo-dev 2011-02-05 08:46:43 UTC
This is fixed in 2.1.9.36 and 2.2.0_alpha20.