From b8683d88003ed0c15075422e39cb4bcc43fbce0d Mon Sep 17 00:00:00 2001 From: Samuel John Date: Fri, 11 Jan 2013 12:32:42 +0100 Subject: [PATCH] Fix build errors caused by making sqlite keg_only - In subversion and gdal, because they used HOMEBREW_PREFIX/lib instead of Formula.factory('sqlite').opt_prefix Closes Homebrew/homebrew#17005. Signed-off-by: Mike McQuaid --- Formula/gdal.rb | 2 +- Formula/subversion.rb | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Formula/gdal.rb b/Formula/gdal.rb index 1f0362b520..813050c3b5 100644 --- a/Formula/gdal.rb +++ b/Formula/gdal.rb @@ -117,7 +117,7 @@ class Gdal < Formula "--with-gif=#{HOMEBREW_PREFIX}", "--with-libtiff=#{HOMEBREW_PREFIX}", "--with-geotiff=#{HOMEBREW_PREFIX}", - "--with-sqlite3=#{HOMEBREW_PREFIX}", + "--with-sqlite3=#{Formula.factory('sqlite').opt_prefix}", "--with-freexl=#{HOMEBREW_PREFIX}", "--with-spatialite=#{HOMEBREW_PREFIX}", "--with-geos=#{HOMEBREW_PREFIX}/bin/geos-config", diff --git a/Formula/subversion.rb b/Formula/subversion.rb index 0c1b98dd9e..a9097fdedc 100644 --- a/Formula/subversion.rb +++ b/Formula/subversion.rb @@ -116,6 +116,9 @@ class Subversion < Formula end def install + # We had weird issues with "make" apparently hanging on first run: https://github.com/mxcl/homebrew/issues/13226 + ENV.deparallelize + if build_java? unless build.universal? opoo "A non-Universal Java build was requested." @@ -138,7 +141,7 @@ class Subversion < Formula "--with-apr=#{apr_bin}", "--with-ssl", "--with-zlib=/usr", - "--with-sqlite=#{HOMEBREW_PREFIX}", + "--with-sqlite=#{Formula.factory('sqlite').opt_prefix}", "--with-serf=#{HOMEBREW_PREFIX}", # use our neon, not OS X's "--disable-neon-version-check", @@ -164,7 +167,6 @@ class Subversion < Formula end if build_perl? - ENV.j1 # This build isn't parallel safe # Remove hard-coded ppc target, add appropriate ones if build.universal? arches = "-arch x86_64 -arch i386" @@ -188,13 +190,11 @@ class Subversion < Formula end if build_java? - ENV.j1 # This build isn't parallel safe system "make javahl" system "make install-javahl" end if build_ruby? - ENV.j1 # This build isn't parallel safe system "make swig-rb" system "make install-swig-rb" end @@ -251,6 +251,7 @@ class Subversion < Formula return s.empty? ? nil : s end end + __END__ --- subversion/bindings/swig/perl/native/Makefile.PL.in~ 2011-07-16 04:47:59.000000000 -0700 +++ subversion/bindings/swig/perl/native/Makefile.PL.in 2012-06-27 17:45:57.000000000 -0700