Ruby `rubyarchhdrdir` on Mojave is wrong.

Originator:me
Number:rdar://46487252 Date Originated:2018-12-05
Status:open Resolved:
Product:macOS Product Version:10.14.2 Beta (18C48a)
Classification: Reproducible:Always
 
Summary:

`RbConfig::CONFIG["rubyarchhdrdir"]` on Mojave returns `"/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0/universal-darwin18"`, but this directory doesn't exist. `"/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0/universal-darwin17"` does exist, however, which is clearly wrong.

Steps to Reproduce:

Try running `gem install jaro_winkler` using the system Ruby on Mojave. This will try building an external extension which tries including "/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0/universal-darwin18/ruby/config.h".

Expected Results:

"/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0/universal-darwin18" should exist.

Actual Results:

"/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0/universal-darwin18" does not exist.

Comments

Duplicate Radar

https://openradar.appspot.com/46465917


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!