aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2014-04-12 10:22:00 -0700
committerAdam Vandenberg2014-04-12 17:48:56 -0700
commit7fda10dfe85fcbbbb0f19048e3f258adfda4ef2e (patch)
treeb441f83b1fc7463ebd2ef0a0e7ef883ac7729e93 /Library
parent1039e37626bd81d71c9b846e137db8efae79a402 (diff)
downloadhomebrew-7fda10dfe85fcbbbb0f19048e3f258adfda4ef2e.tar.bz2
szl: 10.9 fixes
Closes #27280.
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/szl.rb54
1 files changed, 46 insertions, 8 deletions
diff --git a/Library/Formula/szl.rb b/Library/Formula/szl.rb
index 39e07e8e1..6e1637de3 100644
--- a/Library/Formula/szl.rb
+++ b/Library/Formula/szl.rb
@@ -7,16 +7,15 @@ class Szl < Formula
depends_on 'binutils' # For objdump
depends_on 'icu4c'
- depends_on 'protobuf' # for protoc
+ depends_on 'protobuf'
depends_on 'pcre'
- fails_with :clang do
- build 318
- cause <<-EOS.undent
- engine/symboltable.cc:47:7: error: qualified reference to 'Proc' is a constructor name rather than a type wherever a constructor can be declared
- Proc::Proc* SymbolTable::init_proc_ = NULL;
- EOS
- end
+ # 10.9 and clang fixes
+ # Include reported upstream in:
+ # https://code.google.com/p/szl/issues/detail?id=28
+ # Clang issue reported upstream in:
+ # https://code.google.com/p/szl/issues/detail?id=34
+ patch :DATA
def install
ENV['OBJDUMP'] = "#{HOMEBREW_PREFIX}/bin/gobjdump"
@@ -25,3 +24,42 @@ class Szl < Formula
system "make install"
end
end
+
+__END__
+diff --git a/src/utilities/random_base.cc b/src/utilities/random_base.cc
+index 1d64521..e488321 100644
+--- a/src/utilities/random_base.cc
++++ b/src/utilities/random_base.cc
+@@ -18,6 +18,7 @@
+ #include <string>
+ #include <memory.h>
+ #include <assert.h>
++#include <unistd.h>
+
+ #include "public/porting.h"
+ #include "public/logging.h"
+diff --git a/src/engine/code.cc b/src/engine/code.cc
+index d149f9a..75ab84b 100644
+--- a/src/engine/code.cc
++++ b/src/engine/code.cc
+@@ -18,6 +18,7 @@
+ #include <string>
+ #include <errno.h>
+ #include <sys/mman.h>
++#include <unistd.h>
+
+ #include "engine/globals.h"
+ #include "public/logging.h"
+diff --git a/src/engine/symboltable.cc b/src/engine/symboltable.cc
+index 6d84592..71965f3 100644
+--- a/src/engine/symboltable.cc
++++ b/src/engine/symboltable.cc
+@@ -44,7 +44,7 @@ namespace sawzall {
+ // ------------------------------------------------------------------------------
+ // Implementation of SymbolTable
+
+-Proc::Proc* SymbolTable::init_proc_ = NULL;
++Proc* SymbolTable::init_proc_ = NULL;
+
+ List<TableType*>* SymbolTable::table_types_ = NULL;
+ TableType* SymbolTable::collection_type_ = NULL;