Skip to content
This repository
Browse code

Update fails_with_llvm in formulae

  • Loading branch information...
commit f4a925da5aee87cf7e2509116a495779a1af64b8 1 parent 8f16c41
Adam Vandenberg authored March 21, 2011

Showing 72 changed files with 168 additions and 145 deletions. Show diff stats Hide diff stats

  1. 3  Library/Formula/aria2.rb
  2. 3  Library/Formula/aspell.rb
  3. 6  Library/Formula/bdw-gc.rb
  4. 5  Library/Formula/boost.rb
  5. 4  Library/Formula/cdargs.rb
  6. 3  Library/Formula/cdparanoia.rb
  7. 3  Library/Formula/cdrdao.rb
  8. 3  Library/Formula/celt.rb
  9. 7  Library/Formula/clisp.rb
  10. 3  Library/Formula/dirac.rb
  11. 3  Library/Formula/elinks.rb
  12. 4  Library/Formula/emacs.rb
  13. 3  Library/Formula/erlang.rb
  14. 4  Library/Formula/flac.rb
  15. 3  Library/Formula/flusspferd.rb
  16. 4  Library/Formula/fontforge.rb
  17. 3  Library/Formula/gawk.rb
  18. 5  Library/Formula/gd.rb
  19. 4  Library/Formula/gmp.rb
  20. 4  Library/Formula/gnutls.rb
  21. 4  Library/Formula/google-perftools.rb
  22. 3  Library/Formula/gpgme.rb
  23. 3  Library/Formula/graphicsmagick.rb
  24. 4  Library/Formula/guile.rb
  25. 3  Library/Formula/id3lib.rb
  26. 4  Library/Formula/igraph.rb
  27. 3  Library/Formula/jasper.rb
  28. 3  Library/Formula/jnethack.rb
  29. 3  Library/Formula/john.rb
  30. 4  Library/Formula/libevent.rb
  31. 3  Library/Formula/libexif.rb
  32. 4  Library/Formula/libsigsegv.rb
  33. 8  Library/Formula/libvirt.rb
  34. 4  Library/Formula/libxml2.rb
  35. 3  Library/Formula/log4cxx.rb
  36. 4  Library/Formula/lua.rb
  37. 23  Library/Formula/monotone.rb
  38. 3  Library/Formula/mosh.rb
  39. 3  Library/Formula/mysql-connector-c.rb
  40. 4  Library/Formula/mysql.rb
  41. 3  Library/Formula/nethack.rb
  42. 3  Library/Formula/nmap.rb
  43. 4  Library/Formula/node.rb
  44. 3  Library/Formula/pango.rb
  45. 4  Library/Formula/pbzip2.rb
  46. 3  Library/Formula/pcre.rb
  47. 4  Library/Formula/pdflib-lite.rb
  48. 10  Library/Formula/portaudio.rb
  49. 4  Library/Formula/povray.rb
  50. 5  Library/Formula/proj.rb
  51. 3  Library/Formula/pv.rb
  52. 4  Library/Formula/redis.rb
  53. 8  Library/Formula/redland.rb
  54. 3  Library/Formula/ruby-enterprise-edition.rb
  55. 10  Library/Formula/ruby.rb
  56. 3  Library/Formula/sbcl.rb
  57. 4  Library/Formula/silk.rb
  58. 12  Library/Formula/sphinx.rb
  59. 3  Library/Formula/spin.rb
  60. 3  Library/Formula/streamripper.rb
  61. 6  Library/Formula/swi-prolog.rb
  62. 3  Library/Formula/syck.rb
  63. 4  Library/Formula/tesseract.rb
  64. 3  Library/Formula/ufraw.rb
  65. 3  Library/Formula/unittest.rb
  66. 8  Library/Formula/valgrind.rb
  67. 3  Library/Formula/visualboyadvance.rb
  68. 3  Library/Formula/vpnc.rb
  69. 3  Library/Formula/w3m.rb
  70. 3  Library/Formula/wine.rb
  71. 4  Library/Formula/yaf.rb
  72. 4  Library/Formula/zeromq.rb
3  Library/Formula/aria2.rb
@@ -5,8 +5,9 @@ class Aria2 < Formula
5 5
   md5 '856cd88e75c7b893b42f4b6b8f2c0ad1'
6 6
   homepage 'http://aria2.sourceforge.net/'
7 7
 
  8
+  fails_with_llvm "1.8.2 didn't work w/ LLVM"
  9
+
8 10
   def install
9  
-    fails_with_llvm "1.8.2 didn't work w/ LLVM"
10 11
     system "./configure", "--disable-dependency-tracking",
11 12
                           "--prefix=#{prefix}"
12 13
     system "make install"
3  Library/Formula/aspell.rb
@@ -13,6 +13,8 @@ class Aspell < Formula
13 13
   homepage 'http://aspell.net/'
14 14
   md5 'bc80f0198773d5c05086522be67334eb'
15 15
 
  16
+  fails_with_llvm "Segmentation fault during linking."
  17
+
16 18
   def options
17 19
     [
18 20
       ['--lang=XX,...', "Install dictionary for language XX where XX is the country code, e.g.: --lang=en,es\n\tAvailable country codes: #{available_languages.join(', ')}"],
@@ -21,7 +23,6 @@ def options
21 23
   end
22 24
 
23 25
   def install
24  
-    fails_with_llvm
25 26
     system "./configure", "--prefix=#{prefix}"
26 27
     system "make install"
27 28
 
6  Library/Formula/bdw-gc.rb
@@ -5,10 +5,10 @@ class BdwGc < Formula
5 5
   homepage 'http://www.hpl.hp.com/personal/Hans_Boehm/gc/'
6 6
   md5 '2ff9924c7249ef7f736ecfe6f08f3f9b'
7 7
 
8  
-  def install
9  
-    fails_with_llvm "LLVM gives an unsupported inline asm error"
  8
+  fails_with_llvm "LLVM gives an unsupported inline asm error"
10 9
 
11  
-    if MACOS_VERSION == 10.6
  10
+  def install
  11
+    if 10.6 <= MACOS_VERSION
12 12
       # ucontext has been deprecated in 10.6
13 13
       # use this flag to force the header to compile
14 14
       ENV.append 'CPPFLAGS', "-D_XOPEN_SOURCE"
5  Library/Formula/boost.rb
@@ -12,10 +12,9 @@ def options
12 12
     ]
