[MacPorts] #62164: qemu @5.2.0: build failure with +cocoa
MacPorts
noreply at macports.org
Tue Nov 30 18:38:07 UTC 2021
#62164: qemu @5.2.0: build failure with +cocoa
---------------------+-----------------------
Reporter: Ionic | Owner: raimue
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords: legacy-os
Port: qemu |
---------------------+-----------------------
Comment (by jasonliu--):
Replying to [comment:10 jmroot]:
> Failing with a slightly different error as of 6.1:
> {{{
> ../qemu-6.1.0/ui/cocoa.m:1766:52: error: unknown type name
'NSPasteboardTypeOwner'; did you mean 'NSPasteboardType'?
> @interface QemuCocoaPasteboardTypeOwner :
NSObject<NSPasteboardTypeOwner>
> ^~~~~~~~~~~~~~~~~~~~~
> NSPasteboardType
>
/System/Library/Frameworks/AppKit.framework/Headers/NSPasteboard.h:22:20:
note: 'NSPasteboardType' declared here
> typedef NSString * NSPasteboardType NS_EXTENSIBLE_STRING_ENUM;
> ^
> ../qemu-6.1.0/ui/cocoa.m:1766:43: error: type arguments cannot be
applied to non-parameterized class 'NSObject'
> @interface QemuCocoaPasteboardTypeOwner :
NSObject<NSPasteboardTypeOwner>
> ^
~~~~~~~~~~~~~~~~~~~~~~~
> 2 errors generated.
> }}}
>
https://build.macports.org/builders/ports-10.13_x86_64-builder/builds/122976/steps
/install-port/logs/stdio
>
> I guess at minimum, +cocoa should not be on by default on <= 10.13, if
it can't be fixed?
Interestingly, I tried grepping for {{{NSPasteboardTypeOwner}}} in my copy
of the 10.15 AppKit framework, and wasn't able to find it anywhere in the
entire framework. However, Apple's own documentation clearly states that
it is something that came into existence in AppKit starting in macOS
10.14+:
https://developer.apple.com/documentation/appkit/nspasteboardtypeowner, so
I'm not really sure what's going on with that one.
--
Ticket URL: <https://trac.macports.org/ticket/62164#comment:13>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list