EDIT: Outdated as of 4.2.0. Left here for historical purposes only.
READ ME - aur/python2-scons is now required
The new dependency takes a while to compile, sorry.
extra/scons
was based on python2 until its new release 4 days ago, 3.1.0-2. Now, it's based on python3. Upstream's build process is incompatible with python3, explaining why the previously succeeding build now fails. The first failure you run into is the SyntaxError: invalid syntax
in SConstruct
, in comments below.
There's 2 ways forward: 1. Patch in python3 support. 2. Require aur/python2-scons.
I'm going with option #2. Upstream has had merge requests open for several years adding support for python3, and they don't seem to care about it, because no comments have been on it for a year and a half now. See https://github.com/mongodb/mongo/pull/1216 and https://github.com/mongodb/mongo/pull/1195
If it were just a few small changes, I'd consider patching it in. Looking through these pull requests, it's at least hundreds of lines, maybe thousands, they aren't approved by upstream, and they don't apply cleanly to current versions.
Pinned Comments
JstKddng commented on 2022-08-03 23:28 (UTC)
Binary builds are available:
https://software.opensuse.org//download.html?project=home%3Ajustkidding%3Aarch&package=mongodb
JstKddng commented on 2022-08-03 23:28 (UTC)
If you have a pre-sandybridge CPU or an ARMv8 sbc, you can use mongodb44
If you'd like to stay in the V5.0 branch, you can use mongodb50
JstKddng commented on 2022-08-03 23:25 (UTC)
The
mongo
utility will be removed in future releases. Switching tomongosh
is recommended.