[dev-db/mongodb] remove 4.4, its EOL
This commit is contained in:
parent
66fd904640
commit
1d2885fbf9
@ -1,3 +1,2 @@
|
|||||||
DIST mongodb-4.4.29.gh.tar.gz 51651007 BLAKE2B 9e9bd08ce87659fcf788964ec1bff80baef5bb9c2f5bd4968588511d289b9baf9fc68812f72ee89f90fb557dcc8d2ecbb3f607ca8e31c2212ec9633c0b99da37 SHA512 3c32a918c8b5587b04ee9263788c250a9bbd64f34ed2c19939e78607456215697966e596c2cfd160604b629188e4bdf3fff071db268bb3c25de3077a7c2ef335
|
|
||||||
DIST mongodb-5.0.27.gh.tar.gz 57287707 BLAKE2B 3c8cab2c51fd2c8c9e827b2483da8a7ba6f27f2f8dee82fdf4c490db7567f4f5f519e74a3465573434f68d5bfa92e38bf9fe1f936c815139a26bdc5f853c2700 SHA512 1f79c2c62ac1104347e14301e0ea52bce8f1f7df8a995a324349accbae099f1bf90542f829b2dc31f41c42b01cd526e0436554891503ff51da216109c1d08fe5
|
DIST mongodb-5.0.27.gh.tar.gz 57287707 BLAKE2B 3c8cab2c51fd2c8c9e827b2483da8a7ba6f27f2f8dee82fdf4c490db7567f4f5f519e74a3465573434f68d5bfa92e38bf9fe1f936c815139a26bdc5f853c2700 SHA512 1f79c2c62ac1104347e14301e0ea52bce8f1f7df8a995a324349accbae099f1bf90542f829b2dc31f41c42b01cd526e0436554891503ff51da216109c1d08fe5
|
||||||
DIST mongodb-6.0.15.gh.tar.gz 91274369 BLAKE2B 2d3b2fc38bf5c47079aac4ec07cec042e4cc22dcde8af58a9ff8f4f64595ab7f587fa6b902ab3c8ff320a167b0d0c803fa545577c7490009e28c89857edc74bd SHA512 d7dd289356b3d64b363660b8160851089dadb8f199bfa7ce2d2bd261ba5f74e821c93af9cc3c7f9553ee1905738ca9e69c1d795be9e237fcafc6a844a336d227
|
DIST mongodb-6.0.15.gh.tar.gz 91274369 BLAKE2B 2d3b2fc38bf5c47079aac4ec07cec042e4cc22dcde8af58a9ff8f4f64595ab7f587fa6b902ab3c8ff320a167b0d0c803fa545577c7490009e28c89857edc74bd SHA512 d7dd289356b3d64b363660b8160851089dadb8f199bfa7ce2d2bd261ba5f74e821c93af9cc3c7f9553ee1905738ca9e69c1d795be9e237fcafc6a844a336d227
|
||||||
|
@ -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:
|
|
@ -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>
|
|
@ -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"):
|
|
@ -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:])}'
|
|
||||||
],
|
|
||||||
),
|
|
@ -1,188 +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"
|
|
||||||
)
|
|
||||||
|
|
||||||
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"
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user