Fix failure in building of perl integration source for 9.2 on macOS #53
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Building the previous formula for [email protected] led to the following error in the make step:
As of XCode 10(?), system headers (which includes the headers for the system version of perl) have been removed from the base macOS system and now only live in the macOS SDK, which must be included explicitly for the build process to find the system perl headers that were previously expected to already be globally available.
See these links for more info:
I'm not sure if this PR is the 'right' way to solve this issue, but it at least made the compilation work for me on macOS 10.14.6. I can port this across to the other formulas as well if you want, it will just involve some more time for me to test which formulas need it and which ones don't.
This seems to be the same kind of issue as raised by #50 and #44 - users on those issues fixed the problem by making perl a brew dependency of the formula, or by installing the temporary workaround
macOS_SDK_headers_for_macOS_10.14.pkg
supplied by Apple that puts all the headers back in the system root (this is apparently not available on 10.15 Catalina though). The fix in this PR at least avoids the user needing to make any changes for the formula to compile.Longer-term though, Apple will be removing scripting languages like Perl from the base macOS system, so it may be better to add a homebrew dependency on perl instead? Like I said, not sure what the right way forward is, but wanted to at least share this fix as a possible solution.