Skip to content

Backport to support macOS Ventura and Xcode 14 for Ruby 3.0#6441

Merged
unak merged 3 commits intoruby:ruby_3_0from
hsbt:backport-ventura-xcode14-3-0
Oct 1, 2022
Merged

Backport to support macOS Ventura and Xcode 14 for Ruby 3.0#6441
unak merged 3 commits intoruby:ruby_3_0from
hsbt:backport-ventura-xcode14-3-0

Conversation

@hsbt
Copy link
Copy Markdown
Member

@hsbt hsbt commented Sep 26, 2022

nobu and others added 3 commits September 26, 2022 17:00
The warning against `-undefined dynamic_lookup` is just a warning yet,
and many gems seem to pay no attention to warnings.  Until it fails
actually, keep it as a migration path, except for standard extension
libraries and bundled extension gems.
Since macOS 13, CFString family API used in
`rb_str_append_normalized_ospath` may internally use Objective-C classes
(`NSTaggedPointerString` and `NSPlaceholderMutableString`) for small strings.

On the other hand, Objective-C classes should not be used for the first
time in a `fork()`'ed but not `exec()`'ed process. Violations for this rule
can result deadlock during class initialization, so Objective-C runtime
conservatively crashes on such cases by default.

Therefore, we need to use CFString API to initialize Objective-C classes
used internally *before* `fork()`.

For more details, see https://bugs.ruby-lang.org/issues/18912
@hsbt hsbt requested a review from nobu September 26, 2022 08:17
@hsbt
Copy link
Copy Markdown
Member Author

hsbt commented Sep 26, 2022

I update 6898984 for Ruby 3.0.

@nobu Can you review the changes of configure.ac ?

@hsbt
Copy link
Copy Markdown
Member Author

hsbt commented Sep 27, 2022

Note: nobu said "LGTM"

@unak unak merged commit 7f2c548 into ruby:ruby_3_0 Oct 1, 2022
@hsbt hsbt deleted the backport-ventura-xcode14-3-0 branch October 2, 2022 11:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants