dev-ruby/net-ssh/net-ssh-6.2.0_rc1.ebuild : _ruby_invoke_environment replace my custom "S" variable Reproducible: Always Steps to Reproduce: 1. create an ebuild net-ssh-6.2.0_rc1.ebuild to download https://github.com/net-ssh/net-ssh/archive/v6.2.0.rc1.tar.gz 2. custom some variables to replace "_" by a "." MY_PV="${PV/_rc/.rc}" S="${WORKDIR}/all/${PN}-${MY_PV}" 3. launch repoman and emerge Actual Results: * ERROR: dev-ruby/net-ssh-6.2.0_rc1::bdouxx-overlay failed (prepare phase): * (no error message) * * Call stack: * ebuild.sh, line 125: Called src_prepare * environment, line 2143: Called ruby-ng_src_prepare * environment, line 1799: Called _ruby_invoke_environment 'all' '_ruby_apply_patches' * environment, line 696: Called _ruby_apply_patches * environment, line 535: Called all_ruby_prepare * environment, line 788: Called die * The specific snippet of code: * sed -e "s:require_relative ':require './:" -i ${RUBY_FAKEGEM_GEMSPEC} || die; * * If you need support, post the output of `emerge --info '=dev-ruby/net-ssh-6.2.0_rc1::bdouxx-overlay'`, * the complete build log and the output of `emerge -pqv '=dev-ruby/net-ssh-6.2.0_rc1::bdouxx-overlay'`. * The complete build log is located at '/var/log/portage/dev-ruby:net-ssh-6.2.0_rc1:20201127-214333.log'. * For convenience, a symlink to the build log is located at '/var/tmp/portage/dev-ruby/net-ssh-6.2.0_rc1/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-ruby/net-ssh-6.2.0_rc1/temp/environment'. * Working directory: '/var/tmp/portage/dev-ruby/net-ssh-6.2.0_rc1/work/all' * S: '/var/tmp/portage/dev-ruby/net-ssh-6.2.0_rc1/work/all/net-ssh-6.2.0_rc1' Expected Results: * S: '/var/tmp/portage/dev-ruby/net-ssh-6.2.0_rc1/work/all/net-ssh-6.2.0.rc1'
Hi, problem solved It's RUBY_S and not S, the variable to change for ruby packages... it's OK with this: MY_PV="${PV/_rc/.rc}" RUBY_S=${PN}-${MY_PV}