13 13
   end
14 14
 
15  
-  def install
16  
-    fails_with_llvm "LLVM-GCC causes errors with dropped arguments to "+
17  
-                    "functions when linking with boost"
  15
+  fails_with_llvm "LLVM-GCC causes errors with dropped arguments to functions when linking with boost"
18 16
 
  17
+  def install
19 18
     # Adjust the name the libs are installed under to include the path to the
20 19
     # Homebrew lib directory so executables will work when installed to a
21 20
     # non-/usr/local location.
4  Library/Formula/cdargs.rb
@@ -5,9 +5,9 @@ class Cdargs < Formula
5 5
   homepage 'http://www.skamphausen.de/cgi-bin/ska/CDargs'
6 6
   md5 '50be618d67f0b9f2439526193c69c567'
7 7
 
8  
-  def install
9  
-    fails_with_llvm "Bus error in ld on SL 10.6.4"
  8
+  fails_with_llvm "Bus error in ld on SL 10.6.4"
10 9
 
  10
+  def install
11 11
     system "./configure", "--prefix=#{prefix}", "--mandir=#{man}"
12 12
     system "make"
13 13
     system "make install-strip"
3  Library/Formula/cdparanoia.rb
@@ -12,8 +12,9 @@ def patches
12 12
     ]
13 13
   end
14 14
 
  15
+  fails_with_llvm '"File too small" error while linking', :build => 2326
  16
+
15 17
   def install
16  
-    fails_with_llvm "\"File too small\" error while linking", :build => 2326
17 18
     system "autoconf"
18 19
     system "./configure", "--disable-debug", "--disable-dependency-tracking",
19 20
            "--prefix=#{prefix}", "--mandir=#{man}"
3  Library/Formula/cdrdao.rb
@@ -17,8 +17,9 @@ def patches
17 17
     "http://sourceforge.net/tracker/download.php?group_id=2171&atid=302171&file_id=369387&aid=2981804"
18 18
   end
19 19
 
  20
+  fails_with_llvm "Segfault while linking", :build => 2326
  21
+
20 22
   def install
21  
-    fails_with_llvm "Segfault while linking", :build => 2326
22 23
     system "./configure", "--disable-debug", "--disable-dependency-tracking",
23 24
                           "--prefix=#{prefix}", "--mandir=#{man}"
24 25
     system "make install"
3  Library/Formula/celt.rb
@@ -7,8 +7,9 @@ class Celt < Formula
7 7
 
8 8
   depends_on 'libogg' => :optional
9 9
 
  10
+  fails_with_llvm "1 test failed with llvm-gcc"
  11
+
10 12
   def install
11  
-    fails_with_llvm "1 test failed with llvm-gcc"
12 13
     system "./configure", "--disable-dependency-tracking",
13 14
                           "--prefix=#{prefix}",
14 15
                           "--enable-new-plc"
7  Library/Formula/clisp.rb
@@ -11,11 +11,10 @@ class Clisp < Formula
11 11
 
12 12
   skip_clean :all # otherwise abort trap
13 13
 
14  
-  def install
15  
-    # This build isn't parallel safe.
16  
-    ENV.j1
  14
+  fails_with_llvm "Fails during configure with LLVM GCC from XCode 4 on Snow Leopard"
17 15
 
18  
-    fails_with_llvm "Fails during configure with LLVM GCC from XCode 4 on Snow Leopard"
  16
+  def install
  17
+    ENV.j1 # This build isn't parallel safe.
19 18
 
20 19
     # Clisp requires to select word size explicitly this way,
21 20
     # set it in CFLAGS won't work.
3  Library/Formula/dirac.rb
@@ -5,8 +5,9 @@ class Dirac < Formula
5 5
   md5 'a57c2c5e58062d437d9ab13dffb28f0f'
6 6
   homepage 'http://diracvideo.org/'
7 7
 
  8
+  fails_with_llvm
  9
+
8 10
   def install
9  
-    fails_with_llvm
10 11
     system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
11 12
     system "make install"
12 13
   end
3  Library/Formula/elinks.rb
@@ -5,8 +5,9 @@ class Elinks < Formula
4  Library/Formula/emacs.rb
@@ -56,9 +56,9 @@ def caveats
56 56
     return s
57 57
   end
58 58
 
59  
-  def install
60  
-    fails_with_llvm "Duplicate symbol errors while linking."
  59
+  fails_with_llvm "Duplicate symbol errors while linking."
61 60
 
  61
+  def install
62 62
     args = ["--prefix=#{prefix}",
63 63
             "--without-dbus",
64 64
             "--enable-locallisppath=#{HOMEBREW_PREFIX}/share/emacs/site-lisp",
3  Library/Formula/erlang.rb
@@ -32,9 +32,10 @@ def options
32 32
     ]
33 33
   end
34 34
 
  35
+  fails_with_llvm "See https://github.com/mxcl/homebrew/issues/issue/120", :build => 2326
  36
+
35 37
   def install
36 38
     ENV.deparallelize
37  
-    fails_with_llvm "See https://github.com/mxcl/homebrew/issues/issue/120", :build => 2326
38 39
 
39 40
     # If building from GitHub, this step is required (but not for tarball downloads.)
40 41
     system "./otp_build autoconf" if File.exist? "otp_build"
4  Library/Formula/flac.rb
@@ -13,9 +13,9 @@ class Flac < Formula
13 13
   depends_on 'lame'
14 14
   depends_on 'libogg' => :optional
15 15
 
16  
-  def install
17  
-    fails_with_llvm "Undefined symbols when linking", :build => 2326
  16
+  fails_with_llvm "Undefined symbols when linking", :build => 2326
18 17
 
  18
+  def install
19 19
     # sadly the asm optimisations won't compile since Leopard, and nobody
20 20
     # cares or knows how to fix it
21 21
     system "./configure", "--disable-debug",
3  Library/Formula/flusspferd.rb
@@ -11,8 +11,9 @@ class Flusspferd < Formula
11 11
   depends_on 'boost'
