[MacPorts] #56994: vim-8.1.0280 does not build under OS X 10.5.8
MacPorts
noreply at macports.org
Sat Aug 18 16:02:40 UTC 2018
#56994: vim-8.1.0280 does not build under OS X 10.5.8
-------------------------+--------------------
Reporter: josephsacco | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.5.3
Keywords: leopard | Port: vim
-------------------------+--------------------
The problem is with a macro used in ./src/os_macosx.m
{{{
#ifdef AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER
NSArray *supportedTypes = [NSArray arrayWithObjects:VimPboardType,
NSPasteboardTypeString, nil];
#else
NSArray *supportedTypes = [NSArray arrayWithObjects:VimPboardType,
NSStringPboardType, nil];
#endif
}}}
{{{NSPasteboardTypeString}}} exists for OSX10.6+. However, testing if the
macro is defined is not sufficient. Under OSX 10.5.8 [Xcode 3.1.4] the
macro is defined:
{{{
#define AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER WEAK_IMPORT_ATTRIBUTE
}}}
A better test for OS X version is required.
For expediency, I renamed the macro to something rude, and continued with
the build / install, which completed without further incident.
-Joseph
--
Ticket URL: <https://trac.macports.org/ticket/56994>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list