Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 95741 - patch to add: emerge info <package(s)>
Summary: patch to add: emerge info <package(s)>
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All Other
: High enhancement (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 15689 136244
  Show dependency tree
 
Reported: 2005-06-10 21:45 UTC by Nathaniel McCallum (RETIRED)
Modified: 2006-07-11 12:23 UTC (History)
1 user (show)

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


Attachments
patch to add the feature (emerge_info.patch,2.74 KB, patch)
2005-06-10 21:46 UTC, Nathaniel McCallum (RETIRED)
Details | Diff
Updated patch (emerge_info.patch,2.66 KB, patch)
2005-06-10 22:44 UTC, Nathaniel McCallum (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nathaniel McCallum (RETIRED) gentoo-dev 2005-06-10 21:45:41 UTC
The following patch adds an optional package argument(s) to emerge info.  emerge will then search for the specified packages.  If they are installed and any of the settings for these packages are different than what the current system has, those differences are displayed.

For instance, if you have package 'foo' that was installed.  After you installed foo, you changed your CFLAGS.  When you do 'emerge info', all you get is what the current settings are (not what you emerged foo as).  Thus 'emerge info foo' provides both current system settings and the old CFLAGS for foo.
Comment 1 Nathaniel McCallum (RETIRED) gentoo-dev 2005-06-10 21:46:13 UTC
Created attachment 61034 [details, diff]
patch to add the feature
Comment 2 Jason Stubbs (RETIRED) gentoo-dev 2005-06-10 22:22:33 UTC
You should use portage.db[portage.root]["vartree"].dbapi.aux_get(pkg, 
mydesiredvars) instead of reading the files directly. Other than that, it 
looks fine. 
Comment 3 Nathaniel McCallum (RETIRED) gentoo-dev 2005-06-10 22:44:18 UTC
Created attachment 61036 [details, diff]
Updated patch

Yes sir ;)
Comment 4 Jason Stubbs (RETIRED) gentoo-dev 2005-06-18 01:46:02 UTC
I ended up making a few small changes. In particular, I got rid of the 
mysettings temporary and compared directly to portage.settings. There were 
also two small bugs: 
 
1) diff_found was in the wrong place which would cause the per-package header 
to be printed for all packages after the first differing package. 
2) Using None when a variable is not set globally would cause that variable to 
always be printed for every package. ("" != None) 
 
Comment 5 Jason Stubbs (RETIRED) gentoo-dev 2005-07-14 05:48:14 UTC
Fixed on or before 2.0.51.22-r1 
Comment 6 Jason Stubbs (RETIRED) gentoo-dev 2005-07-14 06:58:52 UTC
Looking through the batch of bugs, I'm not sure that some of these are 
actually fixed in stable. Others, the requirements have possibly changed after 
the initial fix was committed. 
 
If you think this bug has been closed incorrectly, please reopen or ask that 
it be reopened. 
Comment 7 Alec Warner (RETIRED) archtester gentoo-dev Security 2006-03-16 08:20:44 UTC
Doesn't look like it to me.
Comment 8 Zac Medico gentoo-dev 2006-07-10 14:12:40 UTC
This feature would be really useful.  It shouldn't be much work to sync it up with trunk, so I'll go ahead and do that...
Comment 9 Zac Medico gentoo-dev 2006-07-10 16:05:37 UTC
An updated version of this patch is in svn r3834.
Comment 10 Zac Medico gentoo-dev 2006-07-11 12:23:21 UTC
This has been released in 2.1.1_pre2-r7.