Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 59358 - ewarn: command not found
Summary: ewarn: command not found
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-04 02:17 UTC by barthek
Modified: 2004-09-23 00:34 UTC (History)
0 users

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


Attachments
Patch to fix various points about ewarn problem (fix-prepstrip.patch,2.06 KB, patch)
2004-09-23 00:34 UTC, Kevin F. Quinn (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description barthek 2004-08-04 02:17:38 UTC
since some time i keep getting these errors when emerging packages (example taken when building strace):
/usr/lib/portage/bin/prepstrip: line 38: ewarn: command not found

i re-emerged emerge & baselayout, emerge synced portage tree but the error
is still appearing.
/sbin/functions.sh contains valid ewarn function and also init scripts, which use ewarn, work ok.
Comment 1 barthek 2004-08-04 02:18:31 UTC
of course i meant 'emerged portage & baselayout' :)
Comment 2 Tom Knight (RETIRED) gentoo-dev 2004-08-04 02:25:31 UTC
Looks like prepstrip needs a 'source /sbin/functions.sh' somewhere.
Comment 3 Nicholas Jones (RETIRED) gentoo-dev 2004-08-04 19:50:05 UTC
Yeah... The backport broke 2.0.50. That'll be fixed soon.
Comment 4 Brian Harring (RETIRED) gentoo-dev 2004-08-11 17:04:16 UTC
Fixed in pre14.
Comment 5 barthek 2004-08-23 02:31:39 UTC
when would the fixed version be put in portage tree ?

Comment 6 Kevin F. Quinn (RETIRED) gentoo-dev 2004-09-23 00:34:46 UTC
Created attachment 40199 [details, diff]
Patch to fix various points about ewarn problem

This patch adds the source /sbin/functions.sh at the top of prepstrip, as
previously mentioned.  There are other related issues.	The "ewarn" bit is
supposed to pick up shared objects with text relocations, however it only runs
if strip is enabled.  I'm not sure if it makes sense but this patch allows the
prep{all}strip scripts to do everything except the strip command if stripping
is off.  Secondly, at the end of the if statement that issues the warning,
there's an "exit 1" - which stops the script from stripping any more
executables if more than one are specified; this patch also resolves that.