diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2018-08-28 12:47:28 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2018-08-28 12:56:01 +0000 |
commit | 759d5b14a35a4f14f0dfa132568aa6965c39e8cb (patch) | |
tree | 3451e2c8b1a142cee2b5682b38c8810c0440da47 /main/mariadb | |
parent | 0a193c2d8f8467e3bbb9aee5948ab43b11d3423b (diff) | |
download | aports-759d5b14a35a4f14f0dfa132568aa6965c39e8cb.tar.bz2 aports-759d5b14a35a4f14f0dfa132568aa6965c39e8cb.tar.xz |
main/mariadb: only build rocksdb on supported arches
Diffstat (limited to 'main/mariadb')
-rw-r--r-- | main/mariadb/APKBUILD | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/main/mariadb/APKBUILD b/main/mariadb/APKBUILD index f4feb3de25..0e9760e9d8 100644 --- a/main/mariadb/APKBUILD +++ b/main/mariadb/APKBUILD @@ -24,8 +24,18 @@ install="$pkgname.pre-install $pkgname-common.post-upgrade" subpackages="$pkgname-static $pkgname-test:mytest $pkgname-embedded-dev:_embedded_dev $pkgname-doc $pkgname-dev $pkgname-common $pkgname-openrc $pkgname-client $pkgname-bench $pkgname-backup $pkgname-embedded $pkgname-mytop - $pkgname-server-utils:_server_utils $pkgname-plugin-rocksdb:_plugin_rocksdb + $pkgname-server-utils:_server_utils mysql mysql-client:_compat_client mysql-bench:_compat_bench" + +_enable_rocksdb=YES +case "$CARCH" in +x86|s390x) _enable_rocksdb=NO;; +esac + +if [ "$_enable_rocksdb" = "YES" ]; then + subpackages="$subpackages $pkgname-plugin-rocksdb:_plugin_rocksdb" +fi + source="https://downloads.mariadb.org/interstitial/mariadb-$pkgver/source/mariadb-$pkgver.tar.gz $pkgname.initd fix-mysql-install-db-path.patch @@ -75,6 +85,7 @@ builddir="$srcdir/$pkgname-$pkgver" # All cmake configuration options can be displayed with: cmake ../server -LH build() { cd "$builddir" + cmake . -DBUILD_CONFIG=mysql_release \ -DCMAKE_INSTALL_PREFIX=/usr \ -DSYSCONFDIR=/etc \ @@ -107,7 +118,7 @@ build() { -DPLUGIN_MROONGA=NO \ -DPLUGIN_OQGRAPH=NO \ -DPLUGIN_PARTITION=YES \ - -DPLUGIN_ROCKSDB=YES \ + -DPLUGIN_ROCKSDB=$_enable_rocksdb \ -DPLUGIN_SPHINX=NO \ -DPLUGIN_TOKUDB=NO \ -DPLUGIN_AUTH_PAM=NO \ |