From e4752a480e4c944886310cb1defe0aee0312cead Mon Sep 17 00:00:00 2001 From: Benda Xu Date: Sun, 26 Dec 2021 17:52:13 +0800 Subject: 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 Signed-off-by: Hans de Graaff --- eclass/ruby-fakegem.eclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'eclass') 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 -- cgit v1.2.3-65-gdbad