"equery files foo|xargs grep bar" doesn't work because there's too much fluff in the output. Find attached an ugly patch to gentoolkit-0.2.1_pre4's equery that makes the output less fluffy: it doesn't print the cpv and the "-> target" for symlinks when equery is used in a pipe. The not printing "->" bit is fugly, but probably works. Reproducible: Always Steps to Reproduce: equery f gentoolkit|xargs grep equery Actual Results: Interesting errors about the file "*" and option "->" not existing Expected Results: grepped through the contents. Gentoo Base System version 1.12.0_pre2 Portage 1.589-cvs (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r1, 2.6.12-gentoo-r6-m3-i2c i686) ================================================================= System uname: 2.6.12-gentoo-r6-m3-i2c i686 AMD Athlon(tm) XP 2600+ Python: dev-lang/python-2.4.1-r1 [2.4.1 (#1, Jul 3 2005, 00:23:11)] distcc: No such file or directory [disabled] dev-lang/python: 2.4.1-r1 sys-apps/sandbox: 1.2.11 sys-devel/autoconf: 2.59-r7, 2.13 sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.6 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.18-r1 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer -fweb -frename-registers" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/texmf/web2c /etc/env.d" CXXFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer -fweb -frename-registers -fvisibility-inlines-hidden" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig candy ccache collision-protect distlocks noauto sandbox sfperms strict userpriv usersandbox verify-rdepend" GENTOO_MIRRORS="http://ftp.easynet.nl/mirror/gentoo/" LANG="en_US.UTF-8" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage/private /usr/local/portage/pub /usr/local/portage/gentopia" SYNC="rsync://rsync.nl.gentoo.org/gentoo-portage" USE="x86 3dnow 3dnowex 3dnowext X a52 alsa ansi bonobo bzip2 cairo ccache cdr crypt eds emacs evo evo2 faad fbcon firefox flac gif glut gnome gstreamer gtk2 hal javascript jit jpeg kdeenablefinal kqemu libcaca mad maildir md5sum mikmod mmx mmx2 mmxext mng mono mozdevelop moznomail mozsvg mpeg ncurses nethack network new-login nfs nls nntp no-helpbrowser no-old-linux nonfsv4 nptl nptlonly ogg oggvorbis opengl pam png python qemu-fast quicktime readline real rtc sdl softmmu spell splash sse ssl startup-notification svg symlink tetex theora truetype truetype-fonts unicode userlocales vorbis win32codecs xinerama xml2 xv zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CBUILD, CTARGET, LC_ALL, LDFLAGS, LINGUAS Config files: /etc/make.conf, /etc/portage/bashrc, /etc/portage/package.unmask, /etc/portage/package.keywords
Created attachment 64212 [details, diff] (ugly) patch to equery from gentoolkit-0.2.1_pre4
Until this gets fixed you can use qlist from portage-utils. It works very well here and doesn't output anything else than the file names.
Will be fixed in gentoolkit-0.2.1
Fix is in subversion.
This seems to be fixed in gentoolkit-0.2.1_rc2, closing bug.