Package Details: mysql-connector-c++ 1.1.9-1

Git Clone URL: https://aur.archlinux.org/mysql-connector-c++.git (read-only)
Package Base: mysql-connector-c++
Description: A MySQL database connector for C++
Upstream URL: http://dev.mysql.com/doc/connector-cpp/en/
Licenses: GPL
Submitter: eworm
Maintainer: eworm
Last Packager: eworm
Votes: 5
Popularity: 1.751670
First Submitted: 2016-01-20 11:55
Last Updated: 2017-06-26 13:14

Latest Comments

joelproko commented on 2017-06-01 14:20

Got it to compile with the following slight changes to the PKGBUILD:

*** PKGBUILD.old Thu Jun 1 14:10:23 2017
--- PKGBUILD Thu Jun 1 14:18:40 2017
***************
*** 6,26 ****
pkgname=mysql-connector-c++
pkgver=1.1.9
! pkgrel=1
pkgdesc='A MySQL database connector for C++'
! arch=('i686' 'x86_64')
! url='http://dev.mysql.com/doc/connector-cpp/en/'
license=('GPL')
! depends=('libmariadb')
makedepends=('cmake' 'boost')
! validpgpkeys=('A4A9406876FCBD3C456770C88C718D3B5072E1F5') # MySQL Release Engineering <mysql-build@oss.oracle.com>
! source=("http://cdn.mysql.com/Downloads/Connector-C++/${pkgname}-${pkgver}.tar.gz"{,.asc}
'0001-mysql-connector-c++-mariadb-api.patch')
! sha256sums=('3e31847a69a4e5c113b7c483731317ec4533858e3195d3a85026a0e2f509d2e4'
! 'SKIP'
! '68841bcbfed0e1b3ff3ae7b5bb5701114311c75b7ebb02ad8a405d0b5cd45c83')

prepare() {
! cd "${srcdir}/${pkgname}-${pkgver}/"
!
# MariaDB does not have this, but it is optional
patch -Np1 < "${srcdir}/0001-mysql-connector-c++-mariadb-api.patch"
--- 6,23 ----
pkgname=mysql-connector-c++
pkgver=1.1.9
! pkgrel=2
pkgdesc='A MySQL database connector for C++'
! arch=('i686' 'x86_64' 'armv6h')
! url='http://dev.mysql.com/doc/dev/connector-cpp/'
license=('GPL')
! depends=('libmariadbclient')
makedepends=('cmake' 'boost')
! source=("https://github.com/mysql/mysql-connector-cpp/archive/${pkgver}.tar.gz"
'0001-mysql-connector-c++-mariadb-api.patch')
! md5sums=('3e858cc46616246acb27a262cf2ba6bd'
! 'b9f9d259429a5853c33cbfbce9220a14')

prepare() {
! cd "${srcdir}/mysql-connector-cpp-${pkgver}/"
# MariaDB does not have this, but it is optional
patch -Np1 < "${srcdir}/0001-mysql-connector-c++-mariadb-api.patch"
***************
*** 31,35 ****
cd build

! cmake "../${pkgname}-${pkgver}/" \
-Wno-dev \
-DCMAKE_INSTALL_PREFIX=/usr \
--- 28,32 ----
cd build

! cmake "../mysql-connector-cpp-${pkgver}/" \
-Wno-dev \
-DCMAKE_INSTALL_PREFIX=/usr \

lviggiani commented on 2017-05-26 21:20

dependency libmariadb not found :(
It looks like libmariadb is still in staging

Anonymous comment on 2017-05-25 19:57

While building, got
==> ERROR: Failure while downloading http://cdn.mysql.com/Downloads/Connector-C++/mysql-connector-c++-1.1.7.tar.gz

These are the current URLs for 1.1.7:
https://downloads.mysql.com/archives/get/file/mysql-connector-c%2B%2B-1.1.7-linux-glibc2.5-x86-32bit.tar.gz
https://downloads.mysql.com/archives/get/file/mysql-connector-c%2B%2B-1.1.7-linux-glibc2.5-x86-64bit.tar.gz

Also, the latest version is 1.1.9 now. Download links for those:
https://cdn.mysql.com//Downloads/Connector-C++/mysql-connector-c++-1.1.9-linux-glibc2.12-x86-32bit.tar.gz
https://cdn.mysql.com//Downloads/Connector-C++/mysql-connector-c++-1.1.9-linux-glibc2.12-x86-64bit.tar.gz

drankinatty commented on 2017-03-22 19:50

@robertas that looks like you need to import the gpg key in order to validate the package, e.g. `gpg2 --keyserver hkp://pgp.mit.edu --recv-keys A4A9406876FCBD3C456770C88C718D3B5072E1F5`

robertas commented on 2017-02-12 17:22

Install fails with ":: failed to verify mysql-connector-c++ integrity"

travisghansen commented on 2016-09-26 07:11

We good. :)

eworm commented on 2016-09-26 06:25

Sorry, I borked it with a wrong patch file name. Please try again.

travisghansen commented on 2016-09-26 03:42

Fails for me:

==> Building and installing package
==> Making package: mysql-connector-c++ 1.1.7-1 (Sun Sep 25 21:37:49 MDT 2016)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Downloading mysql-connector-c++-1.1.7.tar.gz...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 506k 100 506k 0 0 652k 0 --:--:-- --:--:-- --:--:-- 651k
-> Downloading mysql-connector-c++-1.1.7.tar.gz.asc...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 173 100 173 0 0 1072 0 --:--:-- --:--:-- --:--:-- 1074
-> Found 0001-mysql-connector-c++-mariadb-api.patch
-> Found 0002-mysql-connector-c++-no-JSON.patch
==> Validating source files with sha256sums...
mysql-connector-c++-1.1.7.tar.gz ... Passed
mysql-connector-c++-1.1.7.tar.gz.asc ... Skipped
0001-mysql-connector-c++-mariadb-api.patch ... Passed
0002-mysql-connector-c++-no-JSON.patch ... Passed
==> Verifying source file signatures with gpg...
mysql-connector-c++-1.1.7.tar.gz ... Passed
==> Extracting sources...
-> Extracting mysql-connector-c++-1.1.7.tar.gz with bsdtar
==> Starting prepare()...
patching file driver/nativeapi/libmysql_static_proxy.cpp
/tmp/yaourt-tmp-thansen/aur-mysql-connector-c++/./PKGBUILD: line 32: /tmp/yaourt-tmp-thansen/aur-mysql-connector-c++/src/no-JSON.patch: No such file or directory

eworm commented on 2016-09-25 18:57

Updated to version 1.1.7. This builds for me, but I do not have anything to test with.
As mariadb does not support native JSON (should be available with 10.2) I stripped support for JSON for now.

Ybalrid commented on 2016-09-25 01:45

Just got to see that you're saying in a previous comment that mysql-workbench bundle this library, I'm probably gonna install that...

I'm porting some code I wrote myself from an old debian VM to a real linux box that runs Arch, and I access a mysql database using this library, in C++

All comments