aboutsummaryrefslogtreecommitdiffstats
path: root/main/mariadb/APKBUILD
diff options
context:
space:
mode:
authorTBK <tbk@jjtc.dk>2018-02-16 12:46:38 +0100
committerNatanael Copa <ncopa@alpinelinux.org>2018-03-26 08:54:40 +0000
commit6556a505d52c020d0bf835a0f1e12afceb303674 (patch)
tree040eef8b314b41d96b69d6551b8209d3ccd3118f /main/mariadb/APKBUILD
parent86472cf416d488df0ea4c9044accd77ff2c583c8 (diff)
downloadaports-6556a505d52c020d0bf835a0f1e12afceb303674.tar.gz
aports-6556a505d52c020d0bf835a0f1e12afceb303674.tar.bz2
aports-6556a505d52c020d0bf835a0f1e12afceb303674.tar.xz
main/mariadb: upgrade to 10.2.13, modernize
Diffstat (limited to 'main/mariadb/APKBUILD')
-rw-r--r--main/mariadb/APKBUILD104
1 files changed, 63 insertions, 41 deletions
diff --git a/main/mariadb/APKBUILD b/main/mariadb/APKBUILD
index 479cdba3ea..924f47df82 100644
--- a/main/mariadb/APKBUILD
+++ b/main/mariadb/APKBUILD
@@ -2,29 +2,36 @@
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Contributor: Łukasz Jendrysik <scadu@yandex.com>
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
+# Contributor: TBK <alpine@jjtc.eu>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=mariadb
-pkgver=10.1.31
+pkgver=10.2.13
pkgrel=0
pkgdesc="A fast SQL database server"
url="http://www.mariadb.org"
pkgusers="mysql"
pkggroups="mysql"
arch="all"
-license="GPL"
+license="GPL-2.0"
depends="$pkgname-common"
depends_dev="libressl-dev zlib-dev"
-makedepends="cmake libressl-dev zlib-dev readline-dev libaio-dev ncurses-dev
- linux-headers"
+makedepends="bison cmake curl-dev libaio-dev libarchive-dev libevent-dev libressl-dev
+ libxml2-dev ncurses-dev pcre-dev readline-dev zlib-dev xz-dev linux-headers"
install="$pkgname.pre-install"
+subpackages="$pkgname-doc $pkgname-dev $pkgname-common $pkgname-openrc
+ $pkgname-client-libs:_client_libs $pkgname-libs
+ $pkgname-client $pkgname-bench $pkgname-test:mytest
+ mysql mysql-client:_compat_client mysql-bench:_compat_bench"
source="https://downloads.mariadb.org/interstitial/mariadb-$pkgver/source/mariadb-$pkgver.tar.gz
$pkgname.initd
fix-mysql-install-db-path.patch
fix-ucontext-check.patch
ppc-remove-glibc-dep.patch
+ pcre.cmake.patch
"
# dbug test fails under rootbld
options="!check"
+builddir="$srcdir/$pkgname-$pkgver"
# secfixes:
# 10.1.22-r0:
@@ -43,13 +50,9 @@ options="!check"
# - CVE-2017-3317
# - CVE-2017-3318
-subpackages="$pkgname-doc $pkgname-dev $pkgname-common $pkgname-openrc
- $pkgname-client-libs:_client_libs $pkgname-libs
- $pkgname-client $pkgname-bench $pkgname-test:mytest
- mysql mysql-client:_compat_client mysql-bench:_compat_bench"
-
-builddir="$srcdir/$pkgname-$pkgver"
-
+# Notes:
+# Available plugins https://mariadb.com/kb/en/library/list-of-plugins/
+# All cmake configuration options can be displayed with: cmake ../server -LH
build() {
cd "$builddir"
cmake . -DBUILD_CONFIG=mysql_release \
@@ -70,22 +73,48 @@ build() {
-DINSTALL_MYSQLSHAREDIR=share/mysql \
-DINSTALL_DOCDIR=share/mysql/docs \
-DINSTALL_SHAREDIR=share/mysql \
+ -DCONNECT_WITH_MYSQL=ON \
+ -DCONNECT_WITH_LIBXML2=system \
+ -DCONNECT_WITH_ODBC=NO \
+ -DCONNECT_WITH_JDBC=NO \
+ -DPLUGIN_ARCHIVE=YES \
+ -DPLUGIN_ARIA=YES \
+ -DPLUGIN_BLACKHOLE=YES \
+ -DPLUGIN_CASSANDRA=NO \
+ -DPLUGIN_CSV=YES \
+ -DPLUGIN_MYISAM=YES \
+ -DPLUGIN_MROONGA=NO \
+ -DPLUGIN_OQGRAPH=NO \
+ -DPLUGIN_PARTITION=YES \
+ -DPLUGIN_ROCKSDB=NO \
+ -DPLUGIN_SPHINX=NO \
+ -DPLUGIN_TOKUDB=NO \
+ -DPLUGIN_AUTH_PAM=NO \
+ -DPLUGIN_AUTH_GSSAPI=NO \
+ -DPLUGIN_AUTH_GSSAPI_CLIENT=NO \
+ -DPLUGIN_CRACKLIB_PASSWORD_CHECK=NO \
+ -DWITH_ASAN=OFF \
+ -DWITH_EMBEDDED_SERVER=ON \
+ -DWITH_EXTRA_CHARSETS=complex \
+ -DWITH_INNODB_BZIP2=OFF \
+ -DWITH_INNODB_LZ4=OFF \
+ -DWITH_INNODB_LZMA=ON \
+ -DWITH_INNODB_LZO=OFF \
+ -DWITH_INNODB_SNAPPY=OFF \
+ -DWITH_JEMALLOC=NO \
+ -DWITH_LIBARCHIVE=system \
+ -DWITH_LIBNUMA=NO \
+ -DWITH_LIBWRAP=OFF \
+ -DWITH_LIBWSEP=OFF \
+ -DWITH_MARIABACKUP=ON \
+ -DWITH_PCRE=system \
-DWITH_READLINE=ON \
- -DWITH_ZLIB=system \
+ -DWITH_SYSTEMD=no \
-DWITH_SSL=system \
- -DWITH_LIBWRAP=OFF \
- -DWITH_JEMALLOC=no \
- -DWITH_EXTRA_CHARSETS=complex \
- -DWITH_EMBEDDED_SERVER=ON \
- -DWITH_ARCHIVE_STORAGE_ENGINE=1 \
- -DWITH_BLACKHOLE_STORAGE_ENGINE=1 \
- -DWITH_INNOBASE_STORAGE_ENGINE=1 \
- -DWITH_PARTITION_STORAGE_ENGINE=1 \
- -DPLUGIN_TOKUDB=NO \
- -DWITHOUT_EXAMPLE_STORAGE_ENGINE=1 \
- -DWITHOUT_FEDERATED_STORAGE_ENGINE=1 \
- -DWITHOUT_PBXT_STORAGE_ENGINE=1
- make
+ -DWITH_VALGRIND=OFF \
+ -DWITH_ZLIB=system \
+ -DSKIP_TESTS=ON # Disables the client lib tests since a running server is needed
+ make -j8
}
check() {
@@ -104,14 +133,6 @@ package() {
install -Dm 640 -o mysql "$pkgdir"/usr/share/mysql/my-medium.cnf \
"$pkgdir"/etc/mysql/my.cnf
- # libmysqlclient_r is no more. Upstream tries to replace it with
- # symlinks but that really doesn't work (wrong soname in particular).
- # We'll keep just the devel libmysqlclient_r.so link, so that
- # rebuilding without any source change is enough to get rid of
- # dependency on libmysqlclient_r.
- rm -f "$pkgdir"/usr/lib/libmysqlclient_r.so*
- ln -s libmysqlclient.so "$pkgdir"/usr/lib/libmysqlclient_r.so
-
# mysql-test includes one executable that doesn't belong under
# /usr/share, so move it and provide a symlink
mv "$pkgdir"/usr/mysql-test/lib/My/SafeProcess/my_safe_process \
@@ -120,7 +141,7 @@ package() {
"$pkgdir"/usr/mysql-test/lib/My/SafeProcess/my_safe_process
}
-dev(){
+dev() {
default_dev
replaces="libmysqlclient mysql-dev"
provides="mysql-dev=$pkgver-r$pkgrel"
@@ -134,7 +155,7 @@ _client_libs() {
depends="mariadb-common"
mkdir -p "$subpkgdir"/usr/lib \
"$subpkgdir"/usr/share/mysql
- mv "$pkgdir"/usr/lib/libmysqlclient.so* \
+ mv "$pkgdir"/usr/lib/libmariadb.so* \
"$subpkgdir"/usr/lib/
}
@@ -169,10 +190,10 @@ mytest() {
}
client() {
- pkgdesc="client for the MariaDB database"
+ pkgdesc="Client for the MariaDB database"
depends="mariadb-common"
install=""
- local bins="myisam_ftdump mysql mysqlaccess mysqladmin mysqlbug
+ local bins="myisam_ftdump mysql mysqlaccess mysqladmin
mysqlcheck mysqldump mysqldumpslow mysql_find_rows
mysql_fix_extensions mysqlimport mysqlshow mysql_waitpid"
mkdir -p "$subpkgdir"/usr/bin/
@@ -198,8 +219,9 @@ mysql() { _compat mysql mariadb; }
_compat_client() { _compat mysql-client mariadb-client; }
_compat_bench() { _compat mysql-bench mariadb-client; }
-sha512sums="db37ddb8ae5daf35b37d5132860c19c4a9b51c40005d05c5107f956ac5b4ecd447375b6f3a09bf59ea5aef2f4009314ed6e969ca2ac516722702b4da286dbd89 mariadb-10.1.31.tar.gz
+sha512sums="4c6038f134a32f50daa3172b367588240ef20a6f6cfe36d830e427cf52d315284481f5300d3db32d9e81ddd352dbea01fd4230f4e4d79e175d97c0c49331a4ca mariadb-10.2.13.tar.gz
06751768cb00d2e433655635c38d267ef25084a5830ff40e719ac579223c7192dc34b43f919ab6faf480094632327511cbd22456064dde2d04dc15648b9e3b9f mariadb.initd
-f85e96490de56aa4e6115f931bf256bef4e1b93cadbe4ac947d6abdc03072bf2d0872e0268ae37cd98edf13538ece73e9f8b6efa8133bab23168a825c5066ab1 fix-mysql-install-db-path.patch
-82fa93411483f5d1b57d978087a891bcab6a011e45c2d79b08d28718f5717994b423fc81d2170dad2fe65303153ac29655a81ce5039e73e37cebb159392a86cf fix-ucontext-check.patch
-a352661d19becae717c16ac67a0e47ed93787653851a75d27e7764133b31dc02e18c38dbbce6d3138e4db08da616dfc75a0141865cd042cef669d6afe4463127 ppc-remove-glibc-dep.patch"
+88d9084c8ca3a94e6e1a7fa91091f577ee063f4b13046cc805f61f3be37993b98c79665e5995d8b6b7fa10efbe00fcbde638db5b0b59f0d5e0e951b24b5108e9 fix-mysql-install-db-path.patch
+021db7a2f783b517e63d16eb31a3d251a2b02eedfd1edbfde3026efaccd77c594f83a49b632acbccebed863578e197a4e57851ea84460006a10c5881870b55cb fix-ucontext-check.patch
+81d2a95bfbce35fab6e1780f4201320e5621f470591020d707801dcf31f5fad3cb5d7b781a186b2914c6559a8fdc8f13e31e7cdde0af360ad56cedf80e491bc0 ppc-remove-glibc-dep.patch
+70da971aa78815495098205bcbd28428430aa83c3f1050fec0231ca86af9d9def2d2108a48ee08d86812c8dc5ad8ab1ef4e17a49b4936ed5187ae0f6a7ef8f63 pcre.cmake.patch"