Teach `mach bootstrap` how to verify and install macOS SDK and required headers
Categories
(Firefox Build System :: Bootstrap Configuration, enhancement)
Tracking
(firefox111 fixed)
Tracking | Status | |
---|---|---|
firefox111 | --- | fixed |
People
(Reporter: nalexander, Assigned: glandium)
References
Details
Attachments
(4 files)
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.
Comment 1•6 years ago
|
||
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.
Reporter | ||
Comment 2•6 years ago
|
||
(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
.
Comment 3•6 years ago
|
||
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.
Comment 4•5 years ago
|
||
It seems that there is now no straightforward way of installing the SDK headers: bug 1569003
Updated•2 years ago
|
Assignee | ||
Comment 5•2 years ago
|
||
At the same time, make the pack.sh script more verbose.
Assignee | ||
Comment 6•2 years ago
|
||
Assignee | ||
Comment 7•2 years ago
|
||
Per the previous commit, the task definitions now can be used to get a
command that can be used to generate the toolchain locally.
Assignee | ||
Comment 8•2 years ago
|
||
Comment 10•2 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/9eec26499feb
https://hg.mozilla.org/mozilla-central/rev/865a03294e4b
https://hg.mozilla.org/mozilla-central/rev/bc898a3a5165
https://hg.mozilla.org/mozilla-central/rev/697accbb8a41
Description
•