Installations without Command Line Tools

mf2k at mf2k at
Mon Sep 24 16:06:06 UTC 2018

Hi Josh,

> On Sep 24, 2018, at 1:48 AM, Joshua Root <jmr at> wrote:
> Currently, portconfigure::configure_get_sdkroot will return an error if
> there is no SDK for the current OS version, and /usr/include also is not
> present [1]. A recent change stopped warning about the lack of
> /usr/include when using recent Xcode versions [2].
> This leaves us in a situation where a user who installs Xcode and
> MacPorts but not the Command Line Tools will see errors, with no hint as
> to how to resolve them. The three obvious ways forward would be:
> 1. Go back to recommending having the Command Line Tools installed,
> warning if they are not present.
> 2. Uncomment the code at the end of configure_get_sdkroot that would
> fall back to using the "macosx" SDK link if the specific version
> requested is not found. This has risks that are explained in the comments.
> 3. Recommend that users install the SDK for their OS version when Xcode
> does not include it. This could involve adding a link in the error
> message to a wiki page with download and installation instructions.
> - Josh
> [1]
> <>
> [2]
> <>

Option 1 makes sense to me. However, it sure would be annoying to those people who do not intend to install the CLT. So maybe add a macports.conf parameter to allow disabling the warning for people who know what they are doing?


More information about the macports-dev mailing list