New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Source build can fail when pour_bottle? do
is unsatisfied
#3251
Comments
@sjackman In general, we probably never want |
The change in behaviour was before PR #3176, back in 008eaac of PR #3105. Prior to PR #3105, installing a local bottle always poured the bottle, and it did not check the status of |
The old behaviour of always pouring the local bottle, even when it's incompatible, can be retained by using brew install --force-bottle ./bottle.tar.gz |
This line of code in the formula stored in s.gsub! "/usr/local/ssl", Formula["openssl"].opt_prefix is being changed to s.gsub! "@@HOMEBREW_PREFIX@@/ssl", Formula["openssl"].opt_prefix by the bottle relocation. The file |
Untested patch below. Something along the lines of… commit fbfe9046fe93eacfb39c35d5a50a2e2bee8612ce
Author: Shaun Jackman <sjackman@gmail.com>
Date: Sun Oct 1 09:52:29 2017 -0700
replace_text_in_files: Exempt .brew/FORMULA.rb
diff --git a/Library/Homebrew/keg_relocate.rb b/Library/Homebrew/keg_relocate.rb
index 085748632..7a86e364b 100644
--- a/Library/Homebrew/keg_relocate.rb
+++ b/Library/Homebrew/keg_relocate.rb
@@ -58,6 +58,7 @@ class Keg
def replace_text_in_files(relocation, files: nil)
files ||= text_files | libtool_files
+ files -= ["#{to_path}/.brew/#{name}.rb"]
changed_files = []
files.map(&path.method(:join)).group_by { |f| f.stat.ino }.each_value do |first, *rest| |
Seems reasonable but may want to expand it to be beyond just |
I've opened PR #3257 to address this issue. |
Good suggestion. Thanks, Mike. |
Is |
true |
Closed via #3257. |
brew
command and notbrew install
ing or the post-install behaviour of one or more formulae? If it's a formulae-specific problem please file this issue at the relevant tap e.g. for Homebrew/homebrew-core https://github.com/Homebrew/homebrew-core/issues/newbrew update
and retried your prior step?brew doctor
, fixed all issues and retried your prior step?brew config
andbrew doctor
and included their output with your issue?To help us debug your issue please explain:
Test source builds work when
pour_bottle? do
is unsatisfied.It attempts a source build but fails.
What you expected to happen
A successful source build (correct) or at least a successful bottle pour (less correct).
Step-by-step reproduction instructions (by running
brew
commands)The text was updated successfully, but these errors were encountered: