Module: OS::Linux::DependencyCollector Private
- Included in:
- DependencyCollector
- Defined in:
- extend/os/linux/dependency_collector.rb
This module is part of a private API. This module may only be used in the Homebrew/brew repository. Third parties should avoid using this module if possible, as it may be removed or changed without warning.
Instance Method Summary collapse
- #bubblewrap_dep_if_needed(related_formula_names) ⇒ Dependency? private
- #gcc_dep_if_needed(related_formula_names) ⇒ Dependency? private
- #glibc_dep_if_needed(related_formula_names) ⇒ Dependency? private
Instance Method Details
#bubblewrap_dep_if_needed(related_formula_names) ⇒ Dependency?
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
11 12 13 14 15 16 17 18 19 |
# File 'extend/os/linux/dependency_collector.rb', line 11 def bubblewrap_dep_if_needed() return unless bubblewrap_dependency_needed? return if building_global_dep_tree? return if .include?(BUBBLEWRAP) return if global_dep_tree[BUBBLEWRAP]&.intersect?() return unless formula_for(BUBBLEWRAP) Dependency.new(BUBBLEWRAP, [:implicit]) end |
#gcc_dep_if_needed(related_formula_names) ⇒ Dependency?
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
22 23 24 25 26 27 28 29 30 31 |
# File 'extend/os/linux/dependency_collector.rb', line 22 def gcc_dep_if_needed() # gcc is required for libgcc_s.so.1 if glibc or gcc are too old return unless ::DevelopmentTools.needs_build_formulae? return if building_global_dep_tree? return if .include?(GCC) return if global_dep_tree[GCC]&.intersect?() return unless formula_for(GCC) Dependency.new(GCC, [:implicit]) end |
#glibc_dep_if_needed(related_formula_names) ⇒ Dependency?
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
34 35 36 37 38 39 40 41 42 |
# File 'extend/os/linux/dependency_collector.rb', line 34 def glibc_dep_if_needed() return unless ::DevelopmentTools.needs_libc_formula? return if building_global_dep_tree? return if .include?(GLIBC) return if global_dep_tree[GLIBC]&.intersect?() return unless formula_for(GLIBC) Dependency.new(GLIBC, [:implicit]) end |