Bug 186401 - [Mojave] Enable build
Summary: [Mojave] Enable build
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Jonathan Bedard
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2018-06-07 10:48 PDT by Jonathan Bedard
Modified: 2018-06-15 21:50 PDT (History)
6 users (show)

See Also:


Attachments
Patch (2.91 KB, patch)
2018-06-07 11:49 PDT, Jonathan Bedard
no flags Details | Formatted Diff | Diff
Patch (2.93 KB, patch)
2018-06-07 14:49 PDT, Jonathan Bedard
no flags Details | Formatted Diff | Diff
Patch (2.76 KB, patch)
2018-06-08 10:32 PDT, Jonathan Bedard
no flags Details | Formatted Diff | Diff
Patch (2.75 KB, patch)
2018-06-08 11:25 PDT, Jonathan Bedard
no flags Details | Formatted Diff | Diff
Patch (2.70 KB, patch)
2018-06-08 13:06 PDT, Jonathan Bedard
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Bedard 2018-06-07 10:48:39 PDT
A few build fixes for the Mojave seed build.
Comment 1 Jonathan Bedard 2018-06-07 10:48:53 PDT
<rdar://problem/39759031>
Comment 2 Jonathan Bedard 2018-06-07 11:49:56 PDT
Created attachment 342197 [details]
Patch
Comment 3 Alexey Proskuryakov 2018-06-07 13:08:34 PDT
PAL/pal/spi/cocoa/QuartzCoreSPI.h:76:35: error: '__MAC_OS_X_VERSION_MIN_REQUIRED' is not defined, evaluates to 0 [-Werror,-Wundef]
#if !ENABLE(MINIMAL_SIMULATOR) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101400
Comment 4 Jonathan Bedard 2018-06-07 14:49:57 PDT
Created attachment 342207 [details]
Patch
Comment 5 mitz 2018-06-07 15:15:21 PDT
Comment on attachment 342207 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=342207&action=review

> Source/WebCore/PAL/pal/spi/mac/DataDetectorsSPI.h:116
> +SOFT_LINK(DataDetectors, DDResultGetCFTypeID, CFTypeID, (void), ())

This one is kind of surprising. How are we able to successfully call this function when building with an Apple-internal Mojave SDK if we don’t soft-link it?
Comment 6 Jonathan Bedard 2018-06-08 10:32:30 PDT
Created attachment 342286 [details]
Patch
Comment 7 mitz 2018-06-08 10:34:59 PDT
Comment on attachment 342286 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=342286&action=review

> Source/WebCore/PAL/pal/spi/mac/DataDetectorsSPI.h:93
> +CFTypeID DDResultGetCFTypeID(void);

Pretty sure our convention for functions in SPI.h headers is to declare them in a section of the file that’s not guarded with !USE(APPLE_INTERNAL_SDK). This means that when using the internal SDK, we are redeclaring them, which has the advantage of letting us know if our declaration differs from the one in the SDK.
Comment 8 Jonathan Bedard 2018-06-08 11:25:34 PDT
Created attachment 342297 [details]
Patch
Comment 9 mitz 2018-06-08 11:52:36 PDT
Comment on attachment 342297 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=342297&action=review

> Source/WebCore/PAL/pal/spi/cocoa/QuartzCoreSPI.h:76
> +#if PLATFORM(MAC) && !ENABLE(MINIMAL_SIMULATOR) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101400

Pretty sure ENABLE(MINIMAL_SIMULATOR) is never true for PLATFORM(MAC).
Comment 10 Jonathan Bedard 2018-06-08 12:57:52 PDT
Comment on attachment 342297 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=342297&action=review

>> Source/WebCore/PAL/pal/spi/cocoa/QuartzCoreSPI.h:76
>> +#if PLATFORM(MAC) && !ENABLE(MINIMAL_SIMULATOR) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101400
> 
> Pretty sure ENABLE(MINIMAL_SIMULATOR) is never true for PLATFORM(MAC).

That does seem to be the case.

Removing ENABLE(MINIMAL_SIMULATOR)
Comment 11 Jonathan Bedard 2018-06-08 13:06:48 PDT
Created attachment 342310 [details]
Patch
Comment 12 WebKit Commit Bot 2018-06-08 15:11:38 PDT
Comment on attachment 342310 [details]
Patch

Clearing flags on attachment: 342310

Committed r232642: <https://trac.webkit.org/changeset/232642>
Comment 13 WebKit Commit Bot 2018-06-08 15:11:39 PDT
All reviewed patches have been landed.  Closing bug.
Comment 14 Radar WebKit Bug Importer 2018-06-08 15:13:02 PDT
<rdar://problem/40952654>
Comment 15 Jonathan Bedard 2018-06-15 18:38:18 PDT
Note that as mentioned in <https://bugs.webkit.org/show_bug.cgi?id=18657>, the build will be broken on Seed 1.  This is fixed in seed 2.