Does brew has any plan to trim formulae's dependency trees? #5167
-
For some formulae, I find they has heavier dependencies than it does in other pkg manager, especilly for c++ pkgs. For example
Does Homebrew team has any plan to reduce the dependencies? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Homebrew is also different from other package managers
Why not?
But it is useful for the person who suggested adding it.
No, but you can make a pull request at any time to suggest changes and someone will happily review it. |
Beta Was this translation helpful? Give feedback.
-
Ultimately, this boils down to a design decision in (modern) Homebrew: packages in homebrew-core may not have optional dependencies. The two primary reasons for this choice, to my understanding, are:
Therefore, the two paths to consider are (1) have more complete, functional packages that may carry bloat, or (2) have more minimal, barebones packages that may not have the features that most(?) users want. Between these two possible paths, Homebrew tends to lean towards the former. Note that in third-party taps, formulae may add optional dependencies. However, to take advantage of this, the packages must then be built from source on the end user's local machine (losing the benefit of bottles/precompiled packages). |
Beta Was this translation helpful? Give feedback.
Ultimately, this boils down to a design decision in (modern) Homebrew: packages in homebrew-core may not have optional dependencies. The two primary reasons for this choice, to my understanding, are: