Use new fails_with DSL syntax

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
Jack Nagel 2012-03-18 15:33:24 -05:00
parent 851b89f370
commit 64afeec6d4
101 changed files with 402 additions and 180 deletions

View file

@ -14,7 +14,10 @@ class Aspell < Formula
homepage 'http://aspell.net/'
md5 'e66a9c9af6a60dc46134fdacf6ce97d7'
fails_with_llvm "Segmentation fault during linking.", :build => 2334
fails_with :llvm do
build 2334
cause "Segmentation fault during linking."
end
def options
[

View file

@ -7,9 +7,13 @@ class BaliPhy < Formula
depends_on 'gsl'
# fails_with_clang
# io.H:25:31: error: use of undeclared identifier 'push_back'
# void operator()(const T& t){push_back(t);}
fails_with :clang do
build 318
cause <<-EOS.undent
io.H:25:31: error: use of undeclared identifier 'push_back'
void operator()(const T& t){push_back(t);}
EOS
end
def install
mkdir 'macbuild' do

View file

@ -6,6 +6,10 @@ class Blast < Formula
version '2.2.25'
md5 '01256b808e3af49a5087945b6a8c8293'
fails_with :clang do
build 318
end
def options
[['--with-dll', "Create dynamic binaries instead of static"]]
end
@ -17,12 +21,6 @@ class Blast < Formula
end
def install
# FIXME This should be replaced with fails_with_clang once available
if ENV.compiler == :clang
opoo "Formula will not build with Clang, using LLVM."
ENV.llvm
end
args = ["--prefix=#{prefix}"]
args << "--with-dll" if ARGV.include? '--with-dll'

View file

@ -14,9 +14,10 @@ class Boost < Formula
depends_on "icu4c" if ARGV.include? "--with-icu"
# Both clang and llvm-gcc provided by XCode 4.1 compile Boost 1.47.0 properly.
# Moreover, Apple LLVM compiler 2.1 is now among primary test compilers.
fails_with_llvm "Dropped arguments to functions when linking with boost", :build => 2335
fails_with :llvm do
build 2335
cause "Dropped arguments to functions when linking with boost"
end
def options
[

View file

@ -5,12 +5,11 @@ class BwmNg < Formula
homepage 'http://www.gropp.org/?id=projects&sub=bwm-ng'
md5 'd3a02484fb7946371bfb4e10927cebfb'
def install
if MacOS.default_compiler == :clang
# auto-retest next clang version, submit patch if fails!
ENV.llvm if MacOS.clang_version.to_f <= 3.1
end
fails_with :clang do
build 318
end
def install
system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
system "make install"
end

View file

@ -11,7 +11,10 @@ class Cairo < Formula
keg_only :provided_by_osx,
"The Cairo provided by Leopard is too old for newer software to link against."
fails_with_llvm "Throws an 'lto could not merge' error during build.", :build => 2336
fails_with :llvm do
build 2336
cause "Throws an 'lto could not merge' error during build."
end
def install
args = %W[

View file

@ -5,7 +5,10 @@ class Cdargs < Formula
url 'http://www.skamphausen.de/downloads/cdargs/cdargs-1.35.tar.gz'
md5 '50be618d67f0b9f2439526193c69c567'
fails_with_llvm "Bus error in ld on SL 10.6.4", :build => 2334
fails_with :llvm do
build 2334
cause "Bus error in ld on SL 10.6.4"
end
# fixes zsh usage using the patch provided at the cdargs homepage
# (See http://www.skamphausen.de/cgi-bin/ska/CDargs)

View file

@ -5,6 +5,11 @@ class Cdparanoia < Formula
homepage 'http://www.xiph.org/paranoia/'
md5 'b304bbe8ab63373924a744eac9ebc652'
fails_with :llvm do
build 2326
cause '"File too small" error while linking'
end
def patches
[
"https://trac.macports.org/export/70964/trunk/dports/audio/cdparanoia/files/osx_interface.patch",
@ -12,8 +17,6 @@ class Cdparanoia < Formula
]
end
fails_with_llvm '"File too small" error while linking', :build => 2326
def install
system "autoconf"
# Libs are installed as keg-only because most software that searches for cdparanoia

View file

@ -11,7 +11,10 @@ class Cdrdao < Formula
depends_on 'mad'
depends_on 'lame'
fails_with_llvm "Segfault while linking", :build => 2326
fails_with :llvm do
build 2326
cause "Segfault while linking"
end
# first patch fixes build problems under 10.6
# see http://sourceforge.net/tracker/index.php?func=detail&aid=2981804&group_id=2171&atid=302171

View file

@ -7,7 +7,10 @@ class Celt < Formula
depends_on 'libogg' => :optional
fails_with_llvm "'make check' fails", :build => 2335
fails_with :llvm do
build 2335
cause "'make check' fails"
end
def install
system "./configure", "--disable-dependency-tracking",

View file

@ -6,7 +6,9 @@ class Chicken < Formula
homepage 'http://www.call-cc.org/'
head 'git://code.call-cc.org/chicken-core'
fails_with_llvm "Compilation hangs. See http://lists.gnu.org/archive/html/chicken-users/2010-12/msg00158.html"
fails_with :llvm do
cause "Compilation hangs; see http://lists.gnu.org/archive/html/chicken-users/2010-12/msg00158.html"
end
def install
ENV.deparallelize

View file

@ -11,7 +11,10 @@ class Clisp < Formula
skip_clean :all # otherwise abort trap
fails_with_llvm "Configure fails on XCode 4/Snow Leopard.", :build => 2334
fails_with :llvm do
build 2334
cause "Configure fails on XCode 4/Snow Leopard."
end
def patches
{ :p0 => "https://trac.macports.org/export/89054/trunk/dports/lang/clisp/files/patch-src_lispbibl_d.diff",

View file

@ -7,8 +7,10 @@ class Ctags < Formula
head 'https://ctags.svn.sourceforge.net/svnroot/ctags/trunk'
# true for both 5.8 and head
fails_with_llvm "Resulting executable generates erroneous tag files", :build => 2335
fails_with :llvm do
build 2335
cause "Resulting executable generates erroneous tag files"
end
def install
if ARGV.build_head?

View file

@ -12,7 +12,9 @@ class Dcmtk < Formula
[['--with-docs', 'Install development libraries/headers and HTML docs']]
end
# fails_with_clang: https://github.com/mxcl/homebrew/issues/10884#issuecomment-4467514
fails_with :clang do
build 318
end
def install
ENV.m64 if MacOS.prefer_64_bit?

View file

@ -5,7 +5,9 @@ class Dirac < Formula
md5 'a57c2c5e58062d437d9ab13dffb28f0f'
homepage 'http://diracvideo.org/'
fails_with_llvm :build => 2334
fails_with :llvm do
build 2334
end
def install
# BSD cp doesn't have '-d'

View file

@ -8,17 +8,15 @@ class Dpkg < Formula
depends_on 'pkg-config' => :build
depends_on 'gnu-tar'
fails_with :clang do
build 318
end
# Fixes the PERL_LIBDIR.
# Uses Homebrew-install gnu-tar instead of bsd tar.
def patches; DATA; end
def install
# FIXME This should be replaced with fails_with_clang once available
if ENV.compiler == :clang
opoo "Formula will not build with Clang, using LLVM."
ENV.llvm
end
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--disable-compiler-warnings",

View file

@ -13,13 +13,15 @@ class Elinks < Formula
md5 '92790144290131ac5e63b44548b45e08'
end
fails_with_llvm :build => 2326
if ARGV.build_head? and MacOS.xcode_version >= "4.3"
depends_on "automake" => :build
depends_on "libtool" => :build
end
fails_with :llvm do
build 2326
end
# enables 256 colors, per the manual
def patches
DATA

View file

@ -6,16 +6,19 @@ class Emacs < Formula
mirror 'http://ftp.gnu.org/pub/gnu/emacs/emacs-23.4.tar.bz2'
md5 '070c68ad8e3c31fb3cb2414feaf5e6f0'
fails_with_llvm "Duplicate symbol errors while linking.", :build => 2334
if ARGV.include? "--use-git-head"
head 'git://git.sv.gnu.org/emacs.git'
else
head 'bzr://http://bzr.savannah.gnu.org/r/emacs/trunk'
end
# Stripping on Xcode 4 causes malformed object errors.
# Just skip everything.
skip_clean :all
if ARGV.include? "--use-git-head"
head 'git://git.sv.gnu.org/emacs.git'
else
head 'bzr://http://bzr.savannah.gnu.org/r/emacs/trunk'
fails_with :llvm do
build 2334
cause "Duplicate symbol errors while linking."
end
def options

View file

@ -43,6 +43,16 @@ class Erlang < Formula
# may as well skip bin too, everything is just shell scripts
skip_clean ['lib', 'bin']
if MacOS.xcode_version >= "4.3"
# remove the autoreconf if possible
depends_on "automake" => :build
depends_on "libtool" => :build
end
fails_with :llvm do
build 2334
end
def options
[
['--disable-hipe', "Disable building hipe; fails on various OS X systems."],
@ -52,14 +62,6 @@ class Erlang < Formula
]
end
fails_with_llvm :build => 2334
if MacOS.xcode_version >= "4.3"
# remove the autoreconf if possible
depends_on "automake" => :build
depends_on "libtool" => :build
end
def install
ohai "Compilation takes a long time; use `brew install -v erlang` to see progress" unless ARGV.verbose?

View file

@ -11,15 +11,6 @@ class Ffmpeg < Formula
head 'git://git.videolan.org/ffmpeg.git'
fails_with_llvm 'Undefined symbols when linking libavfilter'
def options
[
["--with-tools", "Install additional FFmpeg tools."],
["--with-ffplay", "Build ffplay."]
]
end
depends_on 'yasm' => :build
depends_on 'x264' => :optional
depends_on 'faac' => :optional
@ -35,6 +26,17 @@ class Ffmpeg < Formula
depends_on 'sdl' if ffplay?
fails_with :llvm do
cause 'Undefined symbols when linking libavfilter'
end
def options
[
["--with-tools", "Install additional FFmpeg tools."],
["--with-ffplay", "Build ffplay."]
]
end
def install
ENV.x11
args = ["--prefix=#{prefix}",

View file

@ -13,7 +13,10 @@ class Flac < Formula
depends_on 'lame'
depends_on 'libogg' => :optional
fails_with_llvm "Undefined symbols when linking", :build => 2326
fails_with :llvm do
build 2326
cause "Undefined symbols when linking"
end
def install
# sadly the asm optimisations won't compile since Leopard, and nobody

View file

@ -15,7 +15,10 @@ class Fontforge < Formula
[['--without-python', 'Build without Python.']]
end
fails_with_llvm "Compiling cvexportdlg.c fails with error: initializer element is not constant", :build => 2336
fails_with :llvm do
build 2336
cause "Compiling cvexportdlg.c fails with error: initializer element is not constant"
end
def install
args = ["--prefix=#{prefix}", "--enable-double", "--without-freetype-bytecode"]

View file

@ -11,7 +11,9 @@ class Fox < Formula
md5 '1cf2607d15ffad5b664cf65bfcd249bc'
end
fails_with_llvm "Inline asm errors during build" if ARGV.build_devel?
fails_with :llvm do
cause "Inline asm errors during build"
end if ARGV.build_devel?
def install
ENV.x11

View file

@ -14,7 +14,10 @@ class GambitScheme < Formula
skip_clean :all
fails_with_llvm "ld crashes during the build process or segfault at runtime", :build => 2335
fails_with :llvm do
build 2335
cause "ld crashes during the build process or segfault at runtime"
end
def install
args = ["--disable-debug",

View file

@ -8,7 +8,10 @@ class Gawk < Formula
depends_on 'xz' => :build
fails_with_llvm "Undefined symbols when linking", :build => "2326"
fails_with :llvm do
build 2326
cause "Undefined symbols when linking"
end
def install
system "./configure", "--prefix=#{prefix}"

View file

@ -10,7 +10,10 @@ class Gd < Formula
depends_on 'jpeg' => :recommended
fails_with_llvm "Undefined symbols when linking", :build => "2326"
fails_with :llvm do
build 2326
cause "Undefined symbols when linking"
end
def install
ENV.x11

View file

@ -26,6 +26,14 @@ class Ghc < Formula
# See: http://hackage.haskell.org/trac/ghc/ticket/2458
skip_clean ['bin', 'lib']
fails_with :clang do
build 318
cause <<-EOS.undent
Building with Clang configures GHC to use Clang as its preprocessor,
which causes subsequent GHC-based builds to fail.
EOS
end
def options
[['--64bit', 'Install 64-bit version of GHC (experimental).']]
end

View file

@ -11,7 +11,10 @@ class Glib < Formula
depends_on 'gettext'
depends_on 'libffi'
fails_with_llvm "Undefined symbol errors while linking", :build => 2334
fails_with :llvm do
build 2334
cause "Undefined symbol errors while linking"
end
def patches
{ :p0 => %W[

View file

@ -15,7 +15,10 @@ class GnomeDocUtils < Formula
# PYTHONPATH.
depends_on 'libxml2'
fails_with_llvm "Undefined symbols when linking", :build => "2326"
fails_with :llvm do
build 2326
cause "Undefined symbols when linking"
end
def install
# TODO this should possibly be moved up into build.rb

View file

@ -27,7 +27,10 @@ class GnuSmalltalk < Formula
depends_on "libtool" => :build
end
fails_with_llvm "Codegen problems with LLVM", :build => 2334
fails_with :llvm do
build 2334
cause "Codegen problems with LLVM"
end
def patches
# Builds GNU Smalltalk clean in 64-bit mode with SDL and Cairo support

View file

@ -10,7 +10,10 @@ class Gnutls < Formula
depends_on 'libgcrypt'
depends_on 'libtasn1' => :optional
fails_with_llvm "Undefined symbols when linking", :build => "2326"
fails_with :llvm do
build 2326
cause "Undefined symbols when linking"
end
def install
ENV.universal_binary # build fat so wine can use it

View file

@ -5,7 +5,10 @@ class GooglePerftools < Formula
homepage 'http://code.google.com/p/google-perftools/'
sha1 '9490214967913bd579201a60a25320e316d731a5'
fails_with_llvm "Segfault during linking", :build => 2326
fails_with :llvm do
build 2326
cause "Segfault during linking"
end
def install
ENV.append_to_cflags '-D_XOPEN_SOURCE'

View file

@ -10,7 +10,9 @@ class Gpgme < Formula
depends_on 'libassuan'
depends_on 'pth'
fails_with_llvm :build => 2334
fails_with :llvm do
build 2334
end
def install
system "./configure", "--disable-dependency-tracking",

View file

@ -36,7 +36,7 @@ class Graphicsmagick < Formula
depends_on 'ghostscript' => :recommended if ghostscript_srsly?
depends_on 'xz' => :optional
fails_with_llvm
fails_with :llvm
def skip_clean? path
path.extname == '.la'

View file

@ -13,7 +13,9 @@ class Graphviz < Formula
depends_on 'pango' if ARGV.include? '--with-pangocairo'
depends_on 'swig' if build_bindings?
# fails_with_clang
fails_with :clang do
build 318
end
def options
[["--with-pangocairo", "Build with Pango/Cairo for alternate PDF output"],
@ -35,10 +37,6 @@ class Graphviz < Formula
args << "--disable-swig" unless build_bindings?
args << "--without-pangocairo" unless ARGV.include? '--with-pangocairo'
# Compilation currently fails with the newer versions of clang
# shipped with Xcode 4.3+
ENV.llvm if MacOS.clang_version.to_f <= 3.1
system "./configure", *args
system "make install"

View file

@ -15,7 +15,10 @@ class Gtkx < Formula
depends_on 'jasper' => :optional
depends_on 'atk' => :optional
fails_with_llvm "Undefined symbols when linking", :build => 2326
fails_with :llvm do
build 2326
cause "Undefined symbols when linking"
end
def install
system "./configure", "--disable-debug",

View file

@ -21,7 +21,10 @@ class Guile < Formula
# GNU Readline is required; libedit won't work.
depends_on 'readline'
fails_with_llvm "Segfaults during compilation.", :build => 2336
fails_with :llvm do
build 2336
cause "Segfaults during compilation"
end
def install
system "./configure", "--disable-dependency-tracking",

View file

@ -13,7 +13,10 @@ class Id3lib < Formula
p << "https://trac.macports.org/export/90780/trunk/dports/audio/id3lib/files/id3lib-main.patch"
end
fails_with_llvm "Segfault during linking", :build => 2326
fails_with :llvm do
build 2326
cause "Segfault during linking"
end
def install
system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"

View file

@ -7,6 +7,11 @@ class Jasper < Formula
depends_on 'jpeg'
fails_with :llvm do
build 2326
cause "Undefined symbols when linking"
end
def options
[["--universal", "Build a universal binary."]]
end
@ -17,8 +22,6 @@ class Jasper < Formula
# http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=469786
def patches; DATA; end
fails_with_llvm "Undefined symbols when linking", :build => "2326"
def install
ENV.universal_binary if ARGV.build_universal?
system "./configure", "--disable-debug",

View file

@ -5,9 +5,11 @@ class John < Formula
url 'http://www.openwall.com/john/g/john-1.7.9.tar.bz2'
md5 '45f54fc59386ecd67daaef9f19781d93'
def patches; DATA; end
fails_with :llvm do
build 2334
end
fails_with_llvm :build => 2334
def patches; DATA; end
def install
ENV.deparallelize

View file

@ -5,6 +5,14 @@ class KyotoCabinet < Formula
url 'http://fallabs.com/kyotocabinet/pkg/kyotocabinet-1.2.74.tar.gz'
sha1 '345358259ec4e58b5986b5d6fa8f82dfe2816c37'
fails_with :clang do
build 318
cause <<-EOS.undent
Kyoto-cabinet relies on GCC atomic intrinsics, but Clang does not
implement them for non-integer types.
EOS
end
def install
system "./configure", "--disable-debug", "--prefix=#{prefix}"
system "make" # Separate steps required

View file

@ -9,7 +9,9 @@ class Libcaca < Formula
depends_on 'pkg-config' => :build
depends_on 'gettext'
fails_with_llvm "unsupported inline asm: input constraint with a matching output constraint of incompatible type!"
fails_with :llvm do
cause "Unsupported inline asm: input constraint with a matching output constraint of incompatible type"
end
# Make libcaca build with clang; see http://caca.zoy.org/ticket/90
def patches; DATA; end

View file

@ -7,7 +7,10 @@ class Libevent < Formula
head 'git://levent.git.sourceforge.net/gitroot/levent/levent'
fails_with_llvm "Undefined symbol '_current_base' reported during linking.", :build => 2326
fails_with :llvm do
build 2326
cause "Undefined symbol '_current_base' reported during linking."
end
if ARGV.build_head? and MacOS.xcode_version >= "4.3"
depends_on "automake" => :build

View file

@ -5,7 +5,10 @@ class Libexif < Formula
homepage 'http://libexif.sourceforge.net/'
md5 '19844ce6b5d075af16f0d45de1e8a6a3'
fails_with_llvm "segfault with llvm", :build => 2334
fails_with :llvm do
build 2334
cause "segfault with llvm"
end
def install
system "./configure", "--prefix=#{prefix}", "--disable-dependency-tracking"

View file

@ -7,12 +7,13 @@ class Libkate < Formula
depends_on 'libogg' => :recommended
fails_with :gcc do
build 5666
cause "Segfault during compilation"
end
def install
ENV.libpng
# GCC 4.2 segfaults during compilation
# FIXME when we can do fails_with :gcc
ENV.llvm if ENV.compiler == :gcc
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--prefix=#{prefix}"

View file

@ -1,12 +1,15 @@
require 'formula'
class Libsigsegv < Formula
homepage 'http://www.gnu.org/software/libsigsegv/'
url 'http://ftpmirror.gnu.org/libsigsegv/libsigsegv-2.10.tar.gz'
mirror 'http://ftp.gnu.org/gnu/libsigsegv/libsigsegv-2.10.tar.gz'
homepage 'http://www.gnu.org/software/libsigsegv/'
sha256 '8460a4a3dd4954c3d96d7a4f5dd5bc4d9b76f5754196aa245287553b26d2199a'
fails_with_llvm "Fails make check with LLVM GCC from XCode 4 on Snow Leopard", :build => 2336
fails_with :llvm do
build 2336
cause "Fails make check with LLVM GCC from XCode 4 on Snow Leopard"
end
def install
system "./configure", "--disable-dependency-tracking",

View file

@ -14,6 +14,11 @@ class Libvirt < Formula
depends_on "libxml2"
end
fails_with :llvm do
build 2326
cause "Undefined symbols when linking"
end
# Includes a patch by Lincoln Myers <lincoln_myers@yahoo.com>,
# fixing a recently introduced compilation bug on OSX.
# Patch is already included upstream, and will be in libvirt 0.9.11.
@ -21,8 +26,6 @@ class Libvirt < Formula
DATA
end
fails_with_llvm "Undefined symbols when linking", :build => "2326"
def options
[['--without-libvirtd', 'Build only the virsh client and development libraries.']]
end

View file

@ -7,7 +7,10 @@ class Libxml2 < Formula
keg_only :provided_by_osx
fails_with_llvm "Undefined symbols when linking", :build => "2326"
fails_with :llvm do
build 2326
cause "Undefined symbols when linking"
end
def options
[

View file

@ -5,8 +5,10 @@ class Log4cxx < Formula
homepage 'http://logging.apache.org/log4cxx/index.html'
md5 'b30ffb8da3665178e68940ff7a61084c'
fails_with_llvm "Fails with \"collect2: ld terminated with signal 11 [Segmentation fault]\".",
:build => 2334
fails_with :llvm do
build 2334
cause "Fails with 'collect2: ld terminated with signal 11 [Segmentation fault]'"
end
def options
[

View file

@ -5,8 +5,10 @@ class Lua < Formula
url 'http://www.lua.org/ftp/lua-5.1.4.tar.gz'
md5 'd0870f2de55d59c1c8419f36e8fac150'
fails_with_llvm "Lua itself compiles with LLVM, but may fail when other software tries to link.",
:build => 2326
fails_with :llvm do
build 2326
cause "Lua itself compiles with LLVM, but may fail when other software tries to link."
end
# Skip cleaning both empty folders and bin/libs so external symbols still work.
skip_clean :all

View file

@ -9,7 +9,9 @@ class Luarocks < Formula
depends_on use_luajit? ? 'luajit' : 'lua'
fails_with_llvm "Lua itself compiles with llvm, but may fail when other software tries to link."
fails_with :llvm do
cause "Lua itself compiles with llvm, but may fail when other software tries to link."
end
def patches
p = []

View file

@ -7,8 +7,6 @@ class Minc < Formula
head 'https://github.com/BIC-MNI/minc.git'
#fails_with_clang "Throws 'non-void function 'miget_real_value_hyperslab' should return a value' error during build.", :build => 318
depends_on 'netcdf'
if MacOS.xcode_version >= "4.3"
@ -16,6 +14,12 @@ class Minc < Formula
depends_on "libtool" => :build
end
fails_with :clang do
# TODO This is an easy fix, someone send it upstream!
build 318
cause "Throws 'non-void function 'miget_real_value_hyperslab' should return a value'"
end
def install
system "autoreconf", "--force", "--instal"
system "./configure", "--disable-dependency-tracking",

View file

@ -12,13 +12,11 @@ class Mkvtoolnix < Formula
depends_on 'flac' => :optional
depends_on 'lzo' => :optional
fails_with :clang do
build 318
end
def install
# FIXME This should be replaced with fails_with_clang once available
# build 318
if ENV.compiler == :clang
opoo "Formula will not build with Clang, using LLVM."
ENV.llvm
end
system "./configure", "--disable-debug",
"--prefix=#{prefix}",
"--with-boost-libdir=#{HOMEBREW_PREFIX}/lib", # For non-/usr/local prefix

View file

@ -17,7 +17,10 @@ class Monotone < Formula
depends_on 'lua'
depends_on 'pcre'
fails_with_llvm "linker fails", :build => 2334
fails_with :llvm do
build 2334
cause "linker fails"
end
def install
botan18_prefix = libexec+'botan18'

View file

@ -8,7 +8,9 @@ class Mosh < Formula
depends_on 'gmp'
depends_on 'oniguruma'
fails_with_llvm "Inline asm errors"
fails_with :llvm do
cause "Inline asm errors"
end
def install
system "./configure", "--disable-debug", "--disable-dependency-tracking",

View file

@ -10,7 +10,9 @@ class Mplayer < Formula
depends_on 'pkg-config' => :build
depends_on 'yasm' => :build
fails_with_llvm "Missing symbols error while linking"
fails_with :llvm do
cause "Missing symbols error while linking"
end
def patches
# When building from SVN HEAD, configure prompts the user to pull FFmpeg

View file

@ -6,7 +6,9 @@ class Msgpack < Formula
sha256 '7c203265cf14a4723820e0fc7ac14bf4bad5578f7bc525e9835c70cd36e7d1b8'
# fails with the latest LLVM, but only on Lion?
fails_with_llvm "Compilation fails" if MacOS.lion?
fails_with :llvm do
cause "compilation fails"
end if MacOS.lion?
def install
system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"

View file

@ -7,7 +7,10 @@ class MysqlConnectorC < Formula
depends_on 'cmake' => :build
fails_with_llvm "Error: unsupported inline asm.", :build => 2334
fails_with :llvm do
build 2334
cause "Unsupported inline asm"
end
def install
system "cmake #{std_cmake_parameters} ."

View file

@ -9,7 +9,10 @@ class Mysql < Formula
depends_on 'readline'
depends_on 'pidof'
fails_with_llvm "https://github.com/mxcl/homebrew/issues/issue/144", :build => 2326
fails_with :llvm do
build 2326
cause "https://github.com/mxcl/homebrew/issues/issue/144"
end
skip_clean :all # So "INSTALL PLUGIN" can work.

View file

@ -5,7 +5,9 @@ class Nload < Formula
homepage 'http://www.roland-riegel.de/nload/'
md5 '9b97c37fe1474f1da42f265fead24081'
fails_with_llvm :build => 2334
fails_with :llvm do
build 2334
end
# Patching configure.in file to make configure compile on Mac OS.
# Patch taken from MacPorts.

View file

@ -9,7 +9,9 @@ class Nmap < Formula
# Leopard's version of OpenSSL isn't new enough
depends_on "openssl" if MacOS.leopard?
fails_with_llvm :build => 2334
fails_with :llvm do
build 2334
end
# The configure script has a C file to test for some functionality that uses
# void main(void). This does not compile with clang but does compile with

View file

@ -15,7 +15,9 @@ class Node < Formula
# Leopard OpenSSL is not new enough, so use our keg-only one
depends_on 'openssl' if MacOS.leopard?
fails_with_llvm :build => 2326
fails_with :llvm do
build 2326
end
# Stripping breaks dynamic loading
skip_clean :all

View file

@ -24,7 +24,10 @@ class Pango < Formula
depends_on 'cairo'
end
fails_with_llvm "Undefined symbols when linking", :build => "2326"
fails_with :llvm do
build 2326
cause "Undefined symbols when linking"
end
def patches
p = {}

View file

@ -7,6 +7,10 @@ class Par2tbb < Formula
depends_on 'tbb'
fails_with :clang do
build 318
end
def install
# par2tbb ships with bad timestamps and
# doesn't respect --disable-maintainer-mode
@ -17,12 +21,6 @@ class Par2tbb < Formula
# but only 10.6+ are available on Xcode4
inreplace 'Makefile.am', /^.*-mmacosx-version.*$/, ''
# FIXME This should be replaced with fails_with_clang once available
if ENV.compiler == :clang
opoo "Formula will not build with Clang, using LLVM."
ENV.llvm
end
if Formula.factory('par2').installed?
opoo "par2tbb conflicts with par2. Your par2 binaries will be overwritten.
If this bothers you, you can restore par2 with `brew link par2`."

View file

@ -5,7 +5,9 @@ class Pbzip2 < Formula
url 'http://compression.ca/pbzip2/pbzip2-1.1.6.tar.gz'
md5 '26cc5a0d882198f106e75101ff0544a3'
fails_with_llvm :build => 2334
fails_with :llvm do
build 2334
end
def install
inreplace "Makefile", "$(PREFIX)/man", "$(PREFIX)/share/man"

View file

@ -6,7 +6,10 @@ class Pcre < Formula
mirror 'http://downloads.sourceforge.net/project/pcre/pcre/8.30/pcre-8.30.tar.bz2'
md5 '98e8928cccc945d04279581e778fbdff'
fails_with_llvm "Bus error in ld on SL 10.6.4", :build => 2326
fails_with :llvm do
build 2326
cause "Bus error in ld on SL 10.6.4"
end
def options
[["--universal", "Build a universal binary."]]

View file

@ -12,10 +12,12 @@ class PerconaServer < Formula
depends_on 'readline'
depends_on 'pidof'
fails_with_llvm "https://github.com/mxcl/homebrew/issues/issue/144"
skip_clean :all # So "INSTALL PLUGIN" can work.
fails_with :llvm do
cause "https://github.com/mxcl/homebrew/issues/issue/144"
end
def options
[
['--with-tests', "Build with unit tests."],

View file

@ -14,7 +14,10 @@ class Pianobar < Formula
skip_clean 'bin'
fails_with_llvm "Reports of this not compiling on Xcode 4", :build => 2334
fails_with :llvm do
build 2334
cause "Reports of this not compiling on Xcode 4"
end
def install
# Discard Homebrew's CFLAGS as Pianobar reportedly doesn't like them

View file

@ -7,6 +7,8 @@ class Pixman < Formula
depends_on 'pkg-config' => :build
fails_with :llvm
def options
[["--universal", "Build a universal binary."]]
end
@ -14,13 +16,6 @@ class Pixman < Formula
def install
ENV.x11
ENV.universal_binary if ARGV.build_universal?
if ENV.compiler == :llvm
if MacOS.xcode_version >= "4.1"
ENV.clang
else
ENV.gcc_4_2
end
end
# Disable gtk as it is only used to build tests
system "./configure", "--disable-dependency-tracking",

View file

@ -7,7 +7,9 @@ class Portaudio < Formula
depends_on 'pkg-config' => :build
fails_with_llvm :build => 2334
fails_with :llvm do
build 2334
end
def options
[["--universal", "Build a universal binary."]]

View file

@ -8,9 +8,10 @@ class Povray < Formula
depends_on 'libtiff' => :optional
depends_on 'jpeg' => :optional
if MACOS_VERSION == 10.5
fails_with_llvm "povray fails with 'terminate called after throwing an instance of int'"
end
# TODO give this a build number (2326?)
fails_with :llvm do
cause "povray fails with 'terminate called after throwing an instance of int'"
end if MacOS.leopard?
def install
system "./configure", "--disable-debug", "--disable-dependency-tracking",

View file

@ -10,7 +10,9 @@ class Proj < Formula
homepage 'http://trac.osgeo.org/proj/'
md5 'd815838c92a29179298c126effbb1537'
fails_with_llvm :build => 2334
fails_with :llvm do
build 2334
end
def skip_clean? path
path.extname == '.la'

View file

@ -5,7 +5,9 @@ class Protobuf < Formula
url 'http://protobuf.googlecode.com/files/protobuf-2.4.1.tar.bz2'
sha1 'df5867e37a4b51fb69f53a8baf5b994938691d6d'
fails_with_llvm :build => 2334
fails_with :llvm do
build 2334
end
def options
[['--universal', 'Do a universal build']]

View file

@ -5,7 +5,9 @@ class Pv < Formula
homepage 'http://www.ivarch.com/programs/pv.shtml'
md5 '67aedf6dbcd068d5feeaa76156153f4f'
fails_with_llvm :build => 2334
fails_with :llvm do
build 2334
end
def install
system "./configure", "--disable-debug", "--disable-dependency-tracking",

View file

@ -8,7 +8,9 @@ class Qemu < Formula
depends_on 'jpeg'
depends_on 'gnutls'
fails_with_llvm "Segmentation faults occur at run-time with LLVM using qemu-system-arm."
fails_with :llvm do
cause "Segmentation faults occur at run-time with LLVM using qemu-system-arm."
end
def install
system "./configure", "--prefix=#{prefix}",

View file

@ -12,6 +12,10 @@ class Qt < Formula
head 'git://gitorious.org/qt/qt.git', :branch => 'master'
fails_with :clang do
build 318
end
def options
[
['--with-qtdbus', "Enable QtDBus module."],
@ -77,10 +81,6 @@ class Qt < Formula
args << "-release"
end
# Compilation currently fails with the newer versions of clang
# shipped with Xcode 4.3+
ENV.llvm if MacOS.clang_version.to_f <= 3.1
# Needed for Qt 4.8.0 due to attempting to link moc with gcc.
ENV['LD'] = ENV['CXX']

View file

@ -7,7 +7,10 @@ class Redis < Formula
head 'https://github.com/antirez/redis.git', :branch => 'unstable'
fails_with_llvm 'Fails with "reference out of range from _linenoise"', :build => 2334
fails_with :llvm do
build 2334
cause 'Fails with "reference out of range from _linenoise"'
end
def install
# Architecture isn't detected correctly on 32bit Snow Leopard without help

View file

@ -10,7 +10,9 @@ class Redland < Formula
depends_on 'rasqal'
depends_on 'berkeley-db' => :optional
fails_with_llvm :build => 2334
fails_with :llvm do
build 2334
end
def install
system "./configure", "--disable-debug", "--disable-dependency-tracking",

View file

@ -9,8 +9,10 @@ class Rtmpdump < Formula
depends_on 'openssl' if MacOS.leopard?
# note: as of LLVM build 2336, this still has runtime issues
fails_with_llvm "Crashes at runtime"
fails_with :llvm do
# note: as of LLVM build 2336, this still has runtime issues
cause "Crashes at runtime"
end
# Use dylib instead of so
def patches; DATA; end unless ARGV.build_head?

View file

@ -10,6 +10,10 @@ class Rtorrent < Formula
depends_on 'libtorrent'
depends_on 'xmlrpc-c' => :optional
fails_with :clang do
build 318
end
def install
args = ["--disable-debug", "--disable-dependency-tracking", "--prefix=#{prefix}"]
args << "--with-xmlrpc-c" if Formula.factory("xmlrpc-c").installed?

View file

@ -7,7 +7,7 @@ class RubyEnterpriseEdition < Formula
depends_on 'readline'
fails_with_llvm "fails with LLVM"
fails_with :llvm
skip_clean 'bin/ruby'

View file

@ -9,7 +9,9 @@ class Ruby < Formula
depends_on 'readline'
depends_on 'libyaml'
fails_with_llvm :build => 2326
fails_with :llvm do
build 2326
end
# Stripping breaks dynamic linking
skip_clean :all

View file

@ -5,6 +5,11 @@ class Rust < Formula
homepage 'http://www.rust-lang.org/'
md5 '47be90f952ec01c3088af58be78fd618'
fails_with :clang do
build 318
cause "cannot initialize a parameter of type 'volatile long long *' with an rvalue of type 'int *'"
end
def install
system "./configure", "--prefix=#{prefix}"
system "make"

View file

@ -7,7 +7,10 @@ class RxvtUnicode < Formula
depends_on 'pkg-config' => :build
fails_with_llvm "memory fences not defined for your architecture", :build => 2336
fails_with :llvm do
build 2336
cause "memory fences not defined for your architecture"
end
def patches
# Patch hunks 1 and 2 allow perl support to compile on Intel.

View file

@ -17,7 +17,10 @@ class Sbcl < Formula
sha1 '3c13225c8fe3eabf54e9d368e6b74318a5546430'
end
fails_with_llvm "Compilation fails with LLVM.", :build => 2334
fails_with :llvm do
build 2334
cause "Compilation fails with LLVM."
end
skip_clean 'bin'
skip_clean 'lib'

View file

@ -10,7 +10,9 @@ class Silk < Formula
depends_on 'libfixbuf'
depends_on 'yaf'
fails_with_llvm "Undefined symbols during compile"
fails_with :llvm do
cause "Undefined symbols during compile"
end
def install
system "./configure", "--disable-dependency-tracking",

View file

@ -6,9 +6,11 @@ class Sl < Formula
mirror 'http://ftp.us.debian.org/debian/pool/main/s/sl/sl_3.03.orig.tar.gz'
md5 'd0d997b964bb3478f7f4968eee13c698'
def install
ENV.llvm if MacOS.clang_version.to_f <= 3.1
fails_with :clang do
build 318
end
def install
system "make", "CC=#{ENV.cc}", "CFLAGS=#{ENV.cflags}"
bin.install "sl"
man1.install "sl.1"

View file

@ -15,8 +15,10 @@ class Sphinx < Formula
head 'http://sphinxsearch.googlecode.com/svn/trunk/'
fails_with_llvm "ld: rel32 out of range in _GetPrivateProfileString from /usr/lib/libodbc.a(SQLGetPrivateProfileString.o)",
:build => 2334
fails_with :llvm do
build 2334
cause "ld: rel32 out of range in _GetPrivateProfileString from /usr/lib/libodbc.a(SQLGetPrivateProfileString.o)"
end
# Patch the configure script to run under clang, preventing the error:
# configure: error: Gcc version error. Minspec is 3.4

View file

@ -6,7 +6,9 @@ class Spin < Formula
version '6.1.0'
md5 '89c0d322c3a5aded1fda9b0d30327d19'
fails_with_llvm :build => 2334
fails_with :llvm do
build 2334
end
# replace -DPC with -DMAC in makefile CFLAGS
def patches

View file

@ -7,7 +7,10 @@ class Streamripper < Formula
depends_on 'glib'
fails_with_llvm "Strange runtime errors with LLVM.", :build => 2335
fails_with :llvm do
build 2335
cause "Strange runtime errors with LLVM."
end
def install
# the Makefile ignores CPPFLAGS from the environment, which

View file

@ -19,8 +19,10 @@ class SwiProlog < Formula
depends_on 'expat'
end
fails_with_llvm "Exported procedure chr_translate:chr_translate_line_info/3 is not defined",
:build => 2335
fails_with :llvm do
build 2335
cause "Exported procedure chr_translate:chr_translate_line_info/3 is not defined"
end
def options
[['--lite', "Don't install any packages; overrides --with-jpl"],

View file

@ -5,7 +5,9 @@ class Syck < Formula
homepage 'https://wiki.github.com/indeyets/syck/'
md5 '198f925b4ed7fe04a182c35014498634'
fails_with_llvm :build => 2334
fails_with :llvm do
build 2334
end
def install
ENV.deparallelize # Not parallel safe.

View file

@ -102,8 +102,10 @@ class Tesseract < Formula
depends_on "libtool" => :build
end
fails_with_llvm "Executable 'tesseract' segfaults on 10.6 when compiled with llvm-gcc",
:build => "2206"
fails_with :llvm do
build 2206
cause "Executable 'tesseract' segfaults on 10.6 when compiled with llvm-gcc"
end
# mftraining has a missing symbols error when cleaned
skip_clean 'bin'

View file

@ -13,7 +13,9 @@ class Ufraw < Formula
depends_on 'dcraw'
depends_on 'exiv2' => :optional
fails_with_llvm "Compiling with LLVM gives a segfault while linking."
fails_with :llvm do
cause "Segfault while linking"
end
def install
system "./configure", "--disable-dependency-tracking",

View file

@ -5,7 +5,9 @@ class Unittest < Formula
homepage 'http://unittest.red-bean.com/'
md5 'e77615162141b23a78adcda929d58d61'
fails_with_llvm :build => 2334
fails_with :llvm do
build 2334
end
def install
system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"

View file

@ -17,7 +17,9 @@ class Vice < Formula
end
end
fails_with_llvm :build => 2335
fails_with :llvm do
build 2335
end
def install
ENV.libpng

View file

@ -8,7 +8,9 @@ class Vpnc < Formula
depends_on 'libgcrypt'
depends_on 'libgpg-error'
fails_with_llvm :build => 2334
fails_with :llvm do
build 2334
end
def options
[["--hybrid", "Use vpnc hybrid authentication."]]

View file

@ -7,7 +7,9 @@ class W3m < Formula
depends_on 'bdw-gc'
fails_with_llvm :build => 2334
fails_with :llvm do
build 2334
end
def patches
# patch to build against bdw-gc 7.2 by @waltarix

View file

@ -21,7 +21,10 @@ class Wine < Formula
depends_on 'jpeg'
depends_on 'libicns'
fails_with_llvm 'llvm-gcc does not respect force_align_arg_pointer', :build => 2336
fails_with :llvm do
build 2336
cause 'llvm-gcc does not respect force_align_arg_pointer'
end
# the following libraries are currently not specified as dependencies, or not built as 32-bit:
# configure: libsane, libv4l, libgphoto2, liblcms, gstreamer-0.10, libcapi20, libgsm, libtiff

View file

@ -9,7 +9,9 @@ class Yaf < Formula
depends_on 'glib'
depends_on 'libfixbuf'
fails_with_llvm "Undefined symbols during compile"
fails_with :llvm do
cause "Undefined symbols during compile"
end
def install
system "./configure", "--disable-debug", "--disable-dependency-tracking",

Some files were not shown because too many files have changed in this diff Show more