diff options
author | Benda Xu <heroxbd@gentoo.org> | 2021-12-26 17:52:13 +0800 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2022-03-26 15:30:26 +0100 |
commit | e4752a480e4c944886310cb1defe0aee0312cead (patch) | |
tree | f22bc812aa75208215e10fe620510a8d6dfbcb9e /eclass | |
parent | dev-ruby/sprockets: add ruby30 (diff) | |
download | gentoo-e4752a480e4c944886310cb1defe0aee0312cead.tar.gz gentoo-e4752a480e4c944886310cb1defe0aee0312cead.tar.bz2 gentoo-e4752a480e4c944886310cb1defe0aee0312cead.zip |
dev-ruby/rdoc: remove the hprefixify command on shebangs.
If two ruby targets are specified, the scripts get `/usr/bin/env ruby`
shebangs. "env ruby" is then replaced in the ebuilds to be
"ruby${ver}" (ruby27 or ruby30). They needs to be prefixified.
Contrastingly, when there is one ruby target, the shebang is the
correct EPREFIX/usr/bin/ruby${ver}. No prefixify should be applied.
To unify the two cases, the shebangs for the two-ruby-target case are
changed to be `EPREFIX/usr/bin/env ruby`.
Reference: https://github.com/gentoo/gentoo/pull/21046
Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Benda Xu <heroxbd@gentoo.org>
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/ruby-fakegem.eclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/eclass/ruby-fakegem.eclass b/eclass/ruby-fakegem.eclass index 89bb97947b48..690709f20752 100644 --- a/eclass/ruby-fakegem.eclass +++ b/eclass/ruby-fakegem.eclass @@ -396,7 +396,7 @@ ruby_fakegem_binwrapper() { # if another implementation already arrived, then make # it generic and break out of the loop. This ensures # that we do at most two iterations. - rubycmd="/usr/bin/env ruby" + rubycmd="${EPREFIX}/usr/bin/env ruby" break fi done |