aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authornibbles 2bits2012-07-02 03:07:15 -0700
committerAdam Vandenberg2012-07-02 21:31:19 -0700
commit95f25b73e8da46417a60eaa9999707a34fa9dbf0 (patch)
treeefd1ace1597974c8087a2ddcc0bb6c167bedc487 /Library/Formula
parentd347c8d52f4ac4f1a45876bee8c42fa6fce6e835 (diff)
downloadhomebrew-95f25b73e8da46417a60eaa9999707a34fa9dbf0.tar.bz2
jpeg-turbo: fix race condition in make install
jpeg-turbo-1.2.0 can fail `make install` due to a race condition on Lion using clang, where you get the error that a path exists. Separate the make steps, and deparallelize the install. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/jpeg-turbo.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Formula/jpeg-turbo.rb b/Library/Formula/jpeg-turbo.rb
index 0b4e6b711..4c0e32031 100644
--- a/Library/Formula/jpeg-turbo.rb
+++ b/Library/Formula/jpeg-turbo.rb
@@ -13,6 +13,8 @@ class JpegTurbo < Formula
args = ["--disable-dependency-tracking", "--prefix=#{prefix}"]
args << "--host=x86_64-apple-darwin" if MacOS.prefer_64_bit?
system "./configure", *args
+ system 'make'
+ ENV.j1 # Stops a race condition error: file exists
system "make install"
end