nzbget: fails with clang 500

This commit is contained in:
Jack Nagel 2013-11-16 09:59:13 -06:00
parent 9c94bd1287
commit f7b0a47334

View file

@ -5,13 +5,6 @@ class Libpar2 < Formula
url 'http://downloads.sourceforge.net/project/parchive/libpar2/0.2/libpar2-0.2.tar.gz'
sha1 '4b3da928ea6097a8299aadafa703fc6d59bdfb4b'
fails_with :clang do
build 425
cause <<-EOS.undent
./par2fileformat.h:87:25: error: flexible array member 'entries' of non-POD element type 'FILEVERIFICATIONENTRY []'
EOS
end
def patches
# Patch libpar2 - bugfixes and ability to cancel par2 repair
"https://gist.github.com/raw/4576230/e722f2113195ee9b8ee67c1c424aa3f2085b1066/libpar2-0.2-nzbget.patch"
@ -29,10 +22,11 @@ class Nzbget < Formula
depends_on 'libsigc++'
fails_with :clang do
build 425
build 500
cause <<-EOS.undent
Configure errors out when testing the libpar2 headers because
Clang does not support flexible arrays of non-POD types.
./par2fileformat.h:87:25: error: flexible array member 'entries' of non-POD element type 'FILEVERIFICATIONENTRY []'
EOS
end