From 95f25b73e8da46417a60eaa9999707a34fa9dbf0 Mon Sep 17 00:00:00 2001 From: nibbles 2bits Date: Mon, 2 Jul 2012 03:07:15 -0700 Subject: 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 --- Library/Formula/jpeg-turbo.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Library/Formula') 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 -- cgit v1.2.3