Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 95643 - euse -i doesn't work
Summary: euse -i doesn't work
Status: RESOLVED DUPLICATE of bug 75525
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-10 01:46 UTC by Martin Horak
Modified: 2005-06-10 02:00 UTC (History)
0 users

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


Attachments
Trivial patch to correct euse behavior (euse.patch,409 bytes, patch)
2005-06-10 01:48 UTC, Martin Horak
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Horak 2005-06-10 01:46:05 UTC
Example:
# euse -i nls
readlink: too many arguments
Try `readlink --help' for more information.
./euse.orig: line 199: /make.defaults: No such file or directory
readlink: too many arguments
Try `readlink --help' for more information.
./euse.orig: 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

Reproducible: Always
Steps to Reproduce:
euse <whatever>

Actual Results:  
readlink: too many arguments
Try `readlink --help' for more information.
./euse.orig: line 199: /make.defaults: No such file or directory
readlink: too many arguments
Try `readlink --help' for more information.
./euse.orig: 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:  
Something reasonable.

Fix:
--- ./euse.orig 2005-06-10 10:40:23.000000000 +0200
+++ /usr/bin/euse       2005-06-10 10:25:37.000000000 +0200
@@ -154,7 +154,7 @@
        curdir="$(readlink -f ${MAKE_PROFILE_PATH})"
        
        while [ ! -f "${curdir}/make.defaults" -a -f "${curdir}/parent" ]; do
-               parent="$(grep -v '(^#|^ *$)' ${curdir}/parent)"
+               parent="$(egrep -v '(^#|^ *$)' ${curdir}/parent)"
                curdir="$(readlink -f ${curdir}/${parent})"
        done
Comment 1 Martin Horak 2005-06-10 01:48:29 UTC
Created attachment 60973 [details, diff]
Trivial patch to correct euse behavior
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2005-06-10 02:00:42 UTC
Step 1 - search for your bug



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