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.
of course i meant 'emerged portage & baselayout' :)
Looks like prepstrip needs a 'source /sbin/functions.sh' somewhere.
Yeah... The backport broke 2.0.50. That'll be fixed soon.
Fixed in pre14.
when would the fixed version be put in portage tree ?
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.