Commit ae4539ad authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

Updated mongodb to r4.2.8

parent 138a60fc
...@@ -31,20 +31,21 @@ all: mongodb-service ...@@ -31,20 +31,21 @@ all: mongodb-service
mkdir -p /root/.cargo mkdir -p /root/.cargo
mount --bind .cargo /root/.cargo mount --bind .cargo /root/.cargo
tar xf mongo-r4.2.4.tar.gz tar xf mongodb-src-r4.2.8.tar.gz
patch -Np1 -d mongo-r4.2.4 < mongo-r4.2.4-no_debug.patch patch -Np1 -d mongodb-src-r4.2.8 < mongodb-src-r4.2.8-no_debug.patch
patch -Np1 -d mongodb-src-r4.2.8 < mongodb-src-r4.2.8-cstdlib.patch
mkdir mongo-home mkdir mongo-home
cd mongo-r4.2.4 && HOME=$(CURDIR)/mongo-home pip3 install -r buildscripts/requirements.txt cd mongodb-src-r4.2.8 && HOME=$(CURDIR)/mongo-home pip3 install -r buildscripts/requirements.txt
cd mongo-r4.2.4 && scons all --release --opt=on --disable-warnings-as-errors MONGO_VERSION=4.2.4 -j 1 cd mongodb-src-r4.2.8 && scons all --release --opt=on --disable-warnings-as-errors MONGO_VERSION=4.2.8 -j 1
cd mongo-r4.2.4 && scons --prefix=/usr install --disable-warnings-as-errors MONGO_VERSION=4.2.4 cd mongodb-src-r4.2.8 && scons --prefix=/usr install --disable-warnings-as-errors MONGO_VERSION=4.2.8
cd mongo-r4.2.4 && HOME=$(CURDIR)/mongo-home pip3 uninstall -y -r buildscripts/requirements.txt cd mongodb-src-r4.2.8 && HOME=$(CURDIR)/mongo-home pip3 uninstall -y -r buildscripts/requirements.txt
@echo "$$MONGODB_SERVICE" > /lib/systemd/system/mongodb.service @echo "$$MONGODB_SERVICE" > /lib/systemd/system/mongodb.service
systemctl enable mongodb.service systemctl enable mongodb.service
install -v -Dm755 mongod.conf /etc install -v -Dm755 mongod.conf /etc
install -v -m755 -o mongodb -g mongodb -d /var/lib/mongodb install -v -m755 -o mongodb -g mongodb -d /var/lib/mongodb
@echo "d /run/mongodb 755 mongodb mongodb -" > /usr/lib/tmpfiles.d/mongodb.conf @echo "d /run/mongodb 755 mongodb mongodb -" > /usr/lib/tmpfiles.d/mongodb.conf
rm -rf mongo-home rm -rf mongo-home
rm -rf mongo-r4.2.4 rm -rf mongodb-src-r4.2.8
umount /root/.cargo umount /root/.cargo
rm -rf /root/.cargo rm -rf /root/.cargo
......
diff -uNr mongodb-src-r4.2.8/src/mongo/stdx/thread.h mongodb-src-r4.2.8-cstdlib/src/mongo/stdx/thread.h
--- mongodb-src-r4.2.8/src/mongo/stdx/thread.h 2020-06-09 11:21:32.000000000 +0930
+++ mongodb-src-r4.2.8-cstdlib/src/mongo/stdx/thread.h 2021-08-22 16:40:12.608816653 +0930
@@ -33,6 +33,7 @@
#include <csignal>
#include <cstddef>
#include <cstdint>
+#include <cstdlib>
#include <ctime>
#include <exception>
#include <thread>
diff -uNr mongo-r4.2.4/SConstruct mongo-r4.2.4-no_debug/SConstruct diff -uNr mongodb-src-r4.2.8/SConstruct mongodb-src-r4.2.8-no_debug/SConstruct
--- mongo-r4.2.4/SConstruct 2020-03-02 22:31:44.000000000 +0000 --- mongodb-src-r4.2.8/SConstruct 2020-06-09 11:21:32.000000000 +0930
+++ mongo-r4.2.4-no_debug/SConstruct 2020-08-22 23:21:30.870326651 +0000 +++ mongodb-src-r4.2.8-no_debug/SConstruct 2021-08-22 07:54:42.738092129 +0930
@@ -1859,7 +1859,6 @@ @@ -1867,7 +1867,6 @@
# -Winvalid-pch Warn if a precompiled header (see Precompiled Headers) is found in the search path but can't be used. # -Winvalid-pch Warn if a precompiled header (see Precompiled Headers) is found in the search path but can't be used.
env.Append( CCFLAGS=["-fno-omit-frame-pointer", env.Append( CCFLAGS=["-fno-omit-frame-pointer",
"-fno-strict-aliasing", "-fno-strict-aliasing",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment