[MacPorts] #58779: base: ports cannot use SDK inside of Developer dir unless using Xcode build type

MacPorts noreply at macports.org
Mon Aug 5 15:26:51 UTC 2019


#58779: base: ports cannot use SDK inside of Developer dir unless using Xcode build
type
---------------------+-----------------------
  Reporter:  Ionic   |      Owner:  (none)
      Type:  defect  |     Status:  new
  Priority:  Normal  |  Milestone:
 Component:  base    |    Version:  2.5.99
Resolution:          |   Keywords:  tracemode
      Port:          |
---------------------+-----------------------

Comment (by satraul):

 Replying to [comment:16 Ionic]:
 > My original attention call went out because of this line: `if { ![file
 exists ${configure.sdkroot}/MacOSX${configure.sdk_version}.sdk] } {`
 > This will always be true, because `${configure.sdkroot}` will either be
 empty (in which case a file like `/MacOSX${configure.sdk_version}.sdk`
 will not exist) or set to an SDK root directory, such as
 `/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX${configure.sdk_version}.sdk`
 or
 `/Library/Developer/CommandLineTools/SDKs/MacOSX${configure.sdk_version}.sdk`.
 Coupled with yet another set of `MacOSX${configure.sdk_version}.sdk`, such
 a directory will not exist. You're currently checking for, e.g.,
 `/Library/Developer/CommandLineTools/SDKs/MacOSX${configure.sdk_version}.sdk/MacOSX${configure.sdk_version}.sdk`,
 which naturally won't exist.

 Okay, thanks for explaining. So it seems we can't find a clear solution to
 always use CLT for qt5 then. If I get it right: even if qmake could use
 CLT's SDK on <=10.9 there is difficulty in doing so, such as `xcrun` not
 behaving correctly as you pointed out. I initially thought that the
 solution was by hacking how to call qmake so it could resolve correctly to
 `macosx`, but that is now ruled out.

 I'll wait for my mentors to chime in, but I guess the acceptable fix is to
 set use_xcode for qt5 temporarily for now, right? Thanks again.

-- 
Ticket URL: <https://trac.macports.org/ticket/58779#comment:17>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list