Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 75525

Summary: euse can't read make.defaults (readlink: too many arguments) 2005.0 profile
Product: Portage Development Reporter: Martin Vuk <martin>
Component: ToolsAssignee: Portage Tools Team <tools-portage>
Status: RESOLVED FIXED    
Severity: blocker CC: amax, asokol, bash83, david.morgan, dju, dushistov, garo, gdrasny, gentoo.20.calle2003, harrisl, henning, horakm, joerg.schaible, kalium, karol.jurak, n.schlumberger, phajdan.jr, rockoo, skyleach, tacvbo, tech31842, verby, xero
Priority: Highest Keywords: InVCS
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: the trivial patch

Description Martin Vuk 2004-12-24 03:18:23 UTC
Euse exits withthe folo

Reproducible: Always
Steps to Reproduce:
1.run the program euse
2.
3.

Actual Results:  
euse issued the following error msg:

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

Expected Results:  
work:)

Portage 2.0.51-r8 (default-linux/x86/2004.2, gcc-3.3.4, glibc-2.3.3.20040420-r1,
2.4.22 i686)
=================================================================
System uname: 2.4.22 i686 Intel(R) Pentium(R) 4 CPU 2.60GHz
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.2.3-r5,dev-lang/python-2.3.3-r1 [2.3.3
(#1, Aug 25 2004, 09:51:00)]
distcc 2.13 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.2.3-r5, 2.3.3-r1
sys-devel/autoconf:  2.59-r4
sys-devel/automake:  1.8.5-r1
sys-devel/binutils:  2.14.90.0.8-r1
sys-devel/libtool:   1.4.3-r4
virtual/os-headers:  2.4.19-r1, 2.4.26
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=i686 -O3 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config
/usr/lib/mozilla/defaults/pref /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="-O2 -mcpu=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig buildpkg ccache distlocks fixpackages sandbox
sfperms"
GENTOO_MIRRORS="ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo
http://ftp.easynet.nl/mirror/gentoo/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/
http://ftp.uni-erlangen.de/pub/mirrors/gentoo
ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X acl apache2 apm avi berkdb bitmap-fonts crypt cups doc encode foomaticdb
fortran gdbm gif gnome gpm gtk gtk2 ipv6 jpeg kde libwww mad mikmod motif mpeg
ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime
readline sdl spell ssl svga tcpd truetype unicode usb xml2 xmms xv zlib"
Comment 1 Marius Mauch (RETIRED) gentoo-dev 2004-12-24 03:31:57 UTC
I can't reproduce that here even after switching to the x86/2004.2 profile. There is a bug with the sanity check, but that's not the main issue here. Can you run the following bash code:

curdir="$(readlink -f ${MAKE_PROFILE_PATH})"
	
while [ ! -f "${curdir}/make.defaults" -a -f "${curdir}/parent" ]; do
	parent="$(grep -v '(^#|^ *$)' ${curdir}/parent)"
	curdir="$(readlink -f ${curdir}/${parent})"
	echo "${curdir}"
done

echo "${curdir}/make.defaults"
Comment 2 Søren Chrestensen 2004-12-24 04:15:59 UTC
Try delete your make.defaults and the error comes. 

You should just do an emerge sync and the whole thing will work. You just sync'ed when all make.defaults was deleted.

Also one thing. What does euse do know when make.defaults is empty in profiledir? Shouldn't it look in the parent?
Comment 3 Martin Vuk 2004-12-24 05:16:25 UTC
Thanks, 
After emerge sync euse works.
Comment 4 Jordan 2005-03-06 20:06:42 UTC
I'm having this problem and it's because of a problem with the euse script and grep.

On line 157 of the script there's this line:
parent="$(grep -v '(^#|^ *$)' ${curdir}/parent)"

this is failing because it's using an extended regex and it needs grep to be ran with egrep or grep -E. I changed -v to -Ev and the problem was solved.
Comment 5 Octavio Ruiz (Ta^3) 2005-03-12 19:21:56 UTC
Yep, I solved the problem too using `egrep` (same as `grep -E`)... I think its a typo bug, cos' genone use also egrep inside the script, (It's easy to forget an e letter like sufix)...

Its important (and trivial) to solve this bug. 2005.0 profile do not have make.profile (and there is needed to use the parent one.. ) so must be fixed before 2005.0 release.

:-)
Comment 6 David Morgan 2005-03-29 11:16:06 UTC
2005.0 has been released now, and euse (well, euse -i is all I've tested) doesn't work with the profile (/usr/portage/profiles/default-linux/x86/2005.0)

Comment 7 Octavio Ruiz (Ta^3) 2005-04-04 12:20:49 UTC
Bug #87183 and Bug #84521 are duplicates.
Comment 8 John Nilsson 2005-04-05 08:40:22 UTC
Why hasn't this been fixed yet?
Comment 9 Marius Mauch (RETIRED) gentoo-dev 2005-04-07 16:58:30 UTC
*** Bug 87720 has been marked as a duplicate of this bug. ***
Comment 10 Marius Mauch (RETIRED) gentoo-dev 2005-04-07 16:59:47 UTC
*** Bug 87183 has been marked as a duplicate of this bug. ***
Comment 11 Marius Mauch (RETIRED) gentoo-dev 2005-04-07 17:06:07 UTC
*** Bug 87480 has been marked as a duplicate of this bug. ***
Comment 12 Jakub Moc (RETIRED) gentoo-dev 2005-04-08 01:42:14 UTC
This is annoying and 2004.3 is now deprecated. Could some please commit this trivial patch? 
Comment 13 Octavio Ruiz (Ta^3) 2005-04-08 04:44:42 UTC
Huum?

cat /usr/portage/profiles/default-linux/x86/2004.3/deprecated
cat: /usr/portage/profiles/default-linux/x86/2004.3/deprecated: No such file or directory

2004.3 is no depecrated in any way.
Comment 14 Jakub Moc (RETIRED) gentoo-dev 2005-04-08 07:15:08 UTC
Comment #13: Maybe you should emerge sync at least before writing. Thx. 
Comment 15 Henning Schild 2005-04-09 04:27:09 UTC
Created attachment 55750 [details, diff]
the trivial patch 

hopefully someone will fix that problem
Comment 16 Henning Schild 2005-04-11 00:42:56 UTC
I guess this tool is not developed anymore. equery is the new tool.
Comment 17 barthek 2005-04-11 01:18:51 UTC
ok, but then how can you use equery to display USE flags description?
i didnt find the option to replace euse usage.
Comment 18 Daniel Webert 2005-04-12 11:32:27 UTC
- euse is in app-portage/gentoolkit which is a stable-pkg
- 2004.3 is depr. and 2005.0 is "stable"
- euse does not work w/ 2005.0
-> plz fix it

btw. what is happening to the stables - in the last 2 months i had many probs with have-to-work-out-of-the-box stables :( - it is a lot of addional work at the moment for me to use gentoo for production, if stables dont work ...
Comment 19 Jakub Moc (RETIRED) gentoo-dev 2005-04-13 11:53:22 UTC
*** Bug 88679 has been marked as a duplicate of this bug. ***
Comment 20 Simone Piccinini 2005-04-14 03:42:52 UTC
change '(^#|^ *$)' to '^#\|^ *$' works for me.
Comment 21 Daniel Webert 2005-04-16 13:49:26 UTC
"patch" works fine - plz fix
Comment 22 cazzantonio 2005-04-17 13:13:29 UTC
i've synced tokday and the bug is still not fixed...
the patch is very simple...  you only have to write "egrep" in place of "grep" at line 157...
Is there any reason for this kind of behaviour
Is there any developer? Is Gentoo still mantained at all?
Comment 23 Jakub Moc (RETIRED) gentoo-dev 2005-04-17 13:39:05 UTC
Comment #22: Sorry, emerge sync won
Comment 24 Jakub Moc (RETIRED) gentoo-dev 2005-04-17 13:39:05 UTC
Comment #22: Sorry, emerge sync won´t fix this, gentoolkit needs version bump ;-)
Comment 25 Lina Pezzella (RETIRED) gentoo-dev 2005-04-19 07:50:05 UTC
*** Bug 83327 has been marked as a duplicate of this bug. ***
Comment 26 Marius Mauch (RETIRED) gentoo-dev 2005-04-24 21:23:06 UTC
fixed in 0.2.1_pre1. Sorry for the long delay.
Comment 27 Daniel Webert 2005-04-25 11:57:12 UTC
marius - what's about the broken-stable issue 2005.0/gentoolkit?
Comment 28 Jakub Moc (RETIRED) gentoo-dev 2005-05-10 06:10:49 UTC
*** Bug 92108 has been marked as a duplicate of this bug. ***
Comment 29 Jakub Moc (RETIRED) gentoo-dev 2005-05-29 02:47:45 UTC
*** Bug 94356 has been marked as a duplicate of this bug. ***
Comment 30 Jason Bucata 2005-05-29 13:55:29 UTC
I filed duplicate bug 94356 when I encountered, and found the trivial fix for,
this bug.  I did a search in Bugzilla first but found no open bugs on this
issue.  It turns out that this bug is marked "RESOLVED FIXED" when it's
obviously not.  Can somebody please reopen this until the new development
version gets to stable?  Otherwise I suspect you're going to get a rash of
additional dupe bugs until it is.
Comment 31 Jakub Moc (RETIRED) gentoo-dev 2005-06-10 02:00:42 UTC
*** Bug 95643 has been marked as a duplicate of this bug. ***
Comment 32 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2005-06-10 13:23:10 UTC
euse --help

Notes: (...) It also might have issues with cascaded profiles. (...)

I think it's no longer actual (I'm using gentoolkit-0.2.1_pre2).
Comment 33 Paul Varner (RETIRED) gentoo-dev 2005-07-15 10:43:29 UTC
*** Bug 99108 has been marked as a duplicate of this bug. ***
Comment 34 Jakub Moc (RETIRED) gentoo-dev 2005-07-17 14:49:22 UTC
*** Bug 99359 has been marked as a duplicate of this bug. ***
Comment 35 Jakub Moc (RETIRED) gentoo-dev 2005-07-23 11:04:07 UTC
*** Bug 100046 has been marked as a duplicate of this bug. ***
Comment 36 Jakub Moc (RETIRED) gentoo-dev 2005-08-07 10:18:40 UTC
*** Bug 101649 has been marked as a duplicate of this bug. ***
Comment 37 Karol Jurak 2005-08-14 12:28:34 UTC
*** Bug 102527 has been marked as a duplicate of this bug. ***
Comment 38 Jakub Moc (RETIRED) gentoo-dev 2005-08-30 12:55:22 UTC
*** Bug 104290 has been marked as a duplicate of this bug. ***
Comment 39 Ryan Hill (RETIRED) gentoo-dev 2005-09-03 14:37:00 UTC
could someone please commit this one line fix to the stable gentoolkit package
(0.2.0) or stabilize a version that works?
Comment 40 Jakub Moc (RETIRED) gentoo-dev 2005-11-23 02:07:12 UTC
*** Bug 113313 has been marked as a duplicate of this bug. ***