From 7bf493df1904715e042601966d7505bb8c0022df Mon Sep 17 00:00:00 2001 From: Toyam Cox Date: Sun, 8 May 2016 04:11:13 -0400 Subject: [PATCH] mongodb: build with mmapv1 suport for 32bit platforms (#4157) --- srcpkgs/mongodb/template | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/srcpkgs/mongodb/template b/srcpkgs/mongodb/template index c8319c6e2ef..fc1d29e9349 100644 --- a/srcpkgs/mongodb/template +++ b/srcpkgs/mongodb/template @@ -1,7 +1,7 @@ # Template file for 'mongodb' pkgname=mongodb version=3.2.6 -revision=2 +revision=3 wrksrc="mongodb-src-r${version}" hostmakedepends="scons" makedepends="boost-devel pcre-devel snappy-devel libressl-devel libpcap-devel @@ -37,8 +37,10 @@ do_configure() { esac } do_build() { + # Choose storage engine case "$XBPS_TARGET_MACHINE" in x86_64*|aarch64*) _scons_args="--wiredtiger=on --use-system-wiredtiger";; + i686*|arm*) _scons_args="--wiredtiger=off --mmapv1=on";; *) _scons_args="--wiredtiger=off";; esac scons core tools ${makejobs} \