WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED DUPLICATE of
bug 206723
206982
REGRESSION(
r254389
): High Sierra build is broken
https://bugs.webkit.org/show_bug.cgi?id=206982
Summary
REGRESSION(r254389): High Sierra build is broken
Myles C. Maxfield
Reported
2020-01-29 19:48:56 PST
REGRESSION(
r254389
): High Sierra build is broken
Attachments
Patch
(3.93 KB, patch)
2020-01-29 19:50 PST
,
Myles C. Maxfield
no flags
Details
Formatted Diff
Diff
Patch
(1.83 KB, patch)
2020-01-29 20:06 PST
,
Myles C. Maxfield
no flags
Details
Formatted Diff
Diff
Patch
(1.83 KB, patch)
2020-01-30 10:08 PST
,
Chris Dumez
ap
: review+
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Myles C. Maxfield
Comment 1
2020-01-29 19:50:04 PST
Created
attachment 389222
[details]
Patch
Myles C. Maxfield
Comment 2
2020-01-29 19:50:07 PST
<
rdar://problem/59005412
>
Myles C. Maxfield
Comment 3
2020-01-29 20:06:53 PST
Created
attachment 389223
[details]
Patch
Alexey Proskuryakov
Comment 4
2020-01-29 21:02:28 PST
Comment on
attachment 389223
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=389223&action=review
r- for changing Mojave code path. Please also see my comment in Radar.
> Source/WTF/wtf/PlatformHave.h:578 > +#if (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101500) || PLATFORM(IOS_FAMILY)
High Sierra is 10.13 Mojave is 10.14 Catalina is 10.15
Chris Dumez
Comment 5
2020-01-30 10:08:15 PST
Created
attachment 389263
[details]
Patch
Alexey Proskuryakov
Comment 6
2020-01-30 10:19:22 PST
I didn't verify whether this fix was sufficient. It is unusual that it's enough to ifdef out includes, but no actual implementation code.
Chris Dumez
Comment 7
2020-01-30 10:32:18 PST
(In reply to Alexey Proskuryakov from
comment #6
)
> I didn't verify whether this fix was sufficient. It is unusual that it's > enough to ifdef out includes, but no actual implementation code.
I think we are fine because the following gets declared after the #endif: @interface NSLocale () + (nonnull NSArray<NSString *> *)minimizedLanguagesFromLanguages:(nonnull NSArray<NSString *> *)languages; @end
Chris Dumez
Comment 8
2020-01-30 10:33:53 PST
Comment on
attachment 389263
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=389263&action=review
> Source/WTF/wtf/spi/cocoa/NSLocaleSPI.h:30 > +#if HAVE(NSLOCALE_INTERNATIONALSUPPORTEXTENSIONS)
I guess we could have used __has_include(<InternationalSupport/NSLocale+InternationalSupportExtensions.h>) too.
Myles C. Maxfield
Comment 9
2020-01-30 11:30:43 PST
(In reply to Alexey Proskuryakov from
comment #4
)
> Comment on
attachment 389223
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=389223&action=review
> > r- for changing Mojave code path. Please also see my comment in Radar. > > > Source/WTF/wtf/PlatformHave.h:578 > > +#if (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101500) || PLATFORM(IOS_FAMILY) > > High Sierra is 10.13 > Mojave is 10.14 > Catalina is 10.15
This doesn't change the Mojave code path. The relevant code is already hidden behind a respondsToSelector: check. The selector only exists in Catalina. Therefore, previous OSes don't need the #include at all.
Chris Dumez
Comment 10
2020-01-30 12:41:11 PST
(In reply to Myles C. Maxfield from
comment #9
)
> (In reply to Alexey Proskuryakov from
comment #4
) > > Comment on
attachment 389223
[details]
> > Patch > > > > View in context: > >
https://bugs.webkit.org/attachment.cgi?id=389223&action=review
> > > > r- for changing Mojave code path. Please also see my comment in Radar. > > > > > Source/WTF/wtf/PlatformHave.h:578 > > > +#if (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101500) || PLATFORM(IOS_FAMILY) > > > > High Sierra is 10.13 > > Mojave is 10.14 > > Catalina is 10.15 > > This doesn't change the Mojave code path. The relevant code is already > hidden behind a respondsToSelector: check.
As mentioned on your other bug, I cannot find minimizedLanguagesFromLanguages: in my very recent macOS SDK in the <InternationalSupport/NSLocale+InternationalSupportExtensions.h> header. Is this expected? I only have it in my iOS SDK.
> The selector only exists in > Catalina. Therefore, previous OSes don't need the #include at all.
Alexey Proskuryakov
Comment 11
2020-02-01 10:18:03 PST
After more investigation, we determined that a better fix for this was already landed. It does look like the code is wrong for macOS, but it builds now. *** This bug has been marked as a duplicate of
bug 206723
***
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug