Open Bug 1522986 Opened 11 months ago Updated 5 months ago

Teach `mach bootstrap` how to verify and install macOS SDK and required headers

Categories

(Firefox Build System :: Bootstrap Configuration, enhancement)

enhancement
Not set

Tracking

(Not tracked)

People

(Reporter: nalexander, Unassigned)

References

Details

Bug 1500504 made mach configure check for valid macOS SDK versions -- but we don't install them for you in mach bootstrap.

Bug 1495610 shows how to work around build errors by installing headers from some package -- but we don't install them for you in mach bootstrap.

This ticket tracks making both of those things better.

I don't think we can install an arbitrary version of a macOS SDK in an automated way unfortunately. SDKs ship as part of XCode, and I don't believe the license allows for redistribution.

(In reply to Ted Mielczarek [:ted] [:ted.mielczarek] from comment #1)

I don't think we can install an arbitrary version of a macOS SDK in an automated way unfortunately. SDKs ship as part of XCode, and I don't believe the license allows for redistribution.

I think that's correct, but https://github.com/phracker/MacOSX-SDKs/releases is playing fast and loose with those rules. I'm not concerned about enabling this potential infringement via glue code in mach bootstrap.

Could we at least get bootstrap (or configure in the case of headers) to detect they're missing and ask the developer to install them/run the commands?

I've just hit on this the long way, and I'm sure other people will be.

It seems that there is now no straightforward way of installing the SDK headers: bug 1569003

You need to log in before you can comment on or make changes to this bug.