diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb index 2794c3bf97..31c57cfb81 100644 --- a/Library/Homebrew/formula_installer.rb +++ b/Library/Homebrew/formula_installer.rb @@ -604,17 +604,19 @@ class FormulaInstaller post_install end - caveats - - ohai "Summary" if verbose? || show_summary_heading? - puts summary - # Updates the cache for a particular formula after doing an install CacheStoreDatabase.use(:linkage) do |db| break unless db.created? LinkageChecker.new(keg, formula, cache_db: db) end + # Update tab with actual runtime dependencies + tab = Tab.for_keg(keg) + Tab.clear_cache + tab.runtime_dependencies = + formula.runtime_dependencies(read_from_tab: false) + tab.write + # let's reset Utils.git_available? if we just installed git Utils.clear_git_available_cache if formula.name == "git" @@ -623,6 +625,11 @@ class FormulaInstaller !DevelopmentTools.curl_handles_most_https_certificates? ENV["HOMEBREW_CURL"] = formula.opt_bin/"curl" end + + caveats + + ohai "Summary" if verbose? || show_summary_heading? + puts summary ensure unlock end diff --git a/Library/Homebrew/tab.rb b/Library/Homebrew/tab.rb index 7bfa2e36cd..e816743f51 100644 --- a/Library/Homebrew/tab.rb +++ b/Library/Homebrew/tab.rb @@ -17,7 +17,7 @@ class Tab < OpenStruct # Instantiates a Tab for a new installation of a formula. def self.create(formula, compiler, stdlib) build = formula.build - runtime_deps = formula.runtime_dependencies(read_from_tab: false) + runtime_deps = formula.declared_runtime_dependencies attributes = { "homebrew_version" => HOMEBREW_VERSION, "used_options" => build.used_options.as_flags,