Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 212573 - app-portage/gentoolkit - euse patch to display additional information for installed packages
Summary: app-portage/gentoolkit - euse patch to display additional information for ins...
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 170220
  Show dependency tree
 
Reported: 2008-03-07 10:59 UTC by Andreas Waidler
Modified: 2008-04-24 02:32 UTC (History)
0 users

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


Attachments
The patch described. (euse.patch,2.72 KB, patch)
2008-03-07 11:01 UTC, Andreas Waidler
Details | Diff
euse-info-installed-2.patch (euse-info-installed-2.patch,6.83 KB, patch)
2008-03-07 18:43 UTC, michael@smith-li.com
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Waidler 2008-03-07 10:59:47 UTC
I wrote a patch for euse (current revision from SVN (398)).

The patch adds an option (-I/--info-installed) which is similar to --info/-i
but gives some information about the installed packages matching the passed
USE flag(s).

On global USE flags all packages matching the USE flag that are printed will be
displayed additionally. The USE flag is even displayed if there was no
installed package found. On local USE flags only descriptions for installed
packages will be printed.

I think this option is very useful if one wants to check the impact of some USE
flags on the current system, i.e. if they could be enabled or disabled
globally.


Example:

arandes@T22 ~ $ euse -i gnutls nodrm
global use flags (searching: gnutls nodrm)
************************************************************
[-    ] gnutls - Adds support for net-libs/gnutls (TLS 1.0 and SSL 3.0 support)

local use flags (searching: gnutls nodrm)
************************************************************
[-    ] nodrm (app-text/pdftk):
Decrypt a document with the user_pw even if it has an owner_pw set

[-    ] nodrm (app-text/xpdf):
Disable the drm feature decoder.


arandes@T22 ~ $ euse-modified -I gnutls nodrm
global use flags (searching: gnutls nodrm)
************************************************************
[-    ] gnutls - Adds support for net-libs/gnutls (TLS 1.0 and SSL 3.0 support)
Installed packages matching this USE flag:
net-libs/libetpan
net-wireless/wpa_supplicant
mail-mta/msmtp
net-misc/curl

local use flags (searching: gnutls nodrm)
************************************************************
[-    ] nodrm (app-text/xpdf):
Disable the drm feature decoder.

Reproducible: Always

Steps to Reproduce:
Comment 1 Andreas Waidler 2008-03-07 11:01:44 UTC
Created attachment 145472 [details, diff]
The patch described.
Comment 2 michael@smith-li.com 2008-03-07 18:43:45 UTC
Created attachment 145496 [details, diff]
euse-info-installed-2.patch

Altogether attachment #145472 [details, diff] is good work in keeping with the style of euse. Nevertheless, here are some improvements:

1) Use equery list instead of eix so as not to draw in unnecessary dependencies.
2) Replaced some bare word loops with whitespace-friendly list handling mechanisms.
3) Replaced a lot of subshells and pipes with more terse/lower overhead options.

Trivial changes:
 - Added the -I option to --help and made some whitespace changes for readability (please confirm whether or not I described the new option adequately).
 - Changed the copyright date.

TODO:
 - Do we want to increase the version number?
 - Update the man page
Comment 3 Paul Varner (RETIRED) gentoo-dev 2008-03-13 22:41:18 UTC
Thanks Andreas and Micheal.  I have added the patch and updated the man page.

$ svn commit -m "Add --info-installed flag to euse. Thanks to Andreas Waidler for providing the patch" ChangeLog src/euse/euse src/euse/euse.1
Sending        ChangeLog
Sending        src/euse/euse
Sending        src/euse/euse.1
Transmitting file data ...
Committed revision 480.
Comment 4 Paul Varner (RETIRED) gentoo-dev 2008-04-24 02:32:52 UTC
Released in gentoolkit-0.2.4_rc4