[arch-commits] Commit in python-pymongo/trunk (PKGBUILD)

Felix Yan fyan at archlinux.org
Wed Feb 3 01:12:34 UTC 2016


    Date: Wednesday, February 3, 2016 @ 02:12:33
  Author: fyan
Revision: 160042

upgpkg: python-pymongo 3.2.1-1

Modified:
  python-pymongo/trunk/PKGBUILD

----------+
 PKGBUILD |   14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-02-03 01:11:13 UTC (rev 160041)
+++ PKGBUILD	2016-02-03 01:12:33 UTC (rev 160042)
@@ -6,7 +6,7 @@
 
 pkgbase=python-pymongo
 pkgname=('python-pymongo' 'python2-pymongo')
-pkgver=3.2
+pkgver=3.2.1
 pkgrel=1
 pkgdesc='Python module for using MongoDB'
 arch=('x86_64' 'i686')
@@ -15,7 +15,7 @@
 makedepends=('python-setuptools' 'python2-setuptools')
 checkdepends=('python-nose' 'python2-nose' 'python2-gevent' 'python2-monotonic' 'mongodb' 'perl')
 source=("http://pypi.python.org/packages/source/p/pymongo/pymongo-$pkgver.tar.gz")
-sha256sums=('f50a5380b45a83c5ea1e673ff19363d3cfd5850f7620536e51341d26eb2ae979')
+sha256sums=('57a86ca602b0a4d2da1f9f3afa8c59fd8ca62d829f6d8f467eae0b7cb22ba88a')
 
 prepare() {
   cp -a "pymongo-$pkgver" "pymongo2-$pkgver"
@@ -41,7 +41,15 @@
     rm -rf "$srcdir/mongo_tmp"
     mkdir "$srcdir/mongo_tmp"
     rm -f "$srcdir/mongo_tmp.pid"
-    mongod --bind_ip localhost --port $MONGO_TMP_PORT --dbpath "$srcdir/mongo_tmp" --nojournal \
+
+    # Specifying --storageEngine is needed for i686
+    if [ "$CARCH" == "i686" ]; then
+      _storageEngine="--storageEngine=mmapv1"
+    else
+      _storageEngine=""
+    fi
+
+    mongod --bind_ip localhost --port $MONGO_TMP_PORT --dbpath "$srcdir/mongo_tmp" --nojournal $_storageEngine \
          --nohttpinterface --noauth --smallfiles --nssize 1 --fork --pidfilepath "$srcdir/mongo_tmp.pid" --logpath "$srcdir/mongo_tmp.log"
     
     DB_PORT=$MONGO_TMP_PORT "$@"



More information about the arch-commits mailing list