I think the following shell session just about tells it all. Other tools work fine, but euse and 'equery uses' don't want to work. danny-pc root # euse -i dlloader ERROR: /etc/make.profile is not a symlink danny-pc root # ls -l /etc/make.profile lrwxrwxrwx 1 root root 48 Mar 8 11:13 /etc/make.profile -> ../usr/portage/profiles/default-linux/x86/2004.3 danny-pc root # ls /etc/make.profile/ make.defaults package.mask packages parent danny-pc root # mount | grep portage //gutenberg//portage on /usr/portage type cifs (rw,mand) danny-pc root # etcat -v gentoolkit [ Results for search key : gentoolkit ] [ Candidate applications found : 5 ] Only printing found installed programs. * app-portage/gentoolkit : [ ] 0.2.0_pre8-r1 (0) [M~ ] 0.2.0_pre10-r1 (0) [M~ ] 0.2.0_rc1 (0) [M~ ] 0.2.0_rc1-r1 (0) [ I] 0.2.0 (0) danny-pc root # cd /etc/ danny-pc etc # rm make.profile && ln -s ../usr/portage/profiles/default-linux/x8 6/2005.0 make.profile danny-pc etc # euse -i dlloaderreadlink: too many arguments Try `readlink --help' for more information. /usr/bin/euse: line 199: /make.defaults: No such file or directory ERROR: /etc/make.profile is not a symlink Reproducible: Always Steps to Reproduce: 1. mount /usr/portage over CIFS with POSIX extensions 2. create valid symlink for /etc/make.profile 3. start gentoolkit component that looks up use flags Actual Results: An incorrect error message was returned Expected Results: It should have described the given use flag danny-pc etc # emerge info Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5, glibc-2.3.4.20040808-r1, 2.6.10-gentoo-r7 i686) ================================================================= System uname: 2.6.10-gentoo-r7 i686 AMD Athlon(TM) MP 2400+ Gentoo Base System version 1.4.16 Python: dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb 25 2005, 16:13:09)] distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] dev-lang/python: 2.3.4-r1 sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4 sys-devel/binutils: 2.15.92.0.2-r1 sys-devel/libtool: 1.5.10-r4 virtual/os-headers: 2.6.10 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O3 -march=athlon-mp -pipe -fomit-frame-pointer -fsched-spec-load -fgcse-lm -fgcse-sm -momit-leaf-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -march=athlon-mp -pipe -fomit-frame-pointer -fsched-spec-load -fgcse-lm -fgcse-sm -momit-leaf-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig distlocks noinfo sandbox sfperms" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 / 3dnow 3dnowex X aalib acl alsa apm arts audiofile avi bash-completion berkdb bitmap-fonts cddb cdparanoia cdr crypt cups curl divx4linux dmx dvd dvdr emboss encode esd f77 fam flac foomaticdb fpx gdbm gif gnome gpm gtk gtk2 hal hardened imagemagick imap imlib ithreads jack java jpeg kde ldap libg++ libgda libwww mad mikmod mmx motif mp3 mpeg mysql nas ncurses nptl oggvorbis opengl oss pam pcre pdflib perl pic png povray python qt quicktime readline samba sdl snmp speex spell sse ssl svg svga tcpd tetex theora threads tiff truetype truetype-fonts type1-fonts xine xinerama xml xml2 xmms xprint xv zlib" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
Line 61, /usr/bin/euse Someone used -s to test for a symlink instead of -l. Doh! That doesn't fix the failure of readlink on the 2005.0 profile, but it does fix it on 2004.3
Err, its -L or -h.. or not? ;-) About the failure of readlink on the 2005.0 profile, see bug 75525 for the fix.
Yes, it's -L or -h. I was thinking of perl - but -s is wrong either way, so I'm at least half-right. ;)
Bug #87183 and Bug #84521 are duplicates. Resolve bug, mark it as duplicate of bug #75525
don't see any problem with equery in the report ... euse fixed in cvs, pending new gentoolkit release.
equery used the same incorrect file test operator as euse, and therefore wasn't duplicated in the report.
equery isn't written in bash, so that's not possible.
Hmm, so it is. I wonder what I was thinking about, then? It's been a while, but I thought I was having the same problem with 2 programs. I can't reproduce it now, so I guess I'm remembering wrong. N'er mind. :)
Just curious, why isn't this a dup of 75525?
The ultimate error in bug #75525 is "ERROR: /make.defaults is not readable". The error in this bug is "ERROR: /etc/make.profile is not a symlink". One is caused by using grep rather than egrep, whereas this one is caused by using the wrong file test operator. They are 2 different bugs in the same program, which does not constitute a duplicate.
fixed in 0.2.1_pre1. Sorry for the long delay.