From: "nobu (Nobuyoshi Nakada)" Date: 2022-11-17T16:49:24+00:00 Subject: [ruby-core:110798] [Ruby master Bug#19133] mswin build - missing RbConfig::CONFIG['libdirname'] Issue #19133 has been updated by nobu (Nobuyoshi Nakada). Status changed from Open to Feedback It may not exist. Probably, this patch works? ```diff diff --git a/spec/ruby/optional/capi/spec_helper.rb b/spec/ruby/optional/capi/spec_helper.rb index ec6b9093977..940b6bce059 100644 --- a/spec/ruby/optional/capi/spec_helper.rb +++ b/spec/ruby/optional/capi/spec_helper.rb @@ -35,7 +35,7 @@ if RbConfig::CONFIG["ENABLE_SHARED"] == "yes" libdirname = RbConfig::CONFIG['libdirname'] # defined since 2.1 - libruby = "#{RbConfig::CONFIG[libdirname]}/#{RbConfig::CONFIG['LIBRUBY']}" + libruby = "#{RbConfig::CONFIG[libdirname || 'libdir']}/#{RbConfig::CONFIG['LIBRUBY']}" end begin ``` ---------------------------------------- Bug #19133: mswin build - missing RbConfig::CONFIG['libdirname'] https://bugs.ruby-lang.org/issues/19133#change-100154 * Author: MSP-Greg (Greg L) * Status: Feedback * Priority: Normal * ruby -v: ruby 3.2.0dev (2022-11-17T00:30:39Z master a777ec0d85) [x64-mswin64_140] * Backport: 2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: UNKNOWN ---------------------------------------- Key and value exists with Ubuntu & mingw/ucrt builds, missing in mswin build. Noticed when locally run spec test (`spec/ruby/optional/capi/rbasic_spec.rb`) failed. -- https://bugs.ruby-lang.org/ Unsubscribe: