aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorDominyk Tiller2014-12-01 05:17:15 +0000
committerMike McQuaid2014-12-01 08:11:01 +0000
commit61883d5d625221c2469ed1f265a2e8a639defa0e (patch)
treec7687546f733492a3571e4d174e1228414b6a694 /Library/Formula
parent3698cb469047cb8d9056b6443fc5de7f55a19782 (diff)
downloadhomebrew-61883d5d625221c2469ed1f265a2e8a639defa0e.tar.bz2
git: fix broken svn option if no swig exists prior.
Resolves the bug where installing Git with brewed-svn wouldn't automatically drag in the required Swig dependency and consequently the build would instantly error out. The error itself could be with the subversion formulae or Homebrew itself, and this may just be a workaround. Given building git with-brewed-svn specifies svn with perl, it should trigger a swig download automatically prior to attempting to install the svn dep, but for some reason it doesn't. Both from-source and from-bottle installs error out in the same way: ``` ==> Installing git dependency: subversion Error: /usr/local/opt/swig not present or broken Please reinstall swig. Sorry :( ``` For now, have resolved this bug by dragging in an explicit swig dependency prior to the subversion one, if you choose to install with-brewed-svn. Closes #34554. Closes #34576. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/git.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/Library/Formula/git.rb b/Library/Formula/git.rb
index 4a0283110..d3cbbd68c 100644
--- a/Library/Formula/git.rb
+++ b/Library/Formula/git.rb
@@ -36,7 +36,12 @@ class Git < Formula
depends_on "openssl" if build.with? "brewed-openssl"
depends_on "curl" if build.with? "brewed-curl"
depends_on "go" => :build if build.with? "persistent-https"
- depends_on "subversion" => "perl" if build.with? "brewed-svn"
+ # Trigger an install of swig before subversion, as the "swig" doesn't get pulled in otherwise
+ # See https://github.com/Homebrew/homebrew/issues/34554
+ if build.with? "brewed-svn"
+ depends_on "swig"
+ depends_on "subversion" => "perl"
+ end
def install
# If these things are installed, tell Git build system to not use them