-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
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
Possibility to provide other formulae with a formula #5615
Comments
Efforts to maintain versions of Homebrew Core formulae with the options they used to have are currently being invested in portage-brew rather than here upstream. |
I don't want to reintroduce options in core formulae and the suggested feature would also work if options were to be removed completely. As you can see, the more feature-rich ffmpeg I provide in my tap at It is still a valid feature request in my opinion, the removal of options in the core formulae was just the trigger for a definitive need of the Furthermore, it may be that I am blind, but I cannot really see how |
It's not really what we want, either, but upstream hasn't been meeting the kinds of needs we want portage-brew to fulfill. |
This is the best way to do this in Homebrew too: create a new Did you check any of the docs for this (to be clear: it's not in there yet)? I'm wondering where would be best to document this to avoid future confusion. Thanks!
I'm afraid we won't add this because it makes it easy for a user to install a formula from a tap which breaks our formulae due to incompatibilities which then makes it hard for us and them to debug the issue. To repeat above: the best bet is to use a different name.
@RandomDSdevel With respect, please let the Homebrew project state what we will or will not do. We're happy to add your fork to "Interesting Taps and Forks" when it's ready for public consumption but I'd ask you refrain from this sort of commentary on our issue tracker, thanks. |
@MikeMcQuaid For the case you do not want to add a feature like that, you could add a new paragraph in the How to Create and Maintain a Tap documentation. Create a note there that formulae should not try to overwrite core formula names and it would be great to also mention in a small example how to provide alternative binary names. With your solution, it will be needed to use the Or is it possible to unlink the core |
It seems to be indeed allowed to unlink a dependency and it still counts as satisfied, so I can link my |
Glad you've found a solution. That is broadly intended to work by Homebrew (dependencies should not rely on linkage) but might not 100% of the time (which is why |
A detailed description of the proposed feature
Other package managers like
pacman
for Arch Linux have the possibility to provide other packages via more specialized packages, e.g.ffmpeg-full
with all features enabled does also provide the base packageffmpeg
, so all needed dependencies are still met if onlyffmpeg-full
is installed (it would conflict with theffmpeg
package anyway).Providing a class method
.provides(name)
for theFormula
class similar to the.depends_on(name)
method would be very helpful to tell the Homebrew system that a formula does provide the exact same functionality (i.e. also the same binaries/libraries) as another formula.The motivation for the feature
After the removal of options in core formulae, it is hard to install formulae with optional features enabled while still satisfying all dependencies for other formulae. For example, I cannot install
ffmpeg
anymore with all features enabled like I did in the past. Creating another version with all features enabled in the custom tapmaki-chan/homebrew-moreoptionals
does not work because when I install the ffmpeg formula from there, even aftertap-pin
, updating depending formulae likeaudacious
results in an error:The above mentioned feature would enable developers and power users to provide more feature-rich formulae, even if it was only "core formulae on steroids".
How the feature would be relevant to at least 90% of Homebrew users
As mentioned above, it would create the possibility to provide more features for existing formulae without breaking dependencies and without the need for options in the core formulae.
ffmpeg
is maybe one of the most prominent examples, but there are most likely other formulae with features not enabled in the core repository but demanded by many people.What alternatives to the feature have been considered
If there is already a method to tell
brew
thatmaki-chan/homebrew-moreoptionals/ffmpeg
is the same ashomebrew/homebrew-core/ffmpeg
, then tell me and you can happily close this feature request. Otherwise, I am pretty sure there are enough users who would love a feature like this.The text was updated successfully, but these errors were encountered: