-
-
Notifications
You must be signed in to change notification settings - Fork 10k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Forbid using some formulas provided by macOS #18264
Comments
I think this also can be solved by not considering Apple's libarchive and other conflicting software as valid formulas. Homebrew's libarhive will still be keg-only, but would it need another reason to be keg-only? |
@fxcoudert @carlocab do you agree with the above? |
I'm ambivalent about forbidding usage of Most of our audits are designed to catch mistakes that are easy to make -- this one isn't very easy. And, in instances where it is easy (i.e. there are no hoops to jump through to use it), it's not clear that there's a hugely compelling reason to forbid it anyway. To be clear, I'm not opposed to adding an audit or similar for it, but I'm similarly not convinced that we need one. |
@carlocab Are we still using it in any formulae? Do we want to/not to? |
There should be none remaining after Homebrew/homebrew-core#183698.
It's probably ok to use it if it doesn't require extra formula complications (like the ones removed in Homebrew/homebrew-core#183698, or discussed in linked PRs), but the possibility of that is small (e.g. requires the source tarball to provide the missing It may be safer to just use the |
To me the current situation rates as “fine as it is”. I don't think there is any great reason to use libarchive in homebrew-core formulas, but if there was a case, it wouldn't be a problem. The need is motivated by:
This was true when we had didn't have libarchive in |
Ok, thanks all, passing on this. |
Verification
brew install wget
. If they do, open an issue at https://github.com/Homebrew/homebrew-core/issues/new/choose instead.Provide a detailed description of the proposed feature
Homebrew needs a mechanism to disallow dependencies on a macOS provided formula when it is not considered a public API by Apple.
A good example of this is
libarchive
, and I'm sure there are others.There is currently no audit that disallows
uses_from_macos libarcive
, even though macOS does not provide headers for it.What is the motivation for the feature?
Recent discussions about using libarchive in formulas: see discussions in Homebrew/homebrew-core#183698, Homebrew/homebrew-core#183626 and Homebrew/homebrew-core#181569
TLDR: Apple's libarchive:
How will the feature be relevant to at least 90% of Homebrew users?
This will guarantee that more formulas will work consistently across all supported platforms.
A good example of the problem is caveats for
lanraragi
formula:What alternatives to the feature have been considered?
Do nothing
This will lead to more discussions around new formulas which use libarchive and/or error-prone formulas that "jump through a lot of hoops to make it work and even then just get two plain header files"
The text was updated successfully, but these errors were encountered: