I found a emerge prepare phase error. portage package name "dev-ruby/bsearch-1.5-r3" but offical name "ruby-bsearch-1.5" ${S}=/var/tmp/portage/dev-ruby/bsearch/work/all/bsearch-1.5 right path = /var/tmp/portage/dev-ruby/bsearch/work/all/ruby-bsearch-1.5 In prepare pahse, sed patching fail sed -i 's/ruby/\$\{RUBY\}/' ${S}/tests/test.sh || die "Unable to fix tests shell script."
Created attachment 332146 [details, diff] prepare phase pass bad patch
use dev-ruby/bsearch-1.5.0 this problem fixed