Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 100148 - "equery files" over a pipe should only print filenames
Summary: "equery files" over a pipe should only print filenames
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:
 
Reported: 2005-07-24 11:56 UTC by Marien Zwart (RETIRED)
Modified: 2005-11-29 13:01 UTC (History)
0 users

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


Attachments
(ugly) patch to equery from gentoolkit-0.2.1_pre4 (equery-list-pipe-output.patch,871 bytes, patch)
2005-07-24 11:57 UTC, Marien Zwart (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Marien Zwart (RETIRED) gentoo-dev 2005-07-24 11:56:11 UTC
"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
Comment 1 Marien Zwart (RETIRED) gentoo-dev 2005-07-24 11:57:10 UTC
Created attachment 64212 [details, diff]
(ugly) patch to equery from gentoolkit-0.2.1_pre4
Comment 2 Petteri Räty (RETIRED) gentoo-dev 2005-07-28 13:26:35 UTC
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. 
Comment 3 Paul Varner (RETIRED) gentoo-dev 2005-10-12 23:48:04 UTC
Will be fixed in gentoolkit-0.2.1
Comment 4 Paul Varner (RETIRED) gentoo-dev 2005-10-13 15:08:05 UTC
Fix is in subversion.
Comment 5 Marien Zwart (RETIRED) gentoo-dev 2005-11-29 13:01:21 UTC
This seems to be fixed in gentoolkit-0.2.1_rc2, closing bug.