ulm points out that estack.eclass is particularly inefficient (although^~~~~~~~
it'll get slightly better once https://github.com/gentoo/gentoo/pull/31437
is fixed).
Let's just manually roll it like llvm.eclass does.
Bug: https://bugs.gentoo.org/908465
Signed-off-by: Sam James <sam@gentoo.org>
---
eclass/ruby-ng.eclass | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/eclass/ruby-ng.eclass b/eclass/ruby-ng.eclass
index 14f4414337d6f..8fe26057e7ffe 100644
--- a/eclass/ruby-ng.eclass
+++ b/eclass/ruby-ng.eclass
@@ -163,7 +163,8 @@ _RUBY_ATOMS_SAMELIB_RESULT=""
_ruby_atoms_samelib() {
_RUBY_ATOMS_SAMELIB_RESULT=""
- eshopts_push -o noglob
+ local shopt_save=$(shopt -p -o noglob)
+ set -f
local token
local atoms=" RUBYTARGET? ("
for token in $*; do
@@ -177,7 +178,7 @@ _ruby_atoms_samelib() {
esac
done
atoms+=" ) "
- eshopts_pop
+ ${shopt_save}
_ruby_set_globals_invalidate_if_stale
local _ruby_implementation
--
2.41.0
ulm points out that estack.eclass is particularly inefficient
(although
it'll get slightly better once
https://github.com/gentoo/gentoo/pull/31437
is fixed).
Let's just manually roll it like llvm.eclass does.
Not much improvement on a grand scale, but for dev-ruby/sinatra at
least, we get:
On Thu, Jun 15, 2023 at 04:52:37PM +0100, Sam James wrote:
ulm points out that estack.eclass is particularly inefficient (although^~~~~~~~
it'll get slightly better once https://github.com/gentoo/gentoo/pull/31437 >> is fixed).
Let's just manually roll it like llvm.eclass does.
Bug: https://bugs.gentoo.org/908465
Signed-off-by: Sam James <sam@gentoo.org>
---
eclass/ruby-ng.eclass | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/eclass/ruby-ng.eclass b/eclass/ruby-ng.eclass
index 14f4414337d6f..8fe26057e7ffe 100644
--- a/eclass/ruby-ng.eclass
+++ b/eclass/ruby-ng.eclass
@@ -163,7 +163,8 @@ _RUBY_ATOMS_SAMELIB_RESULT=""
_ruby_atoms_samelib() {
_RUBY_ATOMS_SAMELIB_RESULT=""
- eshopts_push -o noglob
+ local shopt_save=$(shopt -p -o noglob)
Wrong indentation - expanded tab instead of tab
+ set -f
On Thu, 1970-01-01 at 00:00 +0000, Sam James wrote:
Not much improvement on a grand scale, but for dev-ruby/sinatra at
least, we get:
Reviewed all patches and they look good to me.
Thanks!
Hans
On Thu, 1970-01-01 at 00:00 +0000, Sam James wrote:
ulm points out that estack.eclass is particularly inefficient
(although
it'll get slightly better once
https://github.com/gentoo/gentoo/pull/31437
is fixed).
Let's just manually roll it like llvm.eclass does.
It looks like that was the only use for inhering estack? If so that
inherit can go too, right?
Hans
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 491 |
Nodes: | 16 (2 / 14) |
Uptime: | 120:35:35 |
Calls: | 9,687 |
Calls today: | 3 |
Files: | 13,728 |
Messages: | 6,176,524 |