Skip to content

Commit

Permalink
mariadb-connector-odbc 3.1.11
Browse files Browse the repository at this point in the history
* mariadb-connector-odbc 3.1.11
  This formula was failing to build due to library-detection issues on
  Big Sur.  I worked around it with some cmake variables and reported
  the issue upstream.

  The downloads.mariadb.org web page now does some fancy redirection
  during interactive downlods; I had to dig and find the real URL that
  served me via their mirroring system.
* Update Formula/mariadb-connector-odbc.rb

Closes #67348.

Co-authored-by: chenrui <[email protected]>
Co-authored-by: Mitchell Blank Jr <[email protected]>
Signed-off-by: Sean Molenaar <[email protected]>
Signed-off-by: BrewTestBot <[email protected]>
  • Loading branch information
3 people authored and BrewTestBot committed Dec 22, 2020
1 parent 2fba5bd commit 30e214e
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions Formula/mariadb-connector-odbc.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
class MariadbConnectorOdbc < Formula
desc "Database driver using the industry standard ODBC API"
homepage "https://downloads.mariadb.org/connector-odbc/"
url "https://downloads.mariadb.org/f/connector-odbc-3.1.9/mariadb-connector-odbc-3.1.9-ga-src.tar.gz"
sha256 "5ead3f69ccde539fd7e3de6f4b8f0e6f9f6c32b4b4f082adf0e2ff110971fe1e"
license "LGPL-2.1"
url "https://downloads.mariadb.org/f/connector-odbc-3.1.11/mariadb-connector-odbc-3.1.11-ga-src.tar.gz"
sha256 "d81a35cd9c9d2e1e732b7bd9ee704eb83775ed74bcc38d6cd5d367a3fc525a34"
license "LGPL-2.1-or-later"

livecheck do
url :homepage
regex(/Download (\d+(?:\.\d+)+) Stable Now!/i)
end

bottle do
sha256 "339b4c5fa7121936bd5ed68e5d6c507400e43445bc46b63f6cea6212e047c66f" => :catalina
Expand All @@ -23,6 +28,10 @@ def install
"-DWITH_SSL=OPENSSL",
"-DOPENSSL_ROOT_DIR=#{Formula["[email protected]"].opt_prefix}",
"-DWITH_IODBC=0",
# Workaround 3.1.11 issues finding system's built-in -liconv
# See https://jira.mariadb.org/browse/ODBC-299
"-DICONV_LIBRARIES=#{MacOS.sdk_path}/usr/lib/libiconv.tbd",
"-DICONV_INCLUDE_DIR=/usr/include",
*std_cmake_args

# By default, the installer pkg is built - we don't want that.
Expand Down

0 comments on commit 30e214e

Please sign in to comment.