aboutsummaryrefslogtreecommitdiffstats
path: root/main/mariadb/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2018-08-28 12:47:28 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2018-08-28 12:56:01 +0000
commit759d5b14a35a4f14f0dfa132568aa6965c39e8cb (patch)
tree3451e2c8b1a142cee2b5682b38c8810c0440da47 /main/mariadb/APKBUILD
parent0a193c2d8f8467e3bbb9aee5948ab43b11d3423b (diff)
downloadaports-759d5b14a35a4f14f0dfa132568aa6965c39e8cb.tar.gz
aports-759d5b14a35a4f14f0dfa132568aa6965c39e8cb.tar.bz2
aports-759d5b14a35a4f14f0dfa132568aa6965c39e8cb.tar.xz
main/mariadb: only build rocksdb on supported arches
Diffstat (limited to 'main/mariadb/APKBUILD')
-rw-r--r--main/mariadb/APKBUILD15
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 \