Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 96764 - equery output format flexibility
Summary: equery output format flexibility
Status: RESOLVED WORKSFORME
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:
Depends on:
Blocks:
 
Reported: 2005-06-22 02:30 UTC by Ervin Németh
Modified: 2007-10-08 23:26 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 Ervin Németh 2005-06-22 02:30:52 UTC
It would by nice if the ebuild names in the output of equery could be directly piped to emerge.

The current output (if not a terminal) looks like sys-apps/python-2.2.1-r2. A very useful format would be the form sys-apps/python so "equery belongs /lib/modules | xargs emerge" could update all kernel-dependent packages after kernel upgrade.

Currently "equery belongs /lib/modules | sed 's/^/=/' | xargs emerge" does the job, but the drawback is that it doesn't update to newer packages.
Comment 1 Paul Varner (RETIRED) gentoo-dev 2005-09-22 13:55:35 UTC
I'm undecided on this one:

In the meantime "equery belongs /lib/modules | sed
's/-r[0-9].*$//;s/\(^.*\/*\)-.*$/\1/' | xargs emerge" will do what you want.
Comment 2 Ervin Németh 2005-09-23 00:55:42 UTC
My concern is that package versions show lots of anomalies ranging from 5b
(portmap), alpha5 (libtheora), pre7 (module-init-tools) to v3 (libstdc++),
libxml2, ipw2200 and so on. So it is really hard to cut off the version.

However I have discovered sys-kernel/module-rebuild in portage which is what I
seek. If you wish, mark this report as WONTFIX.

But thank you for your precious time.
Comment 3 Marius Mauch (RETIRED) gentoo-dev 2007-10-08 23:26:19 UTC
wrong resolution