diff options
author | Robert Förster <Dessa@gmake.de> | 2024-09-10 16:38:43 +0200 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2024-12-11 05:45:56 +0000 |
commit | 2c3eef75a90061b04ffda1b109455dfc56210b40 (patch) | |
tree | 8375ceed792d1b7a722f04c2fbc0021bcc1bbadd /dev-db | |
parent | dev-db/mongodb: add 5.0.30 (diff) | |
download | gentoo-2c3eef75a90061b04ffda1b109455dfc56210b40.tar.gz gentoo-2c3eef75a90061b04ffda1b109455dfc56210b40.tar.bz2 gentoo-2c3eef75a90061b04ffda1b109455dfc56210b40.zip |
dev-db/mongodb: drop 4.4.29
Closes: https://bugs.gentoo.org/934178
Signed-off-by: Robert Förster <Dessa@gmake.de>
Closes: https://github.com/gentoo/gentoo/pull/38551
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-db')
-rw-r--r-- | dev-db/mongodb/Manifest | 1 | ||||
-rw-r--r-- | dev-db/mongodb/files/mongodb-4.4.1-fix-scons.patch | 33 | ||||
-rw-r--r-- | dev-db/mongodb/files/mongodb-4.4.10-boost-1.79.patch | 71 | ||||
-rw-r--r-- | dev-db/mongodb/files/mongodb-4.4.10-no-force-lld.patch | 29 | ||||
-rw-r--r-- | dev-db/mongodb/files/mongodb-4.4.29-boost-1.85.patch | 146 | ||||
-rw-r--r-- | dev-db/mongodb/files/mongodb-4.4.8-no-compass.patch | 43 | ||||
-rw-r--r-- | dev-db/mongodb/mongodb-4.4.29.ebuild | 189 |
7 files changed, 0 insertions, 512 deletions
diff --git a/dev-db/mongodb/Manifest b/dev-db/mongodb/Manifest index 619e88209221..b3248462fc88 100644 --- a/dev-db/mongodb/Manifest +++ b/dev-db/mongodb/Manifest @@ -1,3 +1,2 @@ -DIST mongodb-4.4.29.gh.tar.gz 51651007 BLAKE2B 9e9bd08ce87659fcf788964ec1bff80baef5bb9c2f5bd4968588511d289b9baf9fc68812f72ee89f90fb557dcc8d2ecbb3f607ca8e31c2212ec9633c0b99da37 SHA512 3c32a918c8b5587b04ee9263788c250a9bbd64f34ed2c19939e78607456215697966e596c2cfd160604b629188e4bdf3fff071db268bb3c25de3077a7c2ef335 DIST mongodb-5.0.26.gh.tar.gz 57252091 BLAKE2B a4663a4dbac90118b56646816b178680a6bd99be6abb582fdfdb662c8ddf14eb9db18ed97260a37b2d04bf11715e6cfaa34bb12c4f4b08426e3afa90908f0b3c SHA512 efd56649006bb61070a2f255e8d843e4ddab33562ec9454afe55848dcc3ce8ee90431f70c9362b14e52c4a49a162ea3075a869a6fd71f63efdd5f4358703fea4 DIST mongodb-5.0.30.tar.gz 57312372 BLAKE2B 72b026115cf3c8b1b81857bc5bffcd5b72bae4b581a7ada598bc7bbe594f264f581212159788113c5709ab751dd8a57943a3cc9b78f0d31aeb50375fa1da2c28 SHA512 97642da12cf199fa3f17825b1eb20e4d9bc1f65c8950f54b36347af11b6964cdd2007d11b01147d0c253077ef14121de52517c1739b433b49a9cbbe2596d9d05 diff --git a/dev-db/mongodb/files/mongodb-4.4.1-fix-scons.patch b/dev-db/mongodb/files/mongodb-4.4.1-fix-scons.patch deleted file mode 100644 index 8b9d5d6d9fa2..000000000000 --- a/dev-db/mongodb/files/mongodb-4.4.1-fix-scons.patch +++ /dev/null @@ -1,33 +0,0 @@ -diff --git a/SConstruct b/SConstruct -index 89c044ab..a6d02072 100644 ---- a/SConstruct -+++ b/SConstruct -@@ -2064,7 +2064,6 @@ if env.TargetOSIs('posix'): - env.Append( CCFLAGS=["-fno-omit-frame-pointer", - "-fno-strict-aliasing", - "-fasynchronous-unwind-tables", -- "-ggdb" if not env.TargetOSIs('emscripten') else "-g", - "-pthread", - "-Wall", - "-Wsign-compare", -@@ -2076,6 +2075,9 @@ if env.TargetOSIs('posix'): - env.Append( CCFLAGS=["-Werror"] ) - - env.Append( CXXFLAGS=["-Woverloaded-virtual"] ) -+ env.Append( CXXFLAGS=os.environ['CXXFLAGS'] ) -+ env.Append( LINKFLAGS=os.environ['LDFLAGS'] ) -+ - if env.ToolchainIs('clang'): - env.Append( CXXFLAGS=['-Werror=unused-result'] ) - -@@ -2096,8 +2098,8 @@ if env.TargetOSIs('posix'): - - env.Append( LIBS=[] ) - -- #make scons colorgcc friendly -- for key in ('HOME', 'TERM'): -+ #make scons colorgcc, distcc, ccache friendly -+ for key in ('HOME', 'PATH', 'TERM'): - try: - env['ENV'][key] = os.environ[key] - except KeyError: diff --git a/dev-db/mongodb/files/mongodb-4.4.10-boost-1.79.patch b/dev-db/mongodb/files/mongodb-4.4.10-boost-1.79.patch deleted file mode 100644 index 601141e8d416..000000000000 --- a/dev-db/mongodb/files/mongodb-4.4.10-boost-1.79.patch +++ /dev/null @@ -1,71 +0,0 @@ -https://bugs.gentoo.org/844235 ---- a/src/mongo/db/auth/security_key_test.cpp -+++ b/src/mongo/db/auth/security_key_test.cpp -@@ -30,6 +30,7 @@ - #include "mongo/platform/basic.h" - - #include <boost/filesystem.hpp> -+#include <boost/filesystem/fstream.hpp> - - #include "mongo/base/string_data.h" - #include "mongo/db/auth/authorization_manager.h" ---- a/src/mongo/db/storage/storage_repair_observer.cpp -+++ b/src/mongo/db/storage/storage_repair_observer.cpp -@@ -41,6 +41,7 @@ - #include <sys/types.h> - #endif - -+#include <boost/filesystem/fstream.hpp> - #include <boost/filesystem/path.hpp> - - #include "mongo/db/dbhelpers.h" ---- a/src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine_test.cpp -+++ b/src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine_test.cpp -@@ -34,6 +34,7 @@ - #include "mongo/db/storage/kv/kv_engine_test_harness.h" - - #include <boost/filesystem.hpp> -+#include <boost/filesystem/fstream.hpp> - #include <boost/filesystem/path.hpp> - #include <memory> - ---- a/src/mongo/db/storage/wiredtiger/wiredtiger_util.cpp -+++ b/src/mongo/db/storage/wiredtiger/wiredtiger_util.cpp -@@ -36,6 +36,7 @@ - #include <limits> - - #include <boost/filesystem.hpp> -+#include <boost/filesystem/fstream.hpp> - #include <boost/filesystem/path.hpp> - - #include "mongo/base/simple_string_data_comparator.h" ---- a/src/mongo/shell/shell_utils_extended.cpp -+++ b/src/mongo/shell/shell_utils_extended.cpp -@@ -37,6 +37,7 @@ - #endif - - #include <boost/filesystem.hpp> -+#include <boost/filesystem/fstream.hpp> - #include <fstream> - - #include "mongo/bson/bson_validate.h" ---- a/src/mongo/util/processinfo_linux.cpp -+++ b/src/mongo/util/processinfo_linux.cpp -@@ -36,6 +36,7 @@ - #include <iostream> - #include <malloc.h> - #include <pcrecpp.h> -+#include <fstream> - #include <sched.h> - #include <stdio.h> - #include <sys/mman.h> ---- a/src/mongo/util/stacktrace_threads.cpp -+++ b/src/mongo/util/stacktrace_threads.cpp -@@ -36,6 +36,7 @@ - #include <array> - #include <atomic> - #include <boost/filesystem.hpp> -+#include <boost/filesystem/fstream.hpp> - #include <cctype> - #include <cstdint> - #include <cstdlib> diff --git a/dev-db/mongodb/files/mongodb-4.4.10-no-force-lld.patch b/dev-db/mongodb/files/mongodb-4.4.10-no-force-lld.patch deleted file mode 100644 index 471f3e226820..000000000000 --- a/dev-db/mongodb/files/mongodb-4.4.10-no-force-lld.patch +++ /dev/null @@ -1,29 +0,0 @@ -Don't automagically force lld > gold > bfd. Leave it up to the user. - -In particular, avoids issues with LTO enabled (via the flag/scons option) -where using GCC as compiler, as lld can't do LTO with GCC. - -https://bugs.gentoo.org/769986 ---- a/SConstruct -+++ b/SConstruct -@@ -3109,20 +3109,6 @@ def doConfigure(myenv): - myenv.Append( CCFLAGS=["/Zc:inline"]) - - if myenv.ToolchainIs('gcc', 'clang'): -- # This tells clang/gcc to use the gold linker if it is available - we prefer the gold linker -- # because it is much faster. Don't use it if the user has already configured another linker -- # selection manually. -- if not any(flag.startswith('-fuse-ld=') for flag in env['LINKFLAGS']): -- -- # lld has problems with separate debug info on some platforms. See: -- # - https://bugzilla.mozilla.org/show_bug.cgi?id=1485556 -- # - https://bugzilla.mozilla.org/show_bug.cgi?id=1485556 -- if get_option('separate-debug') == 'off': -- if not AddToLINKFLAGSIfSupported(myenv, '-fuse-ld=lld'): -- AddToLINKFLAGSIfSupported(myenv, '-fuse-ld=gold') -- else: -- AddToLINKFLAGSIfSupported(myenv, '-fuse-ld=gold') -- - # Usually, --gdb-index is too expensive in big static binaries, but for dynamic - # builds it works well. - if link_model.startswith("dynamic"): diff --git a/dev-db/mongodb/files/mongodb-4.4.29-boost-1.85.patch b/dev-db/mongodb/files/mongodb-4.4.29-boost-1.85.patch deleted file mode 100644 index 92831264b4e3..000000000000 --- a/dev-db/mongodb/files/mongodb-4.4.29-boost-1.85.patch +++ /dev/null @@ -1,146 +0,0 @@ -https://bugs.gentoo.org/932251#c7 ---- a/src/mongo/db/initialize_server_global_state.cpp 2024-02-13 00:46:45.000000000 -0800 -+++ b/src/mongo/db/initialize_server_global_state.cpp 2024-06-05 01:07:27.035053336 -0700 -@@ -34,7 +34,7 @@ - #include "mongo/db/initialize_server_global_state.h" - #include "mongo/db/initialize_server_global_state_gen.h" - --#include <boost/filesystem/operations.hpp> -+#include <boost/filesystem.hpp> - #include <fmt/format.h> - #include <iostream> - #include <memory> -@@ -346,7 +346,7 @@ - << "\" should name a file, not a directory."); - } - -- if (!serverGlobalParams.logAppend && boost::filesystem::is_regular(absoluteLogpath)) { -+ if (!serverGlobalParams.logAppend && boost::filesystem::is_regular_file(absoluteLogpath)) { - std::string renameTarget = absoluteLogpath + "." + terseCurrentTime(false); - boost::system::error_code ec; - boost::filesystem::rename(absoluteLogpath, renameTarget, ec); - - ---- a/src/mongo/db/startup_warnings_mongod.cpp 2024-02-13 00:46:45.000000000 -0800 -+++ b/src/mongo/db/startup_warnings_mongod.cpp 2024-06-05 01:09:36.740158960 -0700 -@@ -34,6 +34,7 @@ - #include "mongo/db/startup_warnings_mongod.h" - - #include <boost/filesystem/operations.hpp> -+#include <boost/filesystem/exception.hpp> - #include <fstream> - #ifndef _WIN32 - #include <sys/resource.h> - - ---- a/src/mongo/db/storage/storage_engine_lock_file_posix.cpp 2024-06-05 00:46:38.374648451 -0700 -+++ b/src/mongo/db/storage/storage_engine_lock_file_posix.cpp 2024-06-05 00:47:33.178731500 -0700 -@@ -55,7 +55,7 @@ - // if called without a fully qualified path it asserts; that makes mongoperf fail. - // so make a warning. need a better solution longer term. - // massert(40389, str::stream() << "Couldn't find parent dir for file: " << file.string(),); -- if (!file.has_branch_path()) { -+ if (!file.has_parent_path()) { - LOGV2(22274, - "warning flushMyDirectory couldn't find parent dir for file: {file}", - "flushMyDirectory couldn't find parent dir for file", -@@ -64,7 +64,7 @@ - } - - -- boost::filesystem::path dir = file.branch_path(); // parent_path in new boosts -+ boost::filesystem::path dir = file.parent_path(); // parent_path in new boosts - - LOGV2_DEBUG(22275, 1, "flushing directory {dir_string}", "dir_string"_attr = dir.string()); - - ---- a/src/mongo/db/storage/storage_engine_metadata.cpp 2024-02-13 00:46:45.000000000 -0800 -+++ b/src/mongo/db/storage/storage_engine_metadata.cpp 2024-06-05 01:26:46.904273382 -0700 -@@ -220,7 +220,7 @@ - // if called without a fully qualified path it asserts; that makes mongoperf fail. - // so make a warning. need a better solution longer term. - // massert(13652, str::stream() << "Couldn't find parent dir for file: " << file.string(),); -- if (!file.has_branch_path()) { -+ if (!file.has_parent_path()) { - LOGV2(22283, - "warning flushMyDirectory couldn't find parent dir for file: {file}", - "flushMyDirectory couldn't find parent dir for file", -@@ -229,7 +229,7 @@ - } - - -- boost::filesystem::path dir = file.branch_path(); // parent_path in new boosts -+ boost::filesystem::path dir = file.parent_path(); // parent_path in new boosts - - LOGV2_DEBUG(22284, 1, "flushing directory {dir_string}", "dir_string"_attr = dir.string()); - - ---- a/src/mongo/shell/shell_utils_launcher.cpp 2024-02-13 00:46:45.000000000 -0800 -+++ b/src/mongo/shell/shell_utils_launcher.cpp 2024-06-05 01:29:45.140048809 -0700 -@@ -39,6 +39,7 @@ - #include <boost/iostreams/stream.hpp> - #include <boost/iostreams/stream_buffer.hpp> - #include <boost/iostreams/tee.hpp> -+#include <boost/filesystem.hpp> - #include <cctype> - #include <fcntl.h> - #include <fmt/format.h> -@@ -907,26 +908,26 @@ - boost::filesystem::directory_iterator i(from); - while (i != end) { - boost::filesystem::path p = *i; -- if (p.leaf() == "metrics.interim" || p.leaf() == "metrics.interim.temp") { -+ if (p.filename() == "metrics.interim" || p.filename() == "metrics.interim.temp") { - // Ignore any errors for metrics.interim* files as these may disappear during copy - boost::system::error_code ec; -- boost::filesystem::copy_file(p, to / p.leaf(), ec); -+ boost::filesystem::copy_file(p, to / p.filename(), ec); - if (ec) { - LOGV2_INFO(22814, - "Skipping copying of file from '{from}' to " - "'{to}' due to: {error}", - "Skipping copying of file due to error" - "from"_attr = p.generic_string(), -- "to"_attr = (to / p.leaf()).generic_string(), -+ "to"_attr = (to / p.filename()).generic_string(), - "error"_attr = ec.message()); - } -- } else if (p.leaf() != "mongod.lock" && p.leaf() != "WiredTiger.lock") { -+ } else if (p.filename() != "mongod.lock" && p.filename() != "WiredTiger.lock") { - if (boost::filesystem::is_directory(p)) { -- boost::filesystem::path newDir = to / p.leaf(); -+ boost::filesystem::path newDir = to / p.filename(); - boost::filesystem::create_directory(newDir); - copyDir(p, newDir); - } else { -- boost::filesystem::copy_file(p, to / p.leaf()); -+ boost::filesystem::copy_file(p, to / p.filename()); - } - } - ++i; - - ---- a/src/mongo/scripting/engine.cpp 2024-02-13 00:46:45.000000000 -0800 -+++ b/src/mongo/scripting/engine.cpp 2024-06-05 00:59:57.488909335 -0700 -@@ -34,6 +34,7 @@ - #include "mongo/scripting/engine.h" - - #include <boost/filesystem/operations.hpp> -+#include <boost/filesystem/directory.hpp> - #include <cctype> - - #include "mongo/client/dbclient_base.h" - - ---- a/src/mongo/shell/shell_utils_launcher.h 2024-02-13 00:46:45.000000000 -0800 -+++ b/src/mongo/shell/shell_utils_launcher.h 2024-06-05 01:04:44.286162623 -0700 -@@ -29,7 +29,7 @@ - - #pragma once - --#include <boost/filesystem/convenience.hpp> -+#include <boost/filesystem/path.hpp> - #include <map> - #include <sstream> - #include <string> - diff --git a/dev-db/mongodb/files/mongodb-4.4.8-no-compass.patch b/dev-db/mongodb/files/mongodb-4.4.8-no-compass.patch deleted file mode 100644 index 0755705ed55f..000000000000 --- a/dev-db/mongodb/files/mongodb-4.4.8-no-compass.patch +++ /dev/null @@ -1,43 +0,0 @@ -diff --git a/src/mongo/SConscript b/src/mongo/SConscript -index 62fbfc02..5be336f7 100644 ---- a/src/mongo/SConscript -+++ b/src/mongo/SConscript -@@ -841,30 +841,6 @@ for full_dir, archive_dir in list(env["ARCHIVE_ADDITION_DIR_MAP"].items()): - for target in env["DIST_BINARIES"]: - installBinary(env, "db/modules/" + target) - --compass_script = "install_compass" --if env.TargetOSIs('windows'): -- compass_script = "Install-Compass.ps1" -- --compass_installer = f"$BUILD_DIR/mongo/installer/compass/{compass_script}" -- --distBinaries.append(compass_installer) -- --if not hygienic: -- compass_script_installer = env.Install("$DESTDIR/bin", compass_installer) --else: -- compass_script_installer = env.AutoInstall( -- target='$PREFIX_BINDIR', -- source=[ -- compass_installer, -- ], -- AIB_COMPONENT='dist', -- AIB_ROLE='runtime', -- ) -- --if env.TargetOSIs('posix'): -- env.AddPostAction( compass_script_installer, 'chmod 755 $TARGET' ) -- env.AddPostAction( compass_installer, 'chmod 755 $TARGET' ) -- - if not hygienic: - server_archive = env.Command( - target='#/${SERVER_ARCHIVE}', -@@ -878,7 +854,6 @@ if not hygienic: - '--transform $BUILD_DIR/mongo/stripped/db/modules/enterprise=$SERVER_DIST_BASENAME/bin', - '--transform $BUILD_DIR/mongo/stripped=$SERVER_DIST_BASENAME/bin', - '--transform $BUILD_DIR/mongo=$SERVER_DIST_BASENAME/bin', -- '--transform src/mongo/installer/compass=$SERVER_DIST_BASENAME/bin', - '${TEMPFILE(SOURCES[1:])}' - ], - ), diff --git a/dev-db/mongodb/mongodb-4.4.29.ebuild b/dev-db/mongodb/mongodb-4.4.29.ebuild deleted file mode 100644 index 7c004e0b2b0a..000000000000 --- a/dev-db/mongodb/mongodb-4.4.29.ebuild +++ /dev/null @@ -1,189 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{10..12} ) - -SCONS_MIN_VERSION="3.3.1" -CHECKREQS_DISK_BUILD="2400M" -CHECKREQS_DISK_USR="512M" -CHECKREQS_MEMORY="1024M" - -inherit check-reqs flag-o-matic multiprocessing pax-utils python-any-r1 scons-utils systemd toolchain-funcs - -MY_PV=r${PV/_rc/-rc} -MY_P=mongo-${MY_PV} - -DESCRIPTION="A high-performance, open source, schema-free document-oriented database" -HOMEPAGE="https://www.mongodb.com" -SRC_URI="https://github.com/mongodb/mongo/archive/refs/tags/${MY_PV}.tar.gz -> ${P}.gh.tar.gz" -S="${WORKDIR}/${MY_P}" -LICENSE="Apache-2.0 SSPL-1" -SLOT="0" -KEYWORDS="~amd64 ~arm64 -riscv" -IUSE="debug kerberos ssl test +tools" -RESTRICT="!test? ( test )" - -RDEPEND="acct-group/mongodb - acct-user/mongodb - >=app-arch/snappy-1.1.3:= - >=dev-cpp/yaml-cpp-0.6.2:= - dev-libs/boost:=[nls] - >=dev-libs/libpcre-8.42[cxx] - app-arch/zstd:= - dev-libs/snowball-stemmer:= - net-misc/curl - >=sys-libs/zlib-1.2.11:= - kerberos? ( dev-libs/cyrus-sasl[kerberos] ) - ssl? ( - >=dev-libs/openssl-1.0.1g:0= - )" -DEPEND="${RDEPEND} - ${PYTHON_DEPS} - sys-libs/ncurses:0= - sys-libs/readline:0= - debug? ( dev-debug/valgrind )" -BDEPEND=" - $(python_gen_any_dep ' - test? ( dev-python/pymongo[${PYTHON_USEDEP}] dev-python/requests[${PYTHON_USEDEP}] ) - >=dev-build/scons-3.1.1[${PYTHON_USEDEP}] - dev-python/cheetah3[${PYTHON_USEDEP}] - dev-python/psutil[${PYTHON_USEDEP}] - dev-python/pyyaml[${PYTHON_USEDEP}] - ') -" -PDEPEND="tools? ( >=app-admin/mongo-tools-100 )" - -PATCHES=( - "${FILESDIR}/${PN}-4.4.1-fix-scons.patch" - "${FILESDIR}/${PN}-4.4.8-no-compass.patch" - "${FILESDIR}/${PN}-4.4.1-boost.patch" - "${FILESDIR}/${PN}-4.4.1-gcc11.patch" - "${FILESDIR}/${PN}-4.4.10-boost-1.79.patch" - "${FILESDIR}/${PN}-4.4.10-no-force-lld.patch" - "${FILESDIR}/${PN}-4.4.10-boost-1.81.patch" - "${FILESDIR}/${P}-no-enterprise.patch" - "${FILESDIR}/${PN}-4.4.29-boost-1.85.patch" -) - -python_check_deps() { - if use test; then - python_has_version "dev-python/pymongo[${PYTHON_USEDEP}]" || return 1 - python_has_version "dev-python/requests[${PYTHON_USEDEP}]" || return 1 - fi - python_has_version -b ">=dev-build/scons-3.1.1[${PYTHON_USEDEP}]" && - python_has_version -b "dev-python/cheetah3[${PYTHON_USEDEP}]" && - python_has_version -b "dev-python/psutil[${PYTHON_USEDEP}]" && - python_has_version -b "dev-python/pyyaml[${PYTHON_USEDEP}]" -} - -pkg_pretend() { - if [[ -n ${REPLACING_VERSIONS} ]]; then - if ver_test "$REPLACING_VERSIONS" -lt 4.2; then - ewarn "To upgrade from a version earlier than the 4.2-series, you must" - ewarn "successively upgrade major releases until you have upgraded" - ewarn "to 4.2-series. Then upgrade to 4.4 series." - else - ewarn "Be sure to set featureCompatibilityVersion to 4.2 before upgrading." - fi - fi -} - -src_prepare() { - default - - # remove bundled libs - rm -r src/third_party/{boost-*,pcre-*,scons-*,snappy-*,yaml-cpp-*,zlib-*} || die - - # remove compass - rm -r src/mongo/installer/compass || die -} - -src_configure() { - # https://github.com/mongodb/mongo/wiki/Build-Mongodb-From-Source - # --use-system-icu fails tests - # --use-system-tcmalloc is strongly NOT recommended: - # for MONGO_GIT_HASH use GitOrigin-RevId from the commit of the tag - scons_opts=( - AR="$(tc-getAR)" - CC="$(tc-getCC)" - CXX="$(tc-getCXX)" - CCFLAGS="${CXXFLAGS}" - - VERBOSE=1 - VARIANT_DIR=gentoo - MONGO_VERSION="${PV}" - MONGO_GIT_HASH="f4dda329a99811c707eb06d05ad023599f9be263" - - --disable-warnings-as-errors - --use-system-boost - --use-system-pcre - --use-system-snappy - --use-system-stemmer - --use-system-yaml - --use-system-zlib - --use-system-zstd - ) - - use arm64 && scons_opts+=( --use-hardware-crc32=off ) # Bug 701300 - use debug && scons_opts+=( --dbg=on ) - use kerberos && scons_opts+=( --use-sasl-client ) - use ssl && scons_opts+=( --ssl ) - - # Needed to avoid forcing FORTIFY_SOURCE - # Gentoo's toolchain applies these anyway - scons_opts+=( --runtime-hardening=off ) - - # respect mongoDB upstream's basic recommendations - # see bug #536688 and #526114 - if ! use debug; then - filter-flags '-m*' - filter-flags '-O?' - fi - - default -} - -src_compile() { - PREFIX="${EPREFIX}/usr" escons "${scons_opts[@]}" --nostrip install-core -} - -# FEATURES="test -usersandbox" emerge dev-db/mongodb -src_test() { - ewarn "Tests may hang with FEATURES=usersandbox" - "${EPYTHON}" ./buildscripts/resmoke.py run --dbpathPrefix=test --suites core --jobs=$(makeopts_jobs) || die "Tests failed with ${EPYTHON}" -} - -src_install() { - dobin build/install/bin/{mongo,mongod,mongos} - - doman debian/mongo*.1 - dodoc README docs/building.md - - newinitd "${FILESDIR}/${PN}.initd-r3" ${PN} - newconfd "${FILESDIR}/${PN}.confd-r3" ${PN} - newinitd "${FILESDIR}/mongos.initd-r3" mongos - newconfd "${FILESDIR}/mongos.confd-r3" mongos - - insinto /etc - newins "${FILESDIR}/${PN}.conf-r3" ${PN}.conf - newins "${FILESDIR}/mongos.conf-r2" mongos.conf - - systemd_newunit "${FILESDIR}/${PN}.service-r1" "${PN}.service" - - insinto /etc/logrotate.d/ - newins "${FILESDIR}/${PN}.logrotate" ${PN} - - # see bug #526114 - pax-mark emr "${ED}"/usr/bin/{mongo,mongod,mongos} - - diropts -m0750 -o mongodb -g mongodb - keepdir /var/log/${PN} -} - -pkg_postinst() { - ewarn "Make sure to read the release notes and follow the upgrade process:" - ewarn " https://docs.mongodb.com/manual/release-notes/$(ver_cut 1-2)/" - ewarn " https://docs.mongodb.com/manual/release-notes/$(ver_cut 1-2)/#upgrade-procedures" -} |