From: Jan Rękorajski Date: Wed, 18 Feb 2015 18:26:15 +0000 (+0100) Subject: - fix for "'swap' is not a member of 'std'" in gcc 4 X-Git-Tag: auto/th/mongodb-2.2.4-4~1 X-Git-Url: http://git.pld-linux.org/?p=packages%2Fmongodb.git;a=commitdiff_plain;h=3333b9095f1f74522d7f18b690d4ad86e5a0b67c - fix for "'swap' is not a member of 'std'" in gcc 4 --- diff --git a/gcc4.patch b/gcc4.patch new file mode 100644 index 0000000..3083919 --- /dev/null +++ b/gcc4.patch @@ -0,0 +1,10 @@ +--- mongodb-src-r2.2.4/src/mongo/shell/linenoise_utf8.h~ 2013-04-01 04:41:49.000000000 +0200 ++++ mongodb-src-r2.2.4/src/mongo/shell/linenoise_utf8.h 2015-02-18 19:25:42.158352512 +0100 +@@ -17,6 +17,7 @@ + + #include + #include ++#include + + namespace linenoise_utf8 { + diff --git a/mongodb.spec b/mongodb.spec index c0c5ac0..f13454b 100644 --- a/mongodb.spec +++ b/mongodb.spec @@ -19,6 +19,7 @@ Patch1: %{name}-system-libs.patch Patch2: boost-1.50.patch Patch3: %{name}-install.patch Patch4: %{name}-shared.patch +Patch5: gcc4.patch URL: http://www.mongodb.org/ BuildRequires: boost-devel >= 1.50 BuildRequires: libpcap-devel @@ -145,6 +146,7 @@ konfiguracji oraz skrypty init.d. %patch2 -p1 %patch3 -p1 %patch4 -p1 +%patch5 -p1 # Fix permissions find -type f -executable | xargs chmod a-x