Skip to content

Commit

Permalink
Merge pull request Homebrew#1275 from woodruffw/goodbye-cctools
Browse files Browse the repository at this point in the history
formula_installer: Remove obsolete hard dependency on cctools.
  • Loading branch information
MikeMcQuaid authored Oct 15, 2016
2 parents ac50ffc + 5163aa5 commit 1327640
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 28 deletions.
15 changes: 0 additions & 15 deletions Library/Homebrew/formula_installer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
require "hooks/bottles"
require "debrew"
require "sandbox"
require "requirements/cctools_requirement"
require "emoji"
require "development_tools"

Expand Down Expand Up @@ -234,7 +233,6 @@ def install
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
Expand Down Expand Up @@ -434,19 +432,6 @@ def install_dependencies(deps)
@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
Expand Down
13 changes: 0 additions & 13 deletions Library/Homebrew/requirements/cctools_requirement.rb

This file was deleted.

0 comments on commit 1327640

Please sign in to comment.