Package Details: mongodb 8.0.4-1

Git Clone URL: https://aur.archlinux.org/mongodb.git (read-only, click to copy)
Package Base: mongodb
Description: A high-performance, open source, schema-free document-oriented database
Upstream URL: https://www.mongodb.com/
Keywords: database document-oriented nosql
Licenses: SSPL-1.0
Provides: mongodb
Submitter: felixonmars
Maintainer: siavoshkc
Last Packager: siavoshkc
Votes: 36
Popularity: 0.129113
First Submitted: 2019-01-18 22:08 (UTC)
Last Updated: 2025-03-31 21:53 (UTC)

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

Latest Comments

1 2 3 4 5 6 .. 16 Next › Last »

siavoshkc commented on 2025-03-30 19:12 (UTC)

Working on updating to r8.0.4

JstKddng commented on 2025-03-30 04:55 (UTC)

perhaps. I'm no longer using mongodb though so I'll disown, feel free to adopt the package

ZhangHua commented on 2025-03-30 00:46 (UTC)

I think there is no need to use bundled boost. AFAIK, there should only be an error at src/mongo/db/storage/backup_block.cpp. That's because boost removed change_extension. Simply following migration table at https://www.boost.org/doc/libs/1_87_0/libs/filesystem/doc/deprecated.html should be fine.

As for PCRE, @olwilliams's workaround does the trick, but I am not sure if it is correct either.

Patches to fix those problems can be found from my OBS repository here: https://build.opensuse.org/projects/home:ZhangHua/packages/mongodb/files/mongodb-7.0.16-boost-filesystem-change_extension-removed.patch?expand=1 https://build.opensuse.org/projects/home:ZhangHua/packages/mongodb/files/mongodb-7.0.16-ERROR_CONDITION_ATOMIC_ASSERTION_EXPECTED-removed.patch?expand=1

The PCRE fix is shamefully stolen from @olwilliams's comment here.

AlexBocken commented on 2025-03-03 05:59 (UTC)

Does not build in a clean chroot for me anymore. Also, are there plans to upgrade to v 8.0.0?

olwilliams commented on 2025-03-02 22:38 (UTC) (edited on 2025-03-02 22:39 (UTC) by olwilliams)

I got a compilation failure with mongodb 7.0.15, system PCRE2 10.45-1:

src/mongo/util/pcre.cpp:68:40: error: 'PCRE2_ERROR_CONDITION_ATOMIC_ASSERTION_EXPECTED' was not declared in this scope; did you mean 'PCRE2_ERROR_CONDITION_ASSERTION_EXPECTED'?
   68 | #define X_(name) std::pair{Errc::name, PCRE2_##name},
      |                                        ^~~~~~
src/mongo/util/pcre.h:158:5: note: in expansion of macro 'X_'
  158 |     X(ERROR_CONDITION_ATOMIC_ASSERTION_EXPECTED) \
      |     ^
src/mongo/util/pcre.cpp:69:31: note: in expansion of macro 'MONGO_PCRE_ERROR_EXPAND_TABLE_'
   69 | constexpr std::array errTable{MONGO_PCRE_ERROR_EXPAND_TABLE_(X_)};
      |                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
scons:src/mongo/util/pcre.cpp:68:40: error: 'PCRE2_ERROR_CONDITION_ATOMIC_ASSERTION_EXPECTED' was not declared in this scope; did you mean 'PCRE2_ERROR_CONDITION_ASSERTION_EXPECTED'?
   68 | #define X_(name) std::pair{Errc::name, PCRE2_##name},
      |                                        ^~~~~~
src/mongo/util/pcre.h:158:5: note: in expansion of macro 'X_'
  158 |     X(ERROR_CONDITION_ATOMIC_ASSERTION_EXPECTED) \
      |     ^
src/mongo/util/pcre.cpp:69:31: note: in expansion of macro 'MONGO_PCRE_ERROR_EXPAND_TABLE_'
   69 | constexpr std::array errTable{MONGO_PCRE_ERROR_EXPAND_TABLE_(X_)};
      |                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
scons: *** [build/opt/mongo/util/pcre.o] Error 1

It looks like at some point PCRE2 removed the PCRE2_ERROR_CONDITION_ATOMIC_ASSERTION_EXPECTED error code. I got it to build by just removing that line:

