Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 167042 - Allow ebuilds to provide specific information in "emerge --info"'s output
Summary: Allow ebuilds to provide specific information in "emerge --info"'s output
Status: RESOLVED WORKSFORME
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: 2007-02-15 14:39 UTC by Nguyen Thai Ngoc Duy (RETIRED)
Modified: 2007-02-15 16:20 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 Nguyen Thai Ngoc Duy (RETIRED) gentoo-dev 2007-02-15 14:39:21 UTC
When emerge --info is called, it traverses all installed packages and searches for some signals from ebuilds. If there is, it will show those ebuilds' version. The signal could be a variable set in the ebuilds (EMERGE_INFO=1 maybe).
Even better, if ebuilds has a special function (presumely pkg_info), then emerge --info will call that function and the function will provide more necessary info.
Traversing all installed packages may be overkill. If "emerge --info" accepts a package as argument, then we can limit the search range.
Comment 1 Marius Mauch (RETIRED) gentoo-dev 2007-02-15 14:58:37 UTC
Motivation / Use cases?
Comment 2 Nguyen Thai Ngoc Duy (RETIRED) gentoo-dev 2007-02-15 15:10:43 UTC
When there is a ruby-related bug, I usually have to ask dev-ruby/rubygems version. Other teams may need additional information like this.
Comment 3 Marius Mauch (RETIRED) gentoo-dev 2007-02-15 15:20:16 UTC
Well, if you just need the version of a package then profiles/info_pkgs should do it already, though I guess we'd need to make it a bit more intelligent to not display packages that aren't installed.
Comment 4 Nguyen Thai Ngoc Duy (RETIRED) gentoo-dev 2007-02-15 15:28:56 UTC
Yes it could be. However I would expect a way for ebuilds to collect more info, not just version, from user system. I believe I encountered a case like that but I don't remember it.
Comment 5 Marius Mauch (RETIRED) gentoo-dev 2007-02-15 16:20:57 UTC
Well, I'd rather not have random ebuilds inject random stuff into emerge --info. Keep in mind that emerge --info is just a general overview, not a complete system analysis tool, so if you need more information for certain groups of bugs a special tool to collect that information is IMO the way to go (that's what AFAIK the perl team has done)