12 12
   depends_on 'spidermonkey'
13 13
 
  14
+  fails_with_llvm
  15
+
14 16
   def install
15  
-    fails_with_llvm
16 17
     system "cmake -H. -Bbuild #{std_cmake_parameters}"
17 18
     system "make install"
18 19
   end
4  Library/Formula/fontforge.rb
@@ -11,9 +11,9 @@ class Fontforge < Formula
11 11
   depends_on 'pango'
12 12
   depends_on 'potrace'
13 13
 
14  
-  def install
15  
-    fails_with_llvm "Compiling cvexportdlg.c fails with error: initializer element is not constant"
  14
+  fails_with_llvm "Compiling cvexportdlg.c fails with error: initializer element is not constant"
16 15
 
  16
+  def install
17 17
     ENV.x11
18 18
     # Fix linker error; see: http://trac.macports.org/ticket/25012
19 19
     ENV.append "LDFLAGS", "-lintl"
3  Library/Formula/gawk.rb
@@ -5,8 +5,9 @@ class Gawk < Formula
5 5
   homepage 'http://www.gnu.org/software/gawk/'
6 6
   md5 '52b41c6c4418b3226dfb8f82076193bb'
7 7
 
  8
+  fails_with_llvm "Undefined symbols when linking", :build => "2326"
  9
+
8 10
   def install
9  
-    fails_with_llvm "Undefined symbols when linking", :build => "2326"
10 11
     system "./configure", "--prefix=#{prefix}"
11 12
     system "make"
12 13
     system "make install"
5  Library/Formula/gd.rb
@@ -8,9 +8,10 @@ class Gd < Formula
8 8
 
9 9
   depends_on 'jpeg' => :recommended
10 10
 
  11
+  fails_with_llvm "Undefined symbols when linking", :build => "2326"
  12
+
11 13
   def install
12  
-    fails_with_llvm "Undefined symbols when linking", :build => "2326"
13  
-    ENV.libpng
  14
+    ENV.x11
14 15
     system "./configure", "--prefix=#{prefix}", "--with-freetype=/usr/X11"
15 16
     system "make install"
16 17
     (lib+'pkgconfig/gdlib.pc').write pkg_file
4  Library/Formula/gmp.rb
@@ -12,14 +12,14 @@ def options
12 12
     ]
13 13
   end
14 14
 
  15
+  fails_with_llvm "Tests fail to compile; missing references in 'llvm bitcode in libtests.a(misc.o)'."
  16
+
15 17
   def install
16 18
     # Reports of problems using gcc 4.0 on Leopard
17 19
     # https://github.com/mxcl/homebrew/issues/issue/2302
18 20
     # Also force use of 4.2 on 10.6 in case a user has changed the default
19 21
     ENV.gcc_4_2
20 22
 
21  
-    fails_with_llvm "Tests fail to compile; missing references in 'llvm bitcode in libtests.a(misc.o)'."
22  
-
23 23
     args = ["--prefix=#{prefix}", "--infodir=#{info}", "--enable-cxx"]
24 24
 
25 25
     if Hardware.is_32_bit? or ARGV.include? "--32-bit"
4  Library/Formula/gnutls.rb
@@ -13,9 +13,9 @@ def patches
13 13
     DATA
14 14
   end
15 15
 
16  
-  def install
17  
-    fails_with_llvm "Undefined symbols when linking", :build => "2326"
  16
+  fails_with_llvm "Undefined symbols when linking", :build => "2326"
18 17
 
  18
+  def install
19 19
     ENV.universal_binary	# build fat so wine can use it
20 20
 
21 21
     system "./configure", "--disable-debug", "--disable-dependency-tracking",
4  Library/Formula/google-perftools.rb
@@ -5,9 +5,9 @@ class GooglePerftools < Formula
5 5
   homepage 'http://code.google.com/p/google-perftools/'
6 6
   md5 '7acfee8d3e2ba968d20684e9f7033015'
7 7
 
8  
-  def install
9  
-    fails_with_llvm "Segfault during linking", :build => 2326
  8
+  fails_with_llvm "Segfault during linking", :build => 2326
10 9
 
  10
+  def install
11 11
     ENV.append_to_cflags '-D_XOPEN_SOURCE'
12 12
     system "./configure", "--disable-debug", "--disable-dependency-tracking",
13 13
                           "--prefix=#{prefix}"
3  Library/Formula/gpgme.rb
@@ -9,8 +9,9 @@ class Gpgme < Formula
9 9
   depends_on 'libgpg-error'
10 10
   depends_on 'libassuan'
11 11
 
  12
+  fails_with_llvm
  13
+
12 14
   def install
13  
-    fails_with_llvm
14 15
     system "./configure", "--disable-debug", "--disable-dependency-tracking",
15 16
                           "--prefix=#{prefix}",
16 17
                           "--disable-asm"
3  Library/Formula/graphicsmagick.rb
@@ -33,6 +33,8 @@ class Graphicsmagick < Formula
33 33
   depends_on 'ghostscript' => :recommended if ghostscript_srsly? and x11?
34 34
   depends_on 'libpng' unless x11?
35 35
 
  36
+  fails_with_llvm
  37
+
36 38
   def skip_clean? path
37 39
     path.extname == '.la'
38 40
   end
@@ -46,7 +48,6 @@ def options
46 48
   end
47 49
 
48 50
   def install
49  
-    fails_with_llvm
50 51
     ENV.libpng
51 52
     ENV.O3
52 53
 
4  Library/Formula/guile.rb
@@ -20,9 +20,9 @@ class Guile < Formula
20 20
   # GNU Readline is required; libedit won't work.
21 21
   depends_on 'readline'
22 22
 
23  
-  def install
24  
-    fails_with_llvm "Segfaults during compilation."
  23
+  fails_with_llvm "Segfaults during compilation."
25 24
 
  25
+  def install
26 26
     system "./configure", "--disable-dependency-tracking",
27 27
                           "--prefix=#{prefix}",
28 28
                           "--with-libreadline-prefix=#{Formula.factory('readline').prefix}"
3  Library/Formula/id3lib.rb
@@ -10,8 +10,9 @@ def patches
10 10
     {:p1 => DATA }