diff -u -r a/src/mongo/util/pcre.h b/src/mongo/util/pcre.h
--- a/src/mongo/util/pcre.h       2025-03-02 16:46:18.443355487 -0500
+++ b/src/mongo/util/pcre.h       2025-03-02 16:46:59.651708274 -0500
@@ -155,7 +155,7 @@
     X(ERROR_ALPHA_ASSERTION_UNKNOWN)             \
     X(ERROR_SCRIPT_RUN_NOT_AVAILABLE)            \
     X(ERROR_TOO_MANY_CAPTURES)                   \
-    X(ERROR_CONDITION_ATOMIC_ASSERTION_EXPECTED) \
+    /*X(ERROR_CONDITION_ATOMIC_ASSERTION_EXPECTED)*/ \
     X(ERROR_BACKSLASH_K_IN_LOOKAROUND)           \
     X(ERROR_NOMATCH)                             \
     X(ERROR_PARTIAL)                             \

I don't know enough Mongo or PCRE2 to say if that's actually a reasonable fix or not; I was installing this as a prerequisite for the unifi package, and it seemed to start up fine.

pohl7589 commented on 2024-10-12 08:58 (UTC) (edited on 2024-10-12 09:12 (UTC) by pohl7589)

mongodb 7.0.14 fails to build in a clean aarch64 chroot.

Checking that the C++ compiler can link a C++ program... no
C++ compiler g++ can't link C++ programs

The config.log shows the linker cannot link a hello world program:

scons: Configure: Checking that the C++ compiler can link a C++ program...
build/scons/opt/sconf_temp/conftest_ac30bfea77045c1c67c4f51773b51414_0.cpp <-
  |
  |#include <iostream>
  |#include <cstdlib>
  |
  |int main() {
  |    std::cout << "Hello, World" << std::endl;
  |    return EXIT_SUCCESS;
  |}
  |
g++ -o build/scons/opt/sconf_temp/conftest_ac30bfea77045c1c67c4f51773b51414_0.o -c -Woverloaded-virtual -march=armv8-a -O2 -pipe -fstack-protector-strong -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wp,-D_GLIBCXX_ASSERTIONS -Werror -ffp-contract=off -fasynchronous-unwind-tables -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -fno-omit-frame-pointer -fno-strict-aliasing -O2 -mtune=generic -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE build/scons/opt/sconf_temp/conftest_ac30bfea77045c1c67c4f51773b51414_0.cpp
g++ -o build/scons/opt/sconf_temp/conftest_ac30bfea77045c1c67c4f51773b51414_0_5d3fee522b232c2fb8a6072c881f85cf -Wl,--fatal-warnings -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,-z,pack-relative-relocs -pthread -Wl,-z,now -rdynamic build/scons/opt/sconf_temp/conftest_ac30bfea77045c1c67c4f51773b51414_0.o -lm -lresolv
/usr/bin/ld: warning: -z pack-relative-relocs ignored
collect2: error: ld returned 1 exit status
scons: Configure: no

It seems due to -Wl,--fatal-warnings being enabled the warning about -z pack-relative-relocs is treated as an error. In /etc/makepkg.conf I removed the LDFLAG -z pack-relative-relocs and now it compiles.

JstKddng commented on 2024-09-24 02:55 (UTC)

I'll upgrade to 7.0.14 in the meantime, 8.0.0 will need more patches it seems

JstKddng commented on 2024-09-24 01:02 (UTC)

indeed, I'm on the process of pushing mongodb 8.0

samvv commented on 2024-09-21 18:20 (UTC) (edited on 2024-09-21 18:22 (UTC) by samvv)

mongodb-7.0.12-1 failed to build as a dependency of the unifi AUR package. I suspect the boost version is too new.

Compiling build/opt/mongo/shell/shell_utils_launcher.o
In file included from src/mongo/shell/shell_utils_launcher.cpp:30:
src/mongo/shell/shell_utils_launcher.h:32:10: fatal error: boost/filesystem/convenience.hpp: No such file or directory
   32 | #include <boost/filesystem/convenience.hpp>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

In previous invocations I also got something about a missing boost::filesystem::is_regular_file.