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

Evangelos Foutras foutrelis at archlinux.org
Thu Nov 6 10:41:54 UTC 2014


    Date: Thursday, November 6, 2014 @ 11:41:53
  Author: foutrelis
Revision: 122044

upgpkg: mongodb 2.6.5-2

boost 1.57.0 rebuild.

Modified:
  mongodb/trunk/PKGBUILD

----------+
 PKGBUILD |   14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2014-11-06 10:34:23 UTC (rev 122043)
+++ PKGBUILD	2014-11-06 10:41:53 UTC (rev 122044)
@@ -7,7 +7,7 @@
 
 pkgname=mongodb
 pkgver=2.6.5
-pkgrel=1
+pkgrel=2
 pkgdesc='A high-performance, open source, schema-free document-oriented database'
 arch=('i686' 'x86_64')
 url='http://www.mongodb.org'
@@ -21,6 +21,18 @@
 source=("http://downloads.mongodb.org/src/mongodb-src-r${pkgver}.tar.gz"
         'mongodb.conf' 'mongodb.service')
 
+prepare() {
+  cd mongodb-src-r${pkgver}
+
+  # Add missing include required for std::swap()
+  # https://github.com/mongodb/mongo/commit/2d5d662
+  if grep -q '#include <algorithm>' src/mongo/shell/linenoise_utf8.h; then
+    error '<algorithm> include has been fixed upstream; remove this local fix.'
+    return 1
+  fi
+  sed -i '1i #include <algorithm>' src/mongo/shell/linenoise_utf8.h
+}
+
 build() {
   export SCONSFLAGS="$MAKEFLAGS"
 


More information about the arch-commits mailing list