aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2016-10-15 11:47:29 +0100
committerGitHub2016-10-15 11:47:29 +0100
commit13276409a9b08fcbadfed18c25b6fd11af343729 (patch)
treee687569323bf8064a33b58a918170cee9c143b81 /Library
parentac50ffc82d2590eed8d666464a7b0213e3db00d7 (diff)
parent5163aa5d21a612738362a186e6d45e6fb1daa94a (diff)
downloadbrew-13276409a9b08fcbadfed18c25b6fd11af343729.tar.bz2
Merge pull request #1275 from woodruffw/goodbye-cctools
formula_installer: Remove obsolete hard dependency on cctools.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formula_installer.rb15
-rw-r--r--Library/Homebrew/requirements/cctools_requirement.rb13
2 files changed, 0 insertions, 28 deletions
diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb
index 09c11318e..7bf07a5ff 100644
--- a/Library/Homebrew/formula_installer.rb
+++ b/Library/Homebrew/formula_installer.rb
@@ -12,7 +12,6 @@ require "cmd/postinstall"
require "hooks/bottles"
require "debrew"
require "sandbox"
-require "requirements/cctools_requirement"
require "emoji"
require "development_tools"
@@ -234,7 +233,6 @@ class FormulaInstaller
pour_bottle = pour_bottle?(warn: true)
if pour_bottle
begin
- install_relocation_tools unless formula.bottle_specification.skip_relocation?
pour
rescue Exception => e
# any exceptions must leave us with nothing installed
@@ -434,19 +432,6 @@ class FormulaInstaller
@show_header = true unless deps.empty?
end
- # Installs the relocation tools (as provided by the cctools formula) as a hard
- # dependency for every formula installed from a bottle when the user has no
- # developer tools. Invoked unless the formula explicitly sets
- # :any_skip_relocation in its bottle DSL.
- def install_relocation_tools
- cctools = CctoolsRequirement.new
- dependency = cctools.to_dependency
- formula = dependency.to_formula
- return if cctools.satisfied? || @@attempted.include?(formula)
-
- install_dependency(dependency, inherited_options_for(cctools))
- end
-
class DependencyInstaller < FormulaInstaller
def skip_deps_check?
true
diff --git a/Library/Homebrew/requirements/cctools_requirement.rb b/Library/Homebrew/requirements/cctools_requirement.rb
deleted file mode 100644
index ef0cd680c..000000000
--- a/Library/Homebrew/requirements/cctools_requirement.rb
+++ /dev/null
@@ -1,13 +0,0 @@
-# Represents a general requirement for utilities normally installed by Xcode,
-# the CLT, or provided by the cctools formula. In particular, this requirement
-# allows Homebrew to pull in the cctools formula and use its utilities to
-# perform relocation operations on systems that do not have either Xcode or the
-# CLT installed (but still want to install bottled formulae).
-class CctoolsRequirement < Requirement
- fatal true
- default_formula "cctools"
-
- satisfy(build_env: false) do
- MacOS::Xcode.installed? || MacOS::CLT.installed? || Formula["cctools"].installed?
- end
-end