[MacPorts] #61196: root6: uses macOS 10.10/10.12 APIs
MacPorts
noreply at macports.org
Thu Sep 17 15:45:06 UTC 2020
#61196: root6: uses macOS 10.10/10.12 APIs
--------------------------+--------------------------
Reporter: chrstphrchvz | Owner: cjones051073
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.6.3
Keywords: | Port: root6
--------------------------+--------------------------
Does the cocoa build of root6 intend to remain compatible with macOS 10.11
and earlier, or has its minimum macOS requirement been raised? I notice
that as of `root6 @6.22.00` it no longer builds on 10.11 and earlier due
to usage of `NSWindowStyleMaskBorderless` (replacement for
`NSBorderlessWindowMask`), and additionally it no longer builds on 10.9
and earlier due to usage of the `CGContext` property of
`NSGraphicsContext` (replacement for the `graphicsPort` property):
{{{
[ 90%] Building CXX object
graf2d/cocoa/CMakeFiles/GCocoa.dir/src/QuartzWindow.mm.o
…
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_science_root6/root6/work/root-6-22-00/graf2d/cocoa/src/QuartzWindow.mm:1135:40:
error: property 'CGContext' not found on object of type 'NSGraphicsContext
*'
CGContextRef cgContext = nsContext.CGContext;
^
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_science_root6/root6/work/root-6-22-00/graf2d/cocoa/src/QuartzWindow.mm:1163:26:
error: use of undeclared identifier 'NSWindowStyleMaskBorderless'
self.styleMask = NSWindowStyleMaskBorderless; // No titlebar,
buttons, etc.
^
}}}
Because these new APIs are replacements for existing ones, it might be
possible to patch root6 and continue using it on older OS versions,
assuming no other compatibility issues.
There is also an error I don't know the reason for:
{{{
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_science_root6/root6/work/root-6-22-00/graf2d/cocoa/src/QuartzWindow.mm:1521:35:
error: property 'frame' not found on object of type 'id'
auto frame = self.contentView.frame;
^
}}}
See
[https://build.macports.org/builders/ports-10.9_x86_64-builder/builds/126897/steps
/install-port/logs/stdio example 10.9 build log]
--
Ticket URL: <https://trac.macports.org/ticket/61196>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list