[Fontconfig-bugs] [Bug 102986] mkostemp weak linking on macOS Sierra causes a crash if library is run on 10.11 or older

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Oct 3 23:42:38 UTC 2017


https://bugs.freedesktop.org/show_bug.cgi?id=102986

--- Comment #14 from Ryan Schmidt <freedesktop at ryandesign.com> ---
Hello, I'm the MacPorts maintainer of fontconfig. I've read the previous
comments here. Things seem to have gotten a bit off-track.

To clarify, MacPorts has nothing to do with the problem. The user just happened
to be using MacPorts when they noticed the problem.

The problem would occur for any user building fontconfig from source using the
macOS SDK on macOS 10.12 when the MACOSX_DEPLOYMENT_TARGET environment variable
is set to a value of less than 10.12. Apple provides the deployment target
capability in their toolchain to allow a user running on one macOS version to
build software that can be distributed to users running on earlier versions of
macOS.

Gregorio found that overriding the configure check ac_cv_func_mkostemp=no
worked around the problem. We can commit that in MacPorts, and that will help
MacPorts users who have chosen to build for an earlier deployment target, but
it will not help any other fontconfig users who wish to do that. For this
reason, I asked Gregorio to submit this bug to see if there is anything you can
do in your build system to help all of your users who want to build for a
different deployment target. If you don't wish to make any changes to your
build system that's fine. I just wanted to make sure that, since the problem is
not MacPorts-specific, you were given the opportunity to fix the problem in the
most central place.

Note that Apple has been in the habit of releasing new versions of Xcode that
are compatible with a version of macOS while no longer containing that OS's
SDK. For example, Xcode 8 is compatible with macOS 10.11 but only contains the
10.12 SDK, and Xcode 9 is compatible with macOS 10.12 but only contains the
10.13 SDK. It can therefore be expected that a user with Xcode 8 on macOS 10.11
building using the SDK would encounter the problem even if they have not
customized the value of MACOSX_DEPLOYMENT_TARGET.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/fontconfig-bugs/attachments/20171003/35325358/attachment.html>


More information about the Fontconfig-bugs mailing list