Spec-Zone.ru › Homebrew

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.

Parameters:

  • related_formula_names (Set<String>)

Returns:

  • (Dependency, nil)


11
12
13
14
15
16
17
18
19
# File 'extend/os/linux/dependency_collector.rb', line 11

def bubblewrap_dep_if_needed(related_formula_names)
  return unless bubblewrap_dependency_needed?
  return if building_global_dep_tree?
  return if related_formula_names.include?(BUBBLEWRAP)
  return if global_dep_tree[BUBBLEWRAP]&.intersect?(related_formula_names)
  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.

Parameters:

  • related_formula_names (Set<String>)

Returns:

  • (Dependency, nil)


22
23
24
25
26
27
28
29
30
31
# File 'extend/os/linux/dependency_collector.rb', line 22

def gcc_dep_if_needed(related_formula_names)
  # 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 related_formula_names.include?(GCC)
  return if global_dep_tree[GCC]&.intersect?(related_formula_names)
  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.

Parameters:

  • related_formula_names (Set<String>)

Returns:

  • (Dependency, nil)


34
35
36
37
38
39
40
41
42
# File 'extend/os/linux/dependency_collector.rb', line 34

def glibc_dep_if_needed(related_formula_names)
  return unless ::DevelopmentTools.needs_libc_formula?
  return if building_global_dep_tree?
  return if related_formula_names.include?(GLIBC)
  return if global_dep_tree[GLIBC]&.intersect?(related_formula_names)
  return unless formula_for(GLIBC)

  Dependency.new(GLIBC, [:implicit])
end

© 2009–present Homebrew contributors
Licensed under the BSD 2-Clause License.
https://docs.brew.sh/rubydoc/OS/Linux/DependencyCollector.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API