Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
scons: hell yeah, 2.4.2 finally compiles
TODO: fix shared libmongoclient library(this builds only the static) TODO: make wrapper scripts work
- Loading branch information
Showing
2 changed files
with
25 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,29 @@ | ||
( | ||
# Fix for https://jira.mongodb.org/browse/SERVER-5575 | ||
patch_it $SOURCE3 1 && | ||
# that linking dependency is just too stupid. Simply remove the debug function call for now | ||
sedit 's:(" << errnoWithDescription(err) << ")":":' src/mongo/util/stacktrace.cpp && | ||
|
||
add_priv_user mongodb:mongodb -d /var/lib/mongodb && | ||
# gcc 4.8 does find something to warn about ;) | ||
sedit 's:"-Werror",:\0 "-Wno-unused-local-typedefs", "-Wno-unused-variable",:' SConstruct && | ||
|
||
scons -j${MAKES:=1} all --full && | ||
prepare_install && | ||
scons -j${MAKES:=1} install --full --prefix=/usr && | ||
# respect our PATH variable(for wrapper support) -- this does not seem to work | ||
sedit "s/env = Environment(/\0 ENV={'PATH' : os.environ['PATH']}, /" SConstruct && | ||
|
||
rm -f /usr/lib/libmongoclient.a && | ||
add_priv_user mongodb:mongodb -d /var/lib/mongodb && | ||
|
||
[ -f /etc/mongodb.conf ] || install -m 644 $SOURCE_CACHE/$SOURCE2 /etc/mongodb.conf && | ||
scons -j${MAKES:=1} all && | ||
prepare_install && | ||
scons -j${MAKES:=1} install --full --prefix=/usr && | ||
|
||
if module_installed systemd; then | ||
if [ ! -f /etc/mongodb.conf ]; then | ||
install -m 644 $SOURCE_CACHE/$SOURCE2 /etc/mongodb.conf | ||
fi && | ||
|
||
if module_installed systemd; then | ||
# Manually create /run/mongodb now, systemd tmpfiles.d will handle this next boot | ||
[ -d /run/mongodb ] || install -d -o mongodb -g root -m 0755 /run/mongodb | ||
fi && | ||
if [ ! -d /run/mongodb ]; then | ||
install -d -o mongodb -g root -m 0755 /run/mongodb | ||
fi | ||
fi && | ||
|
||
for i in /var/{lib,log}/mongodb; do | ||
install -d $i -o mongodb -g mongodb -m 770 | ||
done | ||
) > $C_FIFO 2>&1 | ||
for i in /var/{lib,log}/mongodb; do | ||
install -d $i -o mongodb -g mongodb -m 770 | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters