Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 84521 - euse doesn't recognize /etc/make.profile symlink, and therefore doesn't run
Summary: euse doesn't recognize /etc/make.profile symlink, and therefore doesn't run
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2005-03-08 09:33 UTC by Danny Sauer
Modified: 2005-04-24 21:23 UTC (History)
1 user (show)

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 Danny Sauer 2005-03-08 09:33:58 UTC
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
Comment 1 Danny Sauer 2005-03-08 09:39:24 UTC
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
Comment 2 Octavio Ruiz (Ta^3) 2005-03-12 20:15:04 UTC
Err,  its -L or -h.. or not? ;-)

About the failure of readlink on the 2005.0 profile, see bug 75525 for the fix.
Comment 3 Danny Sauer 2005-03-12 20:43:08 UTC
Yes, it's -L or -h.  I was thinking of perl - but -s is wrong either way, so I'm at least half-right. ;)
Comment 4 Octavio Ruiz (Ta^3) 2005-04-04 12:20:43 UTC
Bug #87183 and Bug #84521 are duplicates.

Resolve bug, mark it as duplicate of bug #75525
Comment 5 Marius Mauch (RETIRED) gentoo-dev 2005-04-07 17:08:57 UTC
don't see any problem with equery in the report ...
euse fixed in cvs, pending new gentoolkit release.
Comment 6 Danny Sauer 2005-04-07 20:01:15 UTC
equery used the same incorrect file test operator as euse, and therefore wasn't duplicated in the report.
Comment 7 Marius Mauch (RETIRED) gentoo-dev 2005-04-07 20:24:21 UTC
equery isn't written in bash, so that's not possible.
Comment 8 Danny Sauer 2005-04-07 21:23:40 UTC
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. :)
Comment 9 Aaron Walker (RETIRED) gentoo-dev 2005-04-19 04:46:47 UTC
Just curious, why isn't this a dup of 75525?
Comment 10 Danny Sauer 2005-04-19 05:44:45 UTC
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.
Comment 11 Marius Mauch (RETIRED) gentoo-dev 2005-04-24 21:23:09 UTC
fixed in 0.2.1_pre1. Sorry for the long delay.