From 1413b793cd536f12ce387c65e17c54d86f77855b Mon Sep 17 00:00:00 2001 From: ilovezfs Date: Thu, 10 Mar 2016 09:33:28 -0800 Subject: [PATCH] libodbc++: boneyard Upstream has ignored the 64-bit patches from the original Homebrew pull request, as well as subsequent 64-bit reports: https://sourceforge.net/p/libodbcxx/bugs/25/ Trunk hasn't been updated since 2010 and the last tag was in 2009. Closes Homebrew/homebrew#49980. Signed-off-by: Dominyk Tiller --- Formula/libodbc++.rb | 52 -------------------------------------------- tap_migrations.json | 1 + 2 files changed, 1 insertion(+), 52 deletions(-) delete mode 100644 Formula/libodbc++.rb diff --git a/Formula/libodbc++.rb b/Formula/libodbc++.rb deleted file mode 100644 index 7be7f0dc42..0000000000 --- a/Formula/libodbc++.rb +++ /dev/null @@ -1,52 +0,0 @@ -class Libodbcxx < Formula - desc "C++ development environment for SQL database access" - homepage "http://libodbcxx.sourceforge.net" - url "https://downloads.sourceforge.net/project/libodbcxx/libodbc++/0.2.5/libodbc++-0.2.5.tar.gz" - sha256 "0731a475b4693514e6a99121441a40305df3fe1dce3756df20c7b6758aa53b57" - - bottle do - cellar :any - sha256 "72f4f3330afd79df2346134fa5f28183d5fe3134c65d90395e20cada497d4ca7" => :mountain_lion - end - - # Two patches are included: - # The first: Fixes a compilation error on 64bit machines: - # http://sourceforge.net/tracker/?func=detail&aid=3590196&group_id=19075&atid=319075 - # The second: Fixes a memory corruption error on 64bit systems: - # https://sourceforge.net/tracker/?func=detail&aid=3601361&group_id=19075&atid=319075 - patch :DATA - - def install - system "./configure", "--disable-debug", "--disable-dependency-tracking", - "--prefix=#{prefix}" - system "make", "install" - end -end - -__END__ -diff --git a/src/dtconv.h b/src/dtconv.h -index b281ec5..18a04da 100644 ---- a/src/dtconv.h -+++ b/src/dtconv.h -@@ -113,7 +113,7 @@ namespace odbc { - snprintf(buf,LONG_STR_LEN, - # endif - # if defined(PRId64) -- ODBCXX_STRING_PERCENT PRId64 -+ "%" PRId64 - # elif ODBCXX_SIZEOF_LONG==8 - ODBCXX_STRING_CONST("%ld") - # else -diff --git a/src/statement.cpp b/src/statement.cpp -index 809278b..e5f0e5d 100644 ---- a/src/statement.cpp -+++ b/src/statement.cpp -@@ -90,7 +90,7 @@ void Statement::_unregisterResultSet(ResultSet* rs) - //protected - SQLUINTEGER Statement::_getUIntegerOption(SQLINTEGER optnum) - { -- SQLUINTEGER res; -+ SQLULEN res; - SQLRETURN r; - - #if ODBCVER < 0x0300 diff --git a/tap_migrations.json b/tap_migrations.json index 05ee137fea..3eed280e2f 100644 --- a/tap_migrations.json +++ b/tap_migrations.json @@ -126,6 +126,7 @@ "latex-mk": "homebrew/tex", "libdlna": "homebrew/boneyard", "libgtextutils": "homebrew/science", + "libodbc++": "homebrew/boneyard", "libqxt": "homebrew/boneyard", "librets": "homebrew/boneyard", "libspotify": "homebrew/binary",