11 11
   end unless ARGV.build_head?
12 12
 
  13
+  fails_with_llvm "Segfault during linking", :build => 2326
  14
+
13 15
   def install
14  
-    fails_with_llvm "Segfault during linking", :build => 2326
15 16
     system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
16 17
     system "make install"
17 18
   end
4  Library/Formula/igraph.rb
@@ -8,9 +8,9 @@ class Igraph < Formula
8 8
   depends_on 'glpk'
9 9
   depends_on 'gmp'
10 10
 
11  
-  def install
12  
-    fails_with_llvm "Segfault while compiling."
  11
+  fails_with_llvm "Segfault while compiling."
13 12
 
  13
+  def install
14 14
     system "./configure", "--disable-debug", "--disable-dependency-tracking", "--prefix=#{prefix}"
15 15
     system "make install"
16 16
   end
3  Library/Formula/jasper.rb
@@ -11,8 +11,9 @@ def patches
11 11
     DATA
12 12
   end
13 13
 
  14
+  fails_with_llvm "Undefined symbols when linking", :build => "2326"
  15
+
14 16
   def install
15  
-    fails_with_llvm "Undefined symbols when linking", :build => "2326"
16 17
     system "./configure", "--disable-debug",
17 18
                           "--disable-dependency-tracking",
18 19
                           "--enable-shared",
3  Library/Formula/jnethack.rb
@@ -11,6 +11,8 @@ class Jnethack < Formula
11 11
   version '3.4.3-0.10'
12 12
   md5 '21479c95990eefe7650df582426457f9'
13 13
 
  14
+  fails_with_llvm
  15
+
14 16
   # Don't remove save folder
15 17
   skip_clean 'libexec/save'
16 18
 
@@ -22,7 +24,6 @@ def patches
22 24
   end
23 25
 
24 26
   def install
25  
-    fails_with_llvm
26 27
     # Build everything in-order; no multi builds.
27 28
     ENV.deparallelize
28 29
 
3  Library/Formula/john.rb
@@ -9,9 +9,10 @@ def patches
9 9
     { :p0 => DATA }
10 10
   end
11 11
 
  12
+  fails_with_llvm
  13
+
12 14
   def install
13 15
     ENV.deparallelize
14  
-    fails_with_llvm
15 16
     arch = Hardware.is_64_bit? ? '64' : 'sse2'
16 17
 
17 18
     Dir.chdir 'src' do
4  Library/Formula/libevent.rb
@@ -6,9 +6,9 @@ class Libevent < Formula
6 6
   md5 'a37401d26cbbf28185211d582741a3d4'
7 7
   head 'git://levent.git.sourceforge.net/gitroot/levent/levent'
8 8
 
9  
-  def install
10  
-    fails_with_llvm "Undefined symbol '_current_base' reported during linking.", :build => 2326
  9
+  fails_with_llvm "Undefined symbol '_current_base' reported during linking.", :build => 2326
11 10
 
  11
+  def install
12 12
     ENV.j1 # Needed for Mac Pro compilation
13 13
     system "./autogen.sh" if ARGV.build_head?
14 14
     system "./configure", "--prefix=#{prefix}"
3  Library/Formula/libexif.rb
@@ -5,8 +5,9 @@ class Libexif < Formula
5 5
   homepage 'http://libexif.sourceforge.net/'
6 6
   md5 '56144a030a4c875c600b1ccf713f69f7'
7 7
 
  8
+  fails_with_llvm "segfault with llvm"
  9
+
8 10
   def install
9  
-    fails_with_llvm "segfault with llvm"
10 11
     system "./configure", "--prefix=#{prefix}", "--disable-dependency-tracking"
11 12
     system "make install"
12 13
   end
4  Library/Formula/libsigsegv.rb
@@ -5,9 +5,9 @@ class Libsigsegv < Formula
5 5
   homepage 'http://www.gnu.org/software/libsigsegv/'
6 6
   md5 'ebe554e26870d8bc200ef3e3539ffd7c'
7 7
 
8  
-  def install
9  
-    fails_with_llvm "Fails during configure with LLVM GCC from XCode 4 on Snow Leopard"
  8
+  fails_with_llvm "Fails during configure with LLVM GCC from XCode 4 on Snow Leopard"
10 9
 
  10
+  def install
11 11
     system "./configure", "--disable-dependency-tracking",
12 12
                           "--prefix=#{prefix}"
13 13
     system "make"
8  Library/Formula/libvirt.rb
@@ -14,20 +14,18 @@ class Libvirt < Formula
14 14
   depends_on "yajl"
15 15
 
16 16
   if MACOS_VERSION < 10.6
17  
-    # Definitely needed on Leopard, but definitely not Snow Leopard.
18  
-    # Likely also needed on earlier OSX releases, though that hasn't
19  
-    # been tested yet.
  17
+    # Definitely needed on Leopard, but not on Snow Leopard.
20 18
     depends_on "readline"
21 19
     depends_on "libxml2"
22 20
   end
23 21
 
  22
+  fails_with_llvm "Undefined symbols when linking", :build => "2326"
  23
+
24 24
   def options
25 25
     [['--without-libvirtd', 'Build only the virsh client and development libraries.']]
26 26
   end
27 27
 
28 28
   def install
29  
-    fails_with_llvm "Undefined symbols when linking", :build => "2326"
30  
-
31 29
     args = ["--prefix=#{prefix}",
32 30
             "--localstatedir=#{var}",
33 31
             "--mandir=#{man}",
4  Library/Formula/libxml2.rb
@@ -7,14 +7,14 @@ class Libxml2 < Formula
7 7
 
8 8
   keg_only :provided_by_osx
9 9
 
  10
+  fails_with_llvm "Undefined symbols when linking", :build => "2326"
  11
+
10 12
   def options
11 13
     # Works with the Python 2 formula
12 14
     [['--with-python', 'Compile the libxml2 Python 2.x modules']]
13 15
   end
14 16
 
15 17
   def install
16  
-    fails_with_llvm "Undefined symbols when linking", :build => "2326"
17  
-
18 18
     args = ["--disable-dependency-tracking", "--prefix=#{prefix}"]
19 19
 
20 20
     if ARGV.include? '--with-python'
3  Library/Formula/log4cxx.rb
@@ -5,8 +5,9 @@ class Log4cxx < Formula
5 5
   homepage 'http://logging.apache.org/log4cxx/index.html'
6 6
   md5 'b30ffb8da3665178e68940ff7a61084c'
7 7
 
  8
+  fails_with_llvm "Fails with \"collect2: ld terminated with signal 11 [Segmentation fault]\"."
  9
+
8 10
   def install
9  
-    fails_with_llvm "Fails with \"collect2: ld terminated with signal 11 [Segmentation fault]\"."
10 11
     system "./configure", "--disable-debug", "--disable-dependency-tracking",
11 12
                           "--prefix=#{prefix}",
12 13
                           # Docs won't install on OS X
4  Library/Formula/lua.rb
@@ -5,12 +5,12 @@ class Lua < Formula
5 5
   homepage 'http://www.lua.org/'
6 6
   md5 'd0870f2de55d59c1c8419f36e8fac150'
7 7
 
  8
+  fails_with_llvm "Lua itself compiles with llvm, but may fail when other software tries to link."
  9
+
8 10
   # Skip cleaning both empty folders and bin/libs so external symbols still work.
9 11
   skip_clean :all
10 12
 
11 13
   def install
12  
-    fails_with_llvm "Lua itself compiles with llvm, but may fail when other software trys to link."
13  
-
14 14
     # Apply patch-level 2
15 15
     curl "http://www.lua.org/ftp/patch-lua-5.1.4-3", "-O"
16 16
     safe_system '/usr/bin/patch', '-d', 'src', '-i', '../patch-lua-5.1.4-3'
23  Library/Formula/monotone.rb
@@ -12,30 +12,23 @@ class Monotone < Formula
12 12
   depends_on 'lua'
13 13
   depends_on 'pcre'
14 14
 
15  
-  def install
16  
-    fails_with_llvm "linker fails"
17  
-
18  
-    def install_body
19  
-      system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
20  
-      system "make install"
21  
-    end
  15
+  fails_with_llvm "linker fails"
22 16
 
  17
+  def install
23 18
     # Monotone only needs headers from Boost (it's templates all the way down!), so let's avoid
24 19
     # building boost (which takes approximately forever) if it's not already installed. This is
25 20
     # suggested in the Monotone installation instructions.
26 21
 
27 22
     boost = Formula.factory('boost')
28  
-    if boost.installed?
29  
-      install_body
30  
-    else
31  
-      monotone_dir = Dir.pwd
  23
+    unless boost.installed?
32 24
       # a formula's stage method is private, so we cannot call boost.stage
33 25
       boost.brew do
34  
-        boost_dir = Dir.pwd
35  
-        ENV.append "CXXFLAGS", "-I"+boost_dir
36  
-        Dir.chdir monotone_dir
37  
-        install_body
  26
+        ENV.append "CXXFLAGS", "-I"+Dir.pwd
38 27
       end
39 28
     end
  29
+
  30
+    system "./configure", "--disable-debug", "--disable-dependency-tracking",
  31
+                          "--prefix=#{prefix}"
  32
+    system "make install"
40 33
   end
41 34
 end
3  Library/Formula/mosh.rb
@@ -9,8 +9,9 @@ class Mosh < Formula
9 9
   depends_on 'gmp'
10 10
   depends_on 'oniguruma'
11 11
 
  12
+  fails_with_llvm
  13
+
12 14
   def install
13  
-    fails_with_llvm
14 15
     ENV.gcc_4_2 # GCC > 4.0 required
15 16
 
16 17
     system "./configure", "--disable-debug", "--disable-dependency-tracking",
3  Library/Formula/mysql-connector-c.rb
@@ -7,8 +7,9 @@ class MysqlConnectorC < Formula
7 7
 
8 8
   depends_on 'cmake' => :build
9 9
 
  10
+  fails_with_llvm "error: unsupported inline asm"
  11
+
10 12
   def install
11  
-    fails_with_llvm "error: unsupported inline asm"
12 13
     system "cmake . #{std_cmake_parameters}"
13 14
     system 'make'
14 15
     ENV.j1
4  Library/Formula/mysql.rb
@@ -8,6 +8,8 @@ class Mysql < Formula
8 8
   depends_on 'cmake' => :build
9 9
   depends_on 'readline'
10 10
 
  11
+  fails_with_llvm "https://github.com/mxcl/homebrew/issues/issue/144"
  12
+
11 13
   def options
12 14
     [
13 15
       ['--with-tests', "Keep tests when installing."],
@@ -21,8 +23,6 @@ def patches
21 23
   end
22 24
 
23 25
   def install
24  
-    fails_with_llvm "https://github.com/mxcl/homebrew/issues/issue/144"
25  
-
26 26
     args = [
27 27
       ".",
28 28
       "-DCMAKE_INSTALL_PREFIX='#{prefix}'",
3  Library/Formula/nethack.rb
@@ -16,6 +16,8 @@ class Nethack < Formula
16 16
   version '3.4.3'
17 17
   md5 '21479c95990eefe7650df582426457f9'
18 18
 
  19
+  fails_with_llvm
  20
+
19 21
   # Don't remove save folder
20 22
   skip_clean 'libexec/save'
21 23
 
@@ -24,7 +26,6 @@ def patches
24 26
   end
25 27
 
26 28
   def install
27  
-    fails_with_llvm
28 29
     # Build everything in-order; no multi builds.
29 30
     ENV.deparallelize
30 31
 
3  Library/Formula/nmap.rb
@@ -8,8 +8,9 @@ class Nmap < Formula
8 8
   # namp needs newer version of openssl on Leopard
9 9
   depends_on "openssl" if MACOS_VERSION < 10.6
10 10
 
  11
+  fails_with_llvm
  12
+
11 13
   def install
12  
-    fails_with_llvm
13 14
     ENV.deparallelize
14 15
 
15 16
     args = ["--prefix=#{prefix}", "--without-zenmap"]
4  Library/Formula/node.rb
@@ -6,6 +6,8 @@ class Node < Formula
6 6
   homepage 'http://nodejs.org/'
7 7
   md5 'a2a6a6699e275a30f6047b1f33281a77'
8 8
 
  9
+  fails_with_llvm
  10
+
9 11
   # Stripping breaks dynamic loading
10 12
   skip_clean :all
11 13
 
@@ -14,8 +16,6 @@ def options
14 16
   end
15 17
 
16 18
   def install
17  
-    fails_with_llvm
18  
-
19 19
     inreplace 'wscript' do |s|
20 20
       s.gsub! '/usr/local', HOMEBREW_PREFIX
21 21
       s.gsub! '/opt/local/lib', '/usr/lib'
3  Library/Formula/pango.rb
@@ -8,13 +8,14 @@ class Pango < Formula
8 8
   depends_on 'pkg-config' => :build
9 9
   depends_on 'glib'
10 10
 
  11
+  fails_with_llvm "Undefined symbols when linking", :build => "2326"
  12
+
11 13
   if MACOS_VERSION < 10.6
12 14
     depends_on 'fontconfig' # Leopard's fontconfig is too old.
13 15
     depends_on 'cairo' # Leopard doesn't come with Cairo.
14 16
   end
15 17
 
16 18
   def install
17  
-    fails_with_llvm "Undefined symbols when linking", :build => "2326"
18 19
     system "./configure", "--prefix=#{prefix}", "--with-x"
19 20
     system "make install"
20 21
   end
4  Library/Formula/pbzip2.rb
@@ -5,9 +5,9 @@ class Pbzip2 < Formula
5 5
   homepage 'http://compression.ca/pbzip2/'
6 6
   md5 'b354422759da7113da366aad1876ed5d'
7 7
 
8  
-  def install
9  
-    fails_with_llvm
  8
+  fails_with_llvm
10 9
 
  10
+  def install
11 11
     inreplace "Makefile" do |s|
12 12
       s.change_make_var! 'PREFIX', prefix
13 13
       s.gsub! "/man/", "/share/man/"
3  Library/Formula/pcre.rb
@@ -5,12 +5,13 @@ class Pcre < Formula
5 5
   homepage 'http://www.pcre.org/'
6 6
   md5 'f14a9fef3c92f3fc6c5ac92d7a2c7eb3'
7 7
 
  8
+  fails_with_llvm "Bus error in ld on SL 10.6.4"
  9
+
8 10
   def options
9 11
     [["--universal", "Build a universal binary."]]
10 12
   end
11 13
 
12 14
   def install
13  
-    fails_with_llvm "Bus error in ld on SL 10.6.4"
14 15
     ENV.universal_binary if ARGV.include? "--universal"
15 16
 
16 17
     system "./configure", "--disable-dependency-tracking",
4  Library/Formula/pdflib-lite.rb
@@ -6,9 +6,9 @@ class PdflibLite < Formula
6 6
   md5 '1765de9c5f2b6c5769a2160eaa911e9a'
7 7
   version "7.0.4p4"
8 8
 
9  
-  def install
10  
-    fails_with_llvm "SL 10.6.1 LLVM crashes with an internal compiler error on this version."
  9
+  fails_with_llvm "SL 10.6.1 LLVM crashes with an internal compiler error on this version."
11 10
 
  11
+  def install
12 12
     # Without the following substituion, pdflib-lite runs into weird
13 13
     # build errors due to bad interactions with the TIFF headers.
14 14
     # This workaround comes from the MacPorts.org portfile for pdflib.
10  Library/Formula/portaudio.rb
@@ -5,16 +5,16 @@ class Portaudio < Formula
5 5
   homepage 'http://www.portaudio.com'
6 6
   md5 'd2943e4469834b25afe62cc51adc025f'
7 7
 
8  
-  def install
9  
-    fails_with_llvm
  8
+  depends_on 'pkg-config' => :build
  9
+
  10
+  fails_with_llvm
10 11
 
  12
+  def install
11 13
     system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
12 14
 
13 15
     # remove arch flags else we get errors like:
14 16
     #   lipo: can't figure out the architecture type
15  
-    ['-arch x86_64', '-arch ppc64', '-arch i386', '-arch ppc'].each do |arch|
16  
-      inreplace "Makefile", arch, ""
17  
-    end
  17
+    inreplace 'Makefile', /-arch (x64_64|ppc64|i386|ppc)/, ''
18 18
 
19 19
     system "make install"
20 20
 
4  Library/Formula/povray.rb
@@ -8,9 +8,9 @@ class Povray < Formula
8 8
   depends_on 'libtiff' => :optional
9 9
   depends_on 'jpeg' => :optional
10 10
 
11  
-  def install
12  
-    fails_with_llvm "llvm-gcc: povray fails with 'terminate called after throwing an instance of int'"
  11
+  fails_with_llvm "llvm-gcc: povray fails with 'terminate called after throwing an instance of int'"
13 12
 
  13
+  def install
14 14
     system "./configure", "--disable-debug", "--disable-dependency-tracking",
15 15
                           "COMPILED_BY=homebrew",
16 16
                           "--prefix=#{prefix}",
5  Library/Formula/proj.rb
@@ -10,13 +10,13 @@ class Proj < Formula
10 10
   homepage 'http://trac.osgeo.org/proj/'
11 11
   md5 '927d34623b52e0209ba2bfcca18fe8cd'
12 12
 
  13
+  fails_with_llvm
  14
+
13 15
   def skip_clean? path
14 16
     path.extname == '.la'
15 17
   end
16 18
 
17 19
   def install
18  
-    fails_with_llvm
19  
-
20 20
     # The datum grid files are required to support datum shifting
21 21
     d = Dir.getwd
22 22
     ProjDatumgrid.new.brew { cp Dir["*"], "#{d}/nad/" }
@@ -25,4 +25,3 @@ def install
25 25
     system "make install"
26 26
   end
27 27
 end
28  
-
3  Library/Formula/pv.rb
@@ -5,8 +5,9 @@ class Pv < Formula
5 5
   homepage 'http://www.ivarch.com/programs/pv.shtml'
6 6
   md5 '67aedf6dbcd068d5feeaa76156153f4f'
7 7
 
  8
+  fails_with_llvm
  9
+
8 10
   def install
9  
-    fails_with_llvm
10 11
     system "./configure", "--disable-debug", "--disable-dependency-tracking",
11 12
                           "--prefix=#{prefix}",
12 13
                           "--mandir=#{man}",
4  Library/Formula/redis.rb
@@ -6,9 +6,9 @@ class Redis < Formula
6 6
   homepage 'http://redis.io/'
7 7
   sha1 '75b953e4a3067570555c5f3f5e8f481c40489904'
8 8
 
9  
-  def install
10  
-    fails_with_llvm "Fails with \"reference out of range from _linenoise\""
  9
+  fails_with_llvm "Fails with \"reference out of range from _linenoise\""
11 10
 
  11
+  def install
12 12
     # Architecture isn't detected correctly on 32bit Snow Leopard without help
13 13
     ENV["OBJARCH"] = MacOS.prefer_64_bit? ? "-arch x86_64" : "-arch i386"
14 14
 
8  Library/Formula/redland.rb
@@ -10,11 +10,11 @@ class Redland < Formula
10 10
   depends_on 'rasqal'
11 11
   depends_on 'berkeley-db' => :optional
12 12
 
  13
+  fails_with_llvm
  14
+
13 15
   def install
14  
-    fails_with_llvm
15  
-    system "./configure", "--prefix=#{prefix}",
16  
-                          "--disable-debug",
17  
-                          "--disable-dependency-tracking",
  16
+    system "./configure", "--disable-debug", "--disable-dependency-tracking",
  17
+                          "--prefix=#{prefix}",
18 18
                           "--with-sqlite=yes",
19 19
                           "--with-mysql=no",
20 20
                           "--with-bdb=#{HOMEBREW_PREFIX}"
3  Library/Formula/ruby-enterprise-edition.rb
@@ -7,6 +7,8 @@ class RubyEnterpriseEdition < Formula
7 7
 
8 8
   depends_on 'readline'
9 9
 
  10
+  fails_with_llvm "fails with LLVM"
  11
+
10 12
   skip_clean 'bin/ruby'
11 13
 
12 14
   def options
@@ -16,7 +18,6 @@ def options
16 18
   def install
17 19
     readline = Formula.factory('readline').prefix
18 20
 
19  
-    fails_with_llvm "fails with LLVM"
20 21
     args = ['./installer', "--auto", prefix, '--no-tcmalloc']
21 22
     args << '-c' << '--enable-shared' if ARGV.include? '--enable-shared'
22 23
     # Configure will complain that this is an unknown option, but it is actually OK
10  Library/Formula/ruby.rb
@@ -9,6 +9,11 @@ class Ruby < Formula
9 9
   depends_on 'readline'
10 10
   depends_on 'libyaml'
11 11
 
  12
+  fails_with_llvm
  13
+
  14
+  # Stripping breaks dynamic linking
  15
+  skip_clean :all
  16
+
12 17
   def options
13 18
     [
14 19
       ["--with-suffix", "Add a 19 suffix to commands"],
@@ -17,12 +22,7 @@ def options
17 22
     ]
18 23
   end
19 24
 
20  
-  # Stripping breaks dynamic linking
21  
-  skip_clean :all
22  
-
23 25
   def install
24  
-    fails_with_llvm
25  
-
26 26
     ruby_lib = HOMEBREW_PREFIX+"lib/ruby"
27 27
 
28 28
     if File.exist? ruby_lib and File.symlink? ruby_lib
3  Library/Formula/sbcl.rb
@@ -12,6 +12,8 @@ class Sbcl < Formula
12 12
   md5 '83f094aa36edce2d69214330890f05e5'
13 13
   head 'git://sbcl.boinkor.net/sbcl.git'
14 14
 
  15
+  fails_with_llvm "Compilation fails with LLVM."
  16
+
15 17
   skip_clean 'bin'
16 18
   skip_clean 'lib'
17 19
 
@@ -39,7 +41,6 @@ def write_features
39 41
   end
40 42
 
41 43
   def install
42  
-    fails_with_llvm "Compilation fails with LLVM."
43 44
     write_features
44 45
 
45 46
     build_directory = Dir.pwd
4  Library/Formula/silk.rb
@@ -10,9 +10,9 @@ class Silk < Formula
10 10
   depends_on 'libfixbuf'
11 11
   depends_on 'yaf'
12 12
 
13  
-  def install
14  
-    fails_with_llvm "Undefined symbols during compile"
  13
+  fails_with_llvm "Undefined symbols during compile"
15 14
 
  15
+  def install
16 16
     system "./configure", "--disable-dependency-tracking",
17 17
                           "--prefix=#{prefix}",
18 18
                           "--mandir=#{man}",
12  Library/Formula/sphinx.rb
@@ -6,15 +6,15 @@ class Sphinx < Formula
6 6
   md5 '7b9b618cb9b378f949bb1b91ddcc4f54'
7 7
   head 'http://sphinxsearch.googlecode.com/svn/trunk/'
8 8
 
9  
-  def install
10  
-    fails_with_llvm "fails with: ld: rel32 out of range in _GetPrivateProfileString from /usr/lib/libodbc.a(SQLGetPrivateProfileString.o)"
  9
+  fails_with_llvm "fails with: ld: rel32 out of range in _GetPrivateProfileString from /usr/lib/libodbc.a(SQLGetPrivateProfileString.o)"
11 10
 
12  
-    config_args = ["--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"]
  11
+  def install
  12
+    args = ["--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"]
13 13
     # configure script won't auto-select PostgreSQL
14  
-    config_args << "--with-pgsql" if `/usr/bin/which pg_config`.size > 0
15  
-    config_args << "--without-mysql" if `/usr/bin/which mysql`.size <= 0
  14
+    args << "--with-pgsql" if `/usr/bin/which pg_config`.size > 0
  15
+    args << "--without-mysql" if `/usr/bin/which mysql`.size <= 0
16 16
 
17  
-    system "./configure", *config_args
  17
+    system "./configure", *args
18 18
     system "make install"
19 19
   end
20 20
 
3  Library/Formula/spin.rb
@@ -6,12 +6,13 @@ class Spin < Formula
6 6
   md5 '03345f9713e7b4f82d2d8ec319802b9c'
7 7
   version '5.2.5'
8 8
 
  9
+  fails_with_llvm
  10
+
9 11
   def patches
10 12
     DATA
11 13
   end
12 14
 
13 15
   def install
14  
-    fails_with_llvm
15 16
     ENV.deparallelize
16 17
 
17 18
     # Compile and install the binary.
3  Library/Formula/streamripper.rb
@@ -7,8 +7,9 @@ class Streamripper < Formula
7 7
 
8 8
   depends_on 'glib'
9 9
 
  10
+  fails_with_llvm "strange runtime errors with llvm"
  11
+
10 12
   def install
11  
-    fails_with_llvm "strange runtime errors with llvm"
12 13
     File.chmod 0755, "./install-sh" # without this 'make install' doesn't seem to work (permission denied)
13 14
     system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
14 15
     system "make install"
6  Library/Formula/swi-prolog.rb
@@ -6,7 +6,7 @@ class SwiProlog < Formula
6 6
   homepage 'http://www.swi-prolog.org/'
7 7
   md5 '7973bcfd3854ae0cb647cc62f2faabcf'
8 8
 
9  
-  depends_on 'pkg-config'
  9
+  depends_on 'pkg-config' => :build
10 10
   depends_on 'readline'
11 11
   depends_on 'gmp'
12 12
   depends_on 'jpeg'
@@ -17,14 +17,14 @@ class SwiProlog < Formula
17 17
   depends_on 'fontconfig' if MACOS_VERSION < 10.6
18 18
   depends_on 'expat' if MACOS_VERSION < 10.6
19 19
 
  20
+  fails_with_llvm "Exported procedure chr_translate:chr_translate_line_info/3 is not defined"
  21
+
20 22
   def options
21 23
     [['--lite', "Don't install any packages; overrides --with-jpl"],
22 24
      ['--without-jpl', "Include JPL, the Java-Prolog Bridge"]]
23 25
   end
24 26
 
25 27
   def install
26  
-    fails_with_llvm "Exported procedure chr_translate:chr_translate_line_info/3 is not defined"
27  
-
28 28
     args = ["--prefix=#{prefix}", "--mandir=#{man}"]
29 29
     ENV.append 'DISABLE_PKGS', "jpl" if ARGV.include? "--without-jpl"
30 30
 
3  Library/Formula/syck.rb
@@ -5,8 +5,9 @@ class Syck < Formula
5 5
   homepage 'https://wiki.github.com/indeyets/syck/'
6 6
   md5 '198f925b4ed7fe04a182c35014498634'
7 7
 
  8
+  fails_with_llvm
  9
+
8 10
   def install
9  
-    fails_with_llvm
10 11
     system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
11 12
     system "make install"
12 13
   end
4  Library/Formula/tesseract.rb
@@ -13,9 +13,9 @@ class Tesseract < Formula
13 13
 
14 14
   depends_on 'libtiff'
15 15
 
16  
-  def install
17  
-    fails_with_llvm "Executable 'tesseract' segfaults on 10.6 when compiled with llvm-gcc", :build => "2206"
  16
+  fails_with_llvm "Executable 'tesseract' segfaults on 10.6 when compiled with llvm-gcc", :build => "2206"
18 17
 
  18
+  def install
19 19
     # 'make install' expects the language data files in the build directory
20 20
     d = Dir.getwd
21 21
     TesseractEnglishData.new.brew { cp Dir["*"], "#{d}/tessdata/" }
3  Library/Formula/ufraw.rb
@@ -13,8 +13,9 @@ class Ufraw < Formula
13 13
   depends_on 'dcraw'
14 14
   depends_on 'exiv2' => :optional
15 15
 
  16
+  fails_with_llvm "Compiling with LLVM gives a segfault while linking."
  17
+
16 18
   def install
17  
-    fails_with_llvm "Compiling with LLVM gives a segfault while linking."
18 19
     system "./configure", "--disable-dependency-tracking",
19 20
                           "--prefix=#{prefix}",
20 21
                           "--without-gtk",
3  Library/Formula/unittest.rb
@@ -5,8 +5,9 @@ class Unittest < Formula
5 5
   homepage 'http://unittest.red-bean.com/'
6 6
   md5 'e77615162141b23a78adcda929d58d61'
7 7
 
  8
+  fails_with_llvm
  9
+
8 10
   def install
9  
-    fails_with_llvm
10 11
     system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
11 12
     system "make install"
12 13
   end
8  Library/Formula/valgrind.rb
@@ -8,17 +8,15 @@ class Valgrind < Formula
8 8
 
9 9
   depends_on 'pkg-config' => :build
10 10
 
  11
+  fails_with_llvm "Makes applications segfault on startup", :build => 2326
  12
+
11 13
   skip_clean 'lib'
12 14
 
13 15
   def install
14  
-    fails_with_llvm "Makes applications segfault on startup", :build => 2326
15  
-
16 16
     system "./autogen.sh" if File.exists? "autogen.sh"
17 17
 
18 18
     args = ["--prefix=#{prefix}", "--mandir=#{man}"]
19  
-    if MacOS.prefer_64_bit?
20  
-      args << "--enable-only64bit" << "--build=amd64-darwin"
21  
-    end
  19
+    args << "--enable-only64bit" << "--build=amd64-darwin" if MacOS.prefer_64_bit?
22 20
 
23 21
     system "./configure", *args
24 22
     system "make install"
3  Library/Formula/visualboyadvance.rb
@@ -8,10 +8,11 @@ class Visualboyadvance < Formula
8 8
   depends_on 'pkg-config' => :build
9 9
   depends_on 'sdl'
10 10
 
  11
+  fails_with_llvm "Video scalers don't link with LLVM."
  12
+
11 13
   def patches; DATA; end
12 14
 
13 15
   def install
14  
-    fails_with_llvm "Video scalers don't link with LLVM."
15 16
     ENV.x11 # for libpng
16 17
 
17 18
     system "./configure", "--disable-dependency-tracking", "--disable-debug",
3  Library/Formula/vpnc.rb
@@ -8,6 +8,8 @@ class Vpnc < Formula
8 8
   depends_on 'libgcrypt'
9 9
   depends_on 'libgpg-error'
10 10
 
  11
+  fails_with_llvm
  12
+
11 13
   skip_clean 'etc'