Distributed document-oriented "NoSQL" database.
Mongo (from "humongous") is a high-performance, open source,
schema-free, document-oriented database. A common name in the
"NOSQL" community.
===> The following configuration options are available for mongodb50-5.0.31_1:
LTO=off: Use Link-Time Optimization
NOAVX=on: "Disable AVX instructions on amd64 (Sandybridge+)"
SASL=on: SASL authentication support
SSL=on: SSL protocol support
===> Use 'make config' to modify these settings
MongoDB on Rasperry Pi can work but is unsupported upstream.
Please read https://jira.mongodb.org/browse/SERVER-71772 if you run this on a non-LSE ARM cpu.
Reason:
MongoDB version 5.0 is End of Life starting October 2024.
Please make sure you are running MongoDB version 6.0 or higher.
In-place upgrades are supported from version 5.0 to 6.0.
For an in-place upgrade it is important that the
'featureCompatibilityVersion' is set to 5.0.
See: https://www.mongodb.com/docs/v6.0/release-notes/6.0-upgrade-standalone/#feature-compatibility-version
TL;DR, run these commands in mongodb50 before upgrading:
$ mongo --port <portnr>
> db.adminCommand( { setFeatureCompatibilityVersion: "5.0" } )
> exit
Affects: users of databases/mongodb50, databases/mongodb44 and databases/mongodb60
Author: ronald@FreeBSD.org
Reason:
MongoDB removed the settings 'fork' and 'pidFilePath' from the default
etc/mongodb.conf file.
This does not affect mongod started by etc/rc.d/mongod as the settings are
passed as arguments. Please verify custom uses of mongod.
port moved to databases/mongodb60 on 2025-07-31 REASON: Has expired: EOL from October 2024, see https://www.mongodb.com/legal/support-policy/lifecycles, please use databases/mongodb60
port moved here from databases/mongodb44 on 2024-08-04 REASON: Has expired: EOL as of February 2024, https://www.mongodb.com/legal/support-policy/lifecycles
port moved here from databases/mongodb49 on 2021-09-01 REASON: Has expired: This was a developer version which became MongoDB 5.0
databases/mongodb50: stick to <= llvm18 on FreeBSD 15
build is broken with llvm19
fixes:
[00:35:47] In file included from
src/third_party/mozjs-60/platform/aarch64/freebsd/build/Unified_cpp_js_src19.cpp:2:
[00:35:48] In file included from
src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.cpp:7:
[00:35:48] In file included from
src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler-inl.h:10:
[00:35:48] In file included from
src/third_party/mozjs-60/extract/js/src/jit/MacroAssembler.h:14:
[00:35:48] In file included from
src/third_party/mozjs-60/extract/js/src/vm/JSCompartment.h:22:
[00:35:48] In file included from
src/third_party/mozjs-60/extract/js/src/gc/Zone.h:18:
[00:35:48] In file included from
src/third_party/mozjs-60/extract/js/src/vm/Runtime.h:27:
[00:35:48] In file included from
src/third_party/mozjs-60/extract/js/src/frontend/NameCollections.h:13:
[00:35:48] In file included from
src/third_party/mozjs-60/extract/js/src/vm/Stack.h:23:
[00:35:48] In file included from
src/third_party/mozjs-60/extract/js/src/jit/JSJitFrameIter.h:15:
[00:35:48] In file included from
src/third_party/mozjs-60/extract/js/src/vm/JSFunction.h:17:
[00:35:48] In file included from
src/third_party/mozjs-60/extract/js/src/vm/JSScript.h:31:
[00:35:48] In file included from
src/third_party/mozjs-60/extract/js/src/vm/SharedImmutableStringsCache.h:21:
[00:35:48]
src/third_party/mozjs-60/extract/js/src/threading/ExclusiveData.h:124:33: error:
reference to non-static member function must be called
[00:35:48] 124 | : lock_(mozilla::Move(rhs.lock))
[00:35:48] | ~~~~^~~~
databases/mongodb50: deprecate, EOL from October 2024
See https://www.mongodb.com/legal/support-policy/lifecycles.
Please use databases/mongodb60.
There are no ports dependent upon this port.
See UPDATING for instructions on upgrading.
*/*: Add ${PY_SETUPTOOLS} to BUILD_DEPENDS
Fix build when setuptools is removed from RUN_DEPENDS in
Mk/Uses/python.mk.
PR: 270510
Approved by: portmgr (blanket)
databases/mongodb50: enable non-AVX CPUs by default
By popular demand as this port is used by net-mgmt/unifi8.
I couldn't find any information on the internet that the binary really
does something which requires AVX. For example this discussion:
https://github.com/turnkeylinux/tracker/issues/1724
PR: 277990
Requested by: glebius@
databases/mongodb50: fix build with llvm16/clang16
* BOOST_NO_CXX98_FUNCTION_BASE fixes:
In file included from src/third_party/boost/boost/functional/hash.hpp:6:
src/third_party/boost/boost/container_hash/hash.hpp:131:33: error: no template
named 'unary_function' in namespace 'std'; did you mean '__unary_function'?
struct hash_base : std::unary_function<T, std::size_t> {};
~~~~~^~~~~~~~~~~~~~
__unary_function
/usr/include/c++/v1/__functional/unary_function.h:46:1: note: '__unary_function'
declared here
using __unary_function = __unary_function_keep_layout_base<_Arg, _Result>;
^
* And "#if 1" fixes:
In file included from src/third_party/boost/boost/mpl/integral_c.hpp:32:
src/third_party/boost/boost/mpl/aux_/integral_wrapper.hpp:73:31: error:
integer value -1 is outside the valid range of values [0, 3] for the enumeration
type 'lock_access_mode' [-Wenum-constexpr-conversion]
typedef AUX_WRAPPER_INST( BOOST_MPL_AUX_STATIC_CAST(AUX_WRAPPER_VALUE_TYPE,
(value - 1)) ) prior;
PR: 272295
all: remove explicit versions in USES=python for "3.x+"
The logic in USES=python will automatically convert this to 3.8+ by
itself.
Adjust two ports that only had Python 3.7 mentioned but build fine
on Python 3.8 too.
finance/quickfix: mark BROKEN with PYTHON
libtool: compile: c++ -DHAVE_CONFIG_H -I. -I../.. -I -I. -I.. -I../.. -I../C++
-DLIBICONV_PLUG -DPYTHON_MAJOR_VERSION=3 -Wno-unused-variable
-Wno-maybe-uninitialized -O2 -pipe -DLIBICONV_PLUG -fstack-protector-strong
-fno-strict-aliasing -DLIBICONV_PLUG -Wall -ansi
-Wno-unused-command-line-argument -Wpointer-arith -Wwrite-strings
-Wno-overloaded-virtual -Wno-deprecated-declarations -Wno-deprecated -std=c++0x
-MT _quickfix_la-QuickfixPython.lo -MD -MP -MF
.deps/_quickfix_la-QuickfixPython.Tpo -c QuickfixPython.cpp -fPIC -DPIC -o
.libs/_quickfix_la-QuickfixPython.o
warning: unknown warning option '-Wno-maybe-uninitialized'; did you mean
'-Wno-uninitialized'? [-Wunknown-warning-option]
QuickfixPython.cpp:175:11: fatal error: 'Python.h' file not found
^~~~~~~~~~
1 warning and 1 error generated.
Reviewed by: portmgr, vishwin, yuri
Differential Revision: <https://reviews.freebsd.org/D40568>
databases/mongodb50: update to 5.0.16
changelog:
https://www.mongodb.com/docs/manual/release-notes/5.0/
Please read the release notes: Some past releases have critical issues.
Followed an upstream chagne in mongod.conf about removal of 2 settings. See
UPDATING.
databases/mongodb50: use in-source boost
Does not compile with new boost 1.81.0 from ports.
PR: 269024
Approved by: rene (mentor)
Differential Revision: https://reviews.freebsd.org/D38134
databases/mongodb50: optionally support pre-AVX CPUs
Upstream defaults to Sandybridge+ CPUs for amd64.
It is reported to still work with older CPUs.
No revision bump as the change does not impact the default build.
PR: 268510
Approved by: rene (mentor)
Differential Revision: https://reviews.freebsd.org/D37924
databases/mongodb50: update to 5.0.12
ChangeLog:
https://www.mongodb.com/docs/manual/release-notes/5.0/#5.0.12---sep-05--2022
* Add new implicitlyCreateIndex and enforceUniquenessCheck to shardCollection
command
* Add new enforceUniqueness to refineCollectionShardKey command
* Add addl. activation condition for
interruptBeforeProcessingPrePostImageOriginatingOp fail point
* A retry of _configSvrReshardCollection can succeed causing
resharding_coordinator_recovers_abort_decision.js to fail
* A retry of _shardsvrReshardCollection can cause DuplicateKey error
(resharding_nonblocking_coordinator_rebuild.js)
PR: 266293
Reported by: ronald-lists@klop.ws (maintainer)
Remove WWW entries moved into port Makefiles
Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.
This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.
Approved by: portmgr (tcberner)
Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.
Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.
There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above )
databases/mongodb50: Update to 5.0.9
ChangeLog: https://github.com/mongodb/mongo/releases/tag/r5.0.9
* Remove limits on number of LDAP connections per host
* Detect namespace changes when refreshing Collection after yielding
* Sharding an empty collection releases the critical section too early
* Mongos fails to attach RetryableWrite Error Label For Command Interrupted
In _parseCommand
* Fix search near returning wrong key/value sometimes when key doesn't exist
PR: 264341
Reported by: ulassayginim@gmail.com
MFH: 2022Q2 (many bugfixes)
Style: improve ONLY_FOR_ARCHS_REASON (grammar, markup, etc.)
ONLY_FOR_ARCHS_REASON is used as part of the sentence and thus should
start with lower-case letter and not end with a period which is added
by the framework, similar to other knobs like BROKEN, IGNORE, et al.
While here, remove needless quoting, add missing Oxford comma, expand
contractions and jargonisms, use correct spelling for proper names.
databases/mongodb50: Fix build failure with scons 4.2.0 by using in source scons
3.1.2
- Fix scons by using in source scons 3.1.2 (They are planning to move to Scons
4.2.0 in the future)
- Disable LTO on clang12/aarch64, bug #257765
- Build already installs in $STAGEDIR, so only strip in do-install.
- Fix a portlint warnings about the comment at the LICENSE section.
PR: 257925
databases/mongodb50: add port as repocopy of databases/mongodb49
PR: 255588
Reported by: Ronald Klop <ronald-lists@klop.ws>
Sponsored by: HAW International