aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/erlang.rb
diff options
context:
space:
mode:
authorconscell2013-11-14 10:51:31 +0900
committerAdam Vandenberg2013-11-29 19:19:29 -0800
commit167270956f21724688c356e7d5f0acdd32210f84 (patch)
tree8a27e025358b2aea323154c977791b95a6c7ffa7 /Library/Formula/erlang.rb
parentccba32ab5793f95f22f8578e72a8bae5ad501381 (diff)
downloadhomebrew-167270956f21724688c356e7d5f0acdd32210f84.tar.bz2
erlang: fix problem with ODBC on 10.9
Even with installed unixODBC on Mavericks Erlang R16B02 continues to use the library iODBC: 1> odbc:start(). ok 2> odbc:connect("",[]). {error,"[iODBC][Driver Manager]No data source or driver specified, dialog prohibited SQLSTATE IS: IM007 Connection to database failed."} Closes #24283. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/erlang.rb')
-rw-r--r--Library/Formula/erlang.rb20
1 files changed, 20 insertions, 0 deletions
diff --git a/Library/Formula/erlang.rb b/Library/Formula/erlang.rb
index 094d5a78d..2f904fb4c 100644
--- a/Library/Formula/erlang.rb
+++ b/Library/Formula/erlang.rb
@@ -41,6 +41,12 @@ class Erlang < Formula
fails_with :llvm
+ def patches
+ # Fixes problem with ODBC on Mavericks. Reported upstream:
+ # https://github.com/erlang/otp/pull/142
+ DATA if MacOS.version >= :mavericks
+ end
+
def install
ohai "Compilation takes a long time; use `brew install -v erlang` to see progress" unless ARGV.verbose?
@@ -103,3 +109,17 @@ class Erlang < Formula
end
end
end
+__END__
+diff --git a/lib/odbc/configure.in b/lib/odbc/configure.in
+index 83f7a47..fd711fe 100644
+--- a/lib/odbc/configure.in
++++ b/lib/odbc/configure.in
+@@ -130,7 +130,7 @@ AC_SUBST(THR_LIBS)
+ odbc_lib_link_success=no
+ AC_SUBST(TARGET_FLAGS)
+ case $host_os in
+- darwin*)
++ darwin1[[0-2]].*|darwin[[0-9]].*)
+ TARGET_FLAGS="-DUNIX"
+ if test ! -d "$with_odbc" || test "$with_odbc" = "yes"; then
+ ODBC_LIB= -L"/usr/lib"