Skip to content

Commit 0d273de

Browse files
committed
Provisioning: Fix version of libiodbc on MacOs
libiodbc latest version (3.52.13) was automatically installed causing qt-config-gui to fail build, this installs version 3.52.12. Task-number: QTQAINFRA-3188 Change-Id: I5b87ff04c2301a5471cc9abfa0849b6073a1bdd4 Reviewed-by: Tony Sarajärvi <[email protected]>
1 parent be97b9a commit 0d273de

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
class Libiodbc < Formula
2+
desc "Database connectivity layer based on ODBC. (alternative to unixodbc)"
3+
homepage "http://www.iodbc.org/dataspace/iodbc/wiki/iODBC/"
4+
url "https://github.com/openlink/iODBC/archive/v3.52.12.tar.gz"
5+
sha256 "b2cab4f8fbd5388344d7ee0deb1a32310795b1e631c3505a5b515d90186e2516"
6+
7+
depends_on "autoconf" => :build
8+
depends_on "automake" => :build
9+
depends_on "libtool" => :build
10+
11+
conflicts_with "unixodbc", :because => "both install 'odbcinst.h' header"
12+
13+
def install
14+
system "./autogen.sh"
15+
system "./configure", "--prefix=#{prefix}"
16+
system "make", "install"
17+
end
18+
19+
test do
20+
system bin/"iodbc-config", "--version"
21+
end
22+
end
23+

coin/provisioning/common/macos/libiodbc.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ set -ex
4141
source "${BASH_SOURCE%/*}/../unix/SetEnvVar.sh"
4242

4343
brew update
44-
brew install libiodbc
44+
brew install ${BASH_SOURCE%/*}/libiodbc.rb
4545

4646
# CPLUS_INCLUDE_PATH is set so clang and configure can find libiodbc
4747

0 commit comments

Comments
 (0)