macports-base icon indicating copy to clipboard operation
macports-base copied to clipboard

portconfigure: ensure SDK directory is not empty

Open MarcusCalhoun-Lopez opened this issue 2 years ago • 2 comments

On older versions of macOS (e.g. OS X El Capitan), even though "macosxfake" is not a valid SDK, env DEVELOPER_DIR="/Library/Developer/CommandLineTools" /usr/bin/xcrun --show-sdk-path --sdk macosxfake has zero exit value but outputs an empty string.

MarcusCalhoun-Lopez avatar Jan 05 '23 18:01 MarcusCalhoun-Lopez

When does this make a difference? Normally on these OS versions with the CLTs installed we would already have returned on line 560 or 567.

jmroot avatar Jan 05 '23 19:01 jmroot

Instead of tracking down when the behavior of xcrun changed or worrying about the possibility of a Portfile changing configure.sdk_version, this seemed safer.

MarcusCalhoun-Lopez avatar Jan 05 '23 19:01 MarcusCalhoun-Lopez