Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 96764

Summary: equery output format flexibility
Product: Portage Development Reporter: Ervin Németh <ervin.nemeth+org.gentoo.bugs>
Component: ToolsAssignee: Portage Tools Team <tools-portage>
Status: RESOLVED WORKSFORME    
Severity: enhancement    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

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