extconf.rb: use Rbconfig::CONFIG instead of mkmf CONFIG#31
extconf.rb: use Rbconfig::CONFIG instead of mkmf CONFIG#31mtasaka wants to merge 1 commit intoapalmblad:masterfrom
Conversation
In mkmf.rb CONFIG is defined as CONFIG is defined as RbConfig::MAKEFILE_CONFIG and RbConfig::MAKEFILE_CONFIG is almost same as RbConfig::CONFIG except that RbConfig::MAKEFILE_CONFIG uses reference for other variables. Using CONFIG in extconf.rb causes error with ruby3.2 because now CONFIG['host_os'] uses reference for target_os variable, and extconf.rb expects that this variable is all expanded. So instead, use RbConfig::CONFIG . Closes apalmblad#30
|
I've released a gem that includes this PR, in order to allow Ruby 3.2 users to keep using this gem's functionality. |
|
Hello, The following code in this gem uses rb_tainted_str_new2: Created an issue for this: #34 Thanks. |
This update picks apalmblad/ruby-shadow#31. A custom branch `gitlab-stable` has been created in the ruby-shadow mirror. Changelog: fixed
…r rubies apalmblad/ruby-shadow#31 Signed-off-by: Lance Albertson <lance@osuosl.org>
…r rubies apalmblad/ruby-shadow#31 Signed-off-by: Lance Albertson <lance@osuosl.org>
In mkmf.rb CONFIG is defined as CONFIG is defined as RbConfig::MAKEFILE_CONFIG and RbConfig::MAKEFILE_CONFIG is almost same as RbConfig::CONFIG except that RbConfig::MAKEFILE_CONFIG uses reference for other variables.
Using CONFIG in extconf.rb causes error with ruby3.2 because now CONFIG['host_os'] uses reference for target_os variable, and extconf.rb expects that this variable is all expanded. So instead, use RbConfig::CONFIG .
Closes #30