Browse Source

mongodb: rebuild with libboost-1.66.0

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@11404 ec354946-7b23-47d6-9f5a-488ba84defc7
ara_t 6 years ago
parent
commit
1081f1807d
1 changed files with 22 additions and 9 deletions
  1. 22 9
      m/mongodb/mongodb-vl.spec

+ 22 - 9
m/mongodb/mongodb-vl.spec

@@ -3,7 +3,7 @@
 
 Name:           mongodb
 Version:        2.2.0
-Release:        2%{?_dist_release}
+Release:        4%{?_dist_release}
 Summary:        High-performance, schema-free document-oriented database
 Summary(ja):    高性能なスキーマ不要のドキュメント指向データベース
 Group:          Applications/Databases 
@@ -36,6 +36,11 @@ Patch8:         mongodb-2.2.0-shared-library.patch
 ##Patch 9 - https://jira.mongodb.org/browse/SERVER-5575
 Patch9:         mongodb-2.2.0-full-flag.patch
 
+## Patch100: avoid build error under libboost-1.66.0
+## https://stackoverflow.com/questions/2333952/g-4-4-compile-error-lower-versions-works
+Patch100:       mongodb-2.2.0-linenoise_utf8.h.patch
+
+
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
 
 BuildRequires:  python-devel
@@ -126,6 +131,8 @@ software, default configuration files, and init scripts.
 %patch9 -p1
 %endif
 
+%patch100
+
 # spurious permissions
 chmod -x README
 
@@ -138,22 +145,23 @@ scons %{?_smp_mflags} --sharedclient \
       --prefix=%{buildroot}%{_prefix} \
       --extrapath=%{_prefix} \
 %if %{with v8}
-      --usev8
+      --usev8 \
 %endif
+      CXXFLAGS="-std=c++11"
 
 
 %install
 rm -rf %{buildroot}
 scons install \
-	--sharedclient \
-	--use-system-all \
-	--prefix=%{buildroot}%{_prefix} \
-	--extrapath=%{_prefix} \
+  --sharedclient \
+  --use-system-all \
+  --prefix=%{buildroot}%{_prefix} \
+  --extrapath=%{_prefix} \
 %if %{with v8}
-	--usev8 \
+  --usev8 \
 %endif
-	--nostrip \
-	--full
+  --nostrip \
+  --full
 rm -f %{buildroot}%{_libdir}/libmongoclient.a
 rm -f %{buildroot}/usr/lib/libmongoclient.a
 
@@ -252,7 +260,12 @@ fi
 %defattr(-,root,root,-)
 %{_includedir}
 
+
 %changelog
+* Thu Jan 18 2018 Toshiaki Ara <ara_t@384.jp> 2.2.0-4
+- rebuild with libboost-1.66.0
+- add Patch100 (mongodb-2.2.0-linenoise_utf8.h.patch)
+
 * Mon Dec 09 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.2.0-2
 - rebuild with libboost-1.54.0