[MacPorts] #57908: harfbuzz @2.3.0: hb-coretext.cc:254: error: ‘kCTFontURLAttribute’ was not declared in this scope
MacPorts
noreply at macports.org
Tue Jan 15 04:47:26 UTC 2019
#57908: harfbuzz @2.3.0: hb-coretext.cc:254: error: ‘kCTFontURLAttribute’ was not
declared in this scope
---------------------------+------------------------
Reporter: kencu | Owner: ryandesign
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Keywords: tiger leopard | Port: harfbuzz
---------------------------+------------------------
Building on Leopard i386:
{{{
hb-coretext.cc: In function ‘const __CTFont* create_ct_font(CGFont*,
CGFloat)’:
hb-coretext.cc:254: error: ‘kCTFontURLAttribute’ was not declared in this
scope
}}}
The block is beautifully guarded in the source:
{{{
#if TARGET_OS_OSX && MAC_OS_X_VERSION_MIN_REQUIRED < 1060
atsFont = CTFontGetPlatformFont (new_ct_font, NULL);
status = ATSFontGetFileReference (atsFont, &fsref);
if (status == noErr)
new_url = CFURLCreateFromFSRef (NULL, &fsref);
#else
new_url = (CFURLRef) CTFontCopyAttribute (new_ct_font,
kCTFontURLAttribute);
#endif
}}}
but I can't find anywhere that `TARGET_OS_OSX` is ever set or referred to
elsewhere.
Cutting that out of the source, or setting -DTARGET_OS_OSX in the cppflags
of Portfile both work to fix the build.
{{{
$ port -v installed harfbuzz
The following ports are currently installed:
harfbuzz @2.3.0_0 (active) platform='darwin 9' archs='i386'
date='2019-01-14T20:42:32-0800'
}}}
--
Ticket URL: <https://trac.macports.org/ticket/57908>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list