Bug 224632

Summary: Use kIOMainPortDefault where available
Product: WebKit Reporter: Alex Christensen <achristensen>
Component: New BugsAssignee: Alex Christensen <achristensen>
Status: RESOLVED FIXED    
Severity: Normal CC: ap, dino, ews-watchlist, graouts, kkinnunen, kondapallykalyan, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch
none
Patch none

Description Alex Christensen 2021-04-15 16:53:26 PDT
Replace deprecation pragmas with new port name
Comment 1 Alex Christensen 2021-04-15 16:55:45 PDT
Created attachment 426157 [details]
Patch
Comment 2 EWS Watchlist 2021-04-15 16:57:20 PDT
Note that there are important steps to take when updating ANGLE. See https://trac.webkit.org/wiki/UpdatingANGLE
Comment 3 Alex Christensen 2021-04-15 17:58:38 PDT
Created attachment 426165 [details]
Patch
Comment 4 Alex Christensen 2021-04-15 18:00:03 PDT
Created attachment 426166 [details]
Patch
Comment 5 Alexey Proskuryakov 2021-04-15 18:04:06 PDT
Comment on attachment 426166 [details]
Patch

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

I would probably centralize this in one place if I were doing this, but seems OK either way.

> Source/ThirdParty/ANGLE/src/gpu_info_util/SystemInfo_macos.mm:41
>  #pragma clang diagnostic ignored "-Wdeprecated-declarations"

You can consider adding comments saying that the pragmas can be removed once rdar://76706593 is fixed, but it's not terribly important.
Comment 6 EWS 2021-04-15 18:45:14 PDT
Committed r276104 (236604@main): <https://commits.webkit.org/236604@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 426166 [details].
Comment 7 Kimmo Kinnunen 2021-04-16 04:51:21 PDT
Not sure if I'm doing something wrong, but I'm seeing the inverse issue now with an older SDK.

CompileC SystemInfo_macos.o
/Users/kkinnunen/WebKit/OpenSource/Source/ThirdParty/ANGLE/src/gpu_info_util/SystemInfo_macos.mm:38:34: error: use of undeclared identifier 'kIOMainPortDefault'
    const mach_port_t mainPort = kIOMainPortDefault;
                                 ^
/Users/kkinnunen/WebKit/OpenSource/Source/ThirdParty/ANGLE/src/gpu_info_util/SystemInfo_macos.mm:109:38: error: use of undeclared identifier 'kIOMainPortDefault'
        const mach_port_t mainPort = kIOMainPortDefault;
                                     ^
/Users/kkinnunen/WebKit/OpenSource/Source/ThirdParty/ANGLE/src/gpu_info_util/SystemInfo_macos.mm:176:34: error: use of undeclared identifier 'kIOMainPortDefault'
    const mach_port_t mainPort = kIOMainPortDefault;
                                 ^
/Users/kkinnunen/WebKit/OpenSource/Source/ThirdParty/ANGLE/src/gpu_info_util/SystemInfo_macos.mm:285:38: error: use of undeclared identifier 'kIOMainPortDefault'
        const mach_port_t mainPort = kIOMainPortDefault;
                                     ^
Comment 8 Alex Christensen 2021-04-16 13:20:18 PDT
(In reply to Kimmo Kinnunen from comment #7)
> Not sure if I'm doing something wrong, but I'm seeing the inverse issue now
> with an older SDK.
Time to update your SDK.
Comment 9 Radar WebKit Bug Importer 2021-04-24 15:10:42 PDT
<rdar://problem/77110140>