[#115244] [Ruby master Feature#19987] add sample method to Range — "horv77@... (Andras Horvath) via ruby-core" <ruby-core@...>
Issue #19987 has been reported by horv77@protonmail.com (Andras Horvath).
6 messages
2023/11/05
[#115247] [Ruby master Feature#19988] AI for inner code behavior analysis at runtime — "horv77@... (Andras Horvath) via ruby-core" <ruby-core@...>
Issue #19988 has been reported by horv77@protonmail.com (Andras Horvath).
3 messages
2023/11/05
[#115404] Ruby 3.2.2 - rbconfig.rb's MAKEFILE_CONFIG — Jay Mav via ruby-core <ruby-core@...>
Hello Ruby Dev Team,
4 messages
2023/11/17
[ruby-core:115404] Ruby 3.2.2 - rbconfig.rb's MAKEFILE_CONFIG
From:
Jay Mav via ruby-core <ruby-core@...>
Date:
2023-11-17 01:48:06 UTC
List:
ruby-core #115404
Hello Ruby Dev Team,
With Ruby 3.2.2, gem install fails because in rbconfig.rb,
MAKEFILE_CONFIG's $(target_os) is not expanded (whereas CONFIG's is
expanded correctly).
The inline doc in mkconfig.rb states that the caller can expand
MAKEFILE_CONFIG's values by calling RbConfig::expand().
However, ruby-shadow gem's Makefile generator -- extconf.rb -- does not
call expand and directly uses mkmf.rb's CONFIG instance (which is
RbConfig::MAKEFILE_CONFIG), because of which $(target_os) does not get
expanded.
This causes ruby-shadow gem install to fail with Ruby 3.2.2.
Would the Ruby Dev Team accept the following proposal to fix mkconfig.rb,
so that the generated rbconfig.rb instantiates MAKEFILE_CONFIG AFTER
CONFIG's values have been expanded?
# Existing code...
CONFIG.each_value do |val|
RbConfig::expand(val)
end
# Move instantiation of MAKEFILE_CONFIG after expanding CONFIG's values.
MAKEFILE_CONFIG = {}
CONFIG.each{|k,v| MAKEFILE_CONFIG[k] = v.dup}
If we fix it in mkconfig.rb, we can avoid callers having to explicitly call
expand for MAKEFILE_CONFIG's values.
Thanks.
______________________________________________
ruby-core mailing list -- ruby-core@ml.ruby-lang.org
To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/