Package Details: mariadb-connector-odbc 3.1.1-1

Git Clone URL: https://aur.archlinux.org/mariadb-connector-odbc.git (read-only)
Package Base: mariadb-connector-odbc
Description: A standardized, LGPL licensed ODBC database driver for MariaDB
Upstream URL: https://mariadb.com/kb/en/mariadb/mariadb-connector-odbc/
Licenses: LGPL
Conflicts: mariadb-connector-odbc-bin
Submitter: Erroneous
Maintainer: Erroneous
Last Packager: Erroneous
Votes: 5
Popularity: 0.013901
First Submitted: 2016-07-31 17:08
Last Updated: 2019-07-08 21:41

Latest Comments

Erroneous commented on 2019-01-09 15:41

@Singularity thanks for the suggestions!

I could do a split package but there is already a mariadb-connector-c out there and I'd rather not clobber it. The ODBC connector statically links with the C connector so to make the C connector shared lib would require a recompile anyway. Additionally not all AUR helpers handle split packages very well in my experience.

I'll add the socket stuff but keep the install message which tells you how to use it for any situation that doesn't let you manually specify the whole DSN. It lists the Socket line but also Server and Port commented out so that the end user could easily customize as they see fit, though having a correct default is good.

Updated to 3.0.8

Singularity commented on 2019-01-09 14:32

Hello, I had a look at your package. Because the License in LGPL, you don't have to install a license file. The so-called documentation seems to be quite useless, you could leave it out, too. Looking at the post-intall message, I wonder if it helps to compile with -DMARIADB_UNIX_ADDR=/run/mysqld/mysqld.sock

Could you change the description to fit https://wiki.archlinux.org/index.php/PKGBUILD#pkgdesc

Theoretically one could make mariadb-connector-odbc and mariadb-connector-c one split package.

Erroneous commented on 2018-06-25 13:23

Ok, finally got the 3.0.5 working correctly. The new build process doesn't require mariadb-connector-c because it uses git to build it (and mariadb client), but they haven't tightened it down yet to only install libmaodbc.so (and several other issues) so for now I'm not using make install.

Erroneous commented on 2018-06-08 11:41

@wyrucz I had the makedepends set too conservatively. If there are any issues with later versions I'll change them to compensate but hopefully there'll be a new ODBC connector by then.

wyrucz commented on 2018-06-07 16:11

Dependency for mariadb-connector-c 3.0.3 is outdated. mariadb-connector-c 3.0.4-1 is in AUR now.

!! While searching for solutions the following errors occurred: :: Not provided: mariadb-connector-c=3.0.3 but needed by mariadb-connector-odbc-3.0.3-1

Erroneous commented on 2017-10-16 21:17

3.0.2 is out now. I had to replace a #define with the value defined on github repo for mariadb-connector-c because its commit isn't yet in a release.

https://github.com/MariaDB/mariadb-connector-c/commit/0334aa4811ae751d3362facad136c25b9765693a

Erroneous commented on 2017-08-21 16:58

@artemklevtsov

3.0.1 is still in beta. When a stable release comes out I'll use that. You could make a -beta package if you'd like.

Updated to the latest stable of 2.0.15. I did ldd /usr/lib/libmaodbc.so and it doesn't refer to anything from mariadb-connector-c so I'm keeping it in makedepends. Also I used a docker container and made sure you can build without libmariadbclient and you can. Everything looks to be statically linked.

artemklevtsov commented on 2017-08-18 13:09

Updated PKGBUILD:

# Maintainer: Aaron Bishop < erroneous at gmail >

pkgname=mariadb-connector-odbc
conflicts=('mariadb-connector-odbc-bin')
pkgver=3.0.1
pkgrel=1
pkgdesc="MariaDB Connector/ODBC is a standardized, LGPL licensed database driver using the industry standard ODBC API"
arch=('x86_64' 'i686')
url="https://mariadb.com/kb/en/mariadb/mariadb-connector-odbc/"
license=('LGPL')
depends=('unixodbc>=2.3' 'openssl' 'mariadb-connector-c>=3.0')
makedepends=('libmariadbclient')
options=('staticlibs')
source=("https://downloads.mariadb.org/interstitial/connector-odbc-${pkgver}/mariadb-connector-odbc-${pkgver}-beta-src.tar.gz")
sha1sums=('8d6063eddd57c1b847b63126a876ce341d3d8dc6')

install=mariadb-connector-odbc.install

prepare() {
cd "${srcdir}/${pkgname}-${pkgver}-beta-src"
rm -rf build
mkdir build
cd build
cmake .. \
-G"Unix Makefiles" \
-DWITH_OPENSSL=ON \
-DCMAKE_BUILD_TYPE=release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DMARIADB_INCLUDE_DIR=/usr/include/mariadb \
-DMARIADB_LIBRARY_DIR=/usr/lib/mariadb
}

build() {
cd "${srcdir}/${pkgname}-${pkgver}-beta-src/build"
make
}

package() {
cd "${srcdir}/${pkgname}-${pkgver}-beta-src/build"
make DESTDIR="${pkgdir}" install
mv "${pkgdir}/usr/lib64" "${pkgdir}/usr/lib"
}