From bb1a7ea926a56cc711c3dc86373a7c07510725a8 Mon Sep 17 00:00:00 2001 From: Samuel John Date: Fri, 11 Jan 2013 12:32:42 +0100 Subject: 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 #17005. Signed-off-by: Mike McQuaid --- Library/Formula/gdal.rb | 2 +- Library/Formula/subversion.rb | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/gdal.rb b/Library/Formula/gdal.rb index 1f0362b52..813050c3b 100644 --- a/Library/Formula/gdal.rb +++ b/Library/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/Library/Formula/subversion.rb b/Library/Formula/subversion.rb index 0c1b98dd9..a9097fded 100644 --- a/Library/Formula/subversion.rb +++ b/Library/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 -- cgit v1.2.3