Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 54576 - bug in 2.0.51-pre10 - unbalanced quotes in ebuild.sh
Summary: bug in 2.0.51-pre10 - unbalanced quotes in ebuild.sh
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All All
: High major (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2004-06-20 16:42 UTC by Robin Johnson
Modified: 2004-08-16 11:03 UTC (History)
0 users

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


Attachments
fix for described bugs (ebuild.sh-quotefix.patch,1.79 KB, patch)
2004-06-20 16:43 UTC, Robin Johnson
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-06-20 16:42:41 UTC
the java-config, gcc, perl, grep, python-config functions all contain unbalanced quotes.
patch attached.
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-06-20 16:43:25 UTC
Created attachment 33713 [details, diff]
fix for described bugs
Comment 2 Brian Harring (RETIRED) gentoo-dev 2004-06-20 20:59:54 UTC
Actually, the missing statements are still screwed up.
say grep is missing-
`type -p grep || echo "missing: grep"` "$@"
so, bash ends up w/ this line (which it tries to execute)
"missing: grep $@"
...and... bash complains that it can't find the binary 'missing', rather then echoing a "sorry, but you borked your system something fierce and I couldn't find grep.  Can we still be friends?"

g_bin=`type -p grep`
if [ $? != 0 ]; then
    echo "missing: grep $@" >&2
else
    $g_bin "$@"
fi

is the correct way of doing this, although you'll probably want to tag a non-zero return to the missing binary portion.
Comment 3 Brian Harring (RETIRED) gentoo-dev 2004-06-21 12:49:10 UTC
Worth taking a look at bug #54652, it has a generic QA interceptor generation setup abusing eval.
Also, the interceptors (at least for >=.51_pre10) aren't ever enabled due to a EBUILD_PHASE bug.
Comment 4 Brian Harring (RETIRED) gentoo-dev 2004-08-16 11:03:31 UTC
Long since fixed, closing...