Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 87183 - euse -i quits with error: "readlink: too many arguments"
Summary: euse -i quits with error: "readlink: too many arguments"
Status: RESOLVED DUPLICATE of bug 75525
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-29 16:15 UTC by Sterling Christensen
Modified: 2005-07-17 13:06 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 Sterling Christensen 2005-03-29 16:15:01 UTC
Line 199 in /usr/bin/euse seems to call a "get_make_defaults" function, which uses readlink twice, so my theory is that either MAKE_PROFILE_PATH or ${curdir}/${parent} has a space in it at that point in the script.

Reproducible: Always
Steps to Reproduce:
1. Type "euse -i blah" (replace blah with any use flag)

Actual Results:  
sterling ~ # euse -i minimal
readlink: too many arguments
Try `readlink --help' for more information.
/usr/bin/euse: line 199: /make.defaults: No such file or directory
readlink: too many arguments
Try `readlink --help' for more information.
/usr/bin/euse: line 199: /make.defaults: No such file or directory
readlink: too many arguments
Try `readlink --help' for more information.
readlink: too many arguments
Try `readlink --help' for more information.
ERROR: /make.defaults is not readable
sterling ~ # 


Gentoo Base System version 1.6.10
Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.4.3-20050110,
glibc-2.3.4.20050125-r1, 2.6.11-gentoo-r4 i686)
=================================================================
System uname: 2.6.11-gentoo-r4 i686 AMD Athlon(tm) XP 3200+
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Mar 29 2005, 09:20:10)]
dev-lang/python:     2.3.5
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.5
sys-devel/binutils:  2.15.92.0.2-r7
sys-devel/libtool:   1.5.14
virtual/os-headers:  2.6.8.1-r4
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe"
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/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo/
http://gentoo.osuosl.org/"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowex X acpi alsa apm avi berkdb bitmap-fonts crypt divx4linux
emboss encode foomaticdb fortran gdbm gif gnome gpm gtk gtk2 imlib jpeg kde
kdeenablefinal libg++ libwww mad mikmod mmx mmxext motif mp3 mpeg ncurses nls
nptl oggvorbis opengl pam pdflib perl png python qt quicktime readline real
samba sdl spell sse ssl tcpd theora tiff truetype truetype-fonts type1-fonts
userlocales xml2 xmms xv xvid zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, PORTDIR_OVERLAY
Comment 1 Ryan Hill (RETIRED) gentoo-dev 2005-03-29 16:33:02 UTC
change line 157 of /usr/bin/euse from

parent="$(grep -v '(^#|^ *$)' ${curdir}/parent)"

to

parent="$(egrep -v '(^#|^ *$)' ${curdir}/parent)"
Comment 2 Sterling Christensen 2005-03-29 16:59:17 UTC
Yay, that fixed it! Thanks.
Comment 3 Octavio Ruiz (Ta^3) 2005-04-04 12:20:37 UTC
Bug #87183 and Bug #84521 are duplicates.

Resolve bug, mark it as duplicate of bug #75525
Comment 4 Marius Mauch (RETIRED) gentoo-dev 2005-04-07 16:59:47 UTC

*** This bug has been marked as a duplicate of 75525 ***