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.095056
First Submitted: 2019-01-18 22:08 (UTC)
Last Updated: 2025-03-31 21:53 (UTC)

Sources (8)

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

« First ‹ Previous 1 .. 7 8 9 10 11 12 13 14 15 16 Next › Last »

jokke commented on 2019-08-12 15:46 (UTC) (edited on 2019-08-12 15:50 (UTC) by jokke)

This would probably already do the trick. Haven't tried yet though

diff --git a/.SRCINFO b/.SRCINFO
index 4226b0e..4efcc77 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -0,0 +1,2 @@
+# Generated by mksrcinfo v8
+# Mon Aug 12 15:45:30 UTC 2019
@@ -4 +6 @@ pkgbase = mongodb
-   pkgrel = 1
+   pkgrel = 2
diff --git a/PKGBUILD b/PKGBUILD
index f88d835..3731d15 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -13 +13 @@ pkgver=4.0.12
-pkgrel=1
+pkgrel=2
@@ -79 +79 @@ build() {
-  scons core "${_scons_args[@]}"
+  scons2 core "${_scons_args[@]}"
@@ -87 +87 @@ check() {
-  scons unittests "${_scons_args[@]}"
+  scons2 unittests "${_scons_args[@]}"
@@ -105 +105 @@ check() {
-  scons dbtest "${_scons_args[@]}"
+  scons2 dbtest "${_scons_args[@]}"
@@ -108 +108 @@ check() {
-  scons integration_tests "${_scons_args[@]}"
+  scons2 integration_tests "${_scons_args[@]}"
@@ -115 +115 @@ package() {
-  scons install --prefix="${pkgdir}/usr" "${_scons_args[@]}"
+  scons2 install --prefix="${pkgdir}/usr" "${_scons_args[@]}"

jokke commented on 2019-08-11 10:57 (UTC)

Still fails to build after python2-scons changed the names of the binaries to include the suffix "2". e.g. scons2. See the PKGBUILD of python2-scons for more info.

jamespharvey20 commented on 2019-08-10 02:46 (UTC) (edited on 2019-08-21 22:41 (UTC) by jamespharvey20)

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.

yavorski commented on 2019-08-09 14:09 (UTC)

==> Starting build()...
scons: Reading SConscript files ...
  File "/home/lambda/dev/aur/mongodb/src/mongodb-src-r4.0.11/SConstruct", line 909

    print( "python version: " + " ".join( [ `i` for i in sys.version_info ] ) )

                                            ^

SyntaxError: invalid syntax

==> ERROR: A failure occurred in build().
    Aborting...

gazro commented on 2019-08-09 13:29 (UTC)

line 909

print( "python version: " + " ".join( [ `i` for i in sys.version_info ] ) )

                                        ^

SyntaxError: invalid syntax

==> ERROR: A failure occurred in build(). Aborting...

gonciarz commented on 2019-08-08 11:11 (UTC)

I cannot build a package. Those are logs: ==> Making package: mongodb 4.0.11-1 (Thu 08 Aug 2019 13:06:49 CEST) ==> Checking runtime dependencies... ==> Checking buildtime dependencies... ==> WARNING: Using existing $srcdir/ tree ==> Starting build()... scons: Reading SConscript files ... File "/home/rob/.cache/yay/mongodb/src/mongodb-src-r4.0.11/SConstruct", line 909

print( "python version: " + " ".join( [ `i` for i in sys.version_info ] ) )

                                        ^

SyntaxError: invalid syntax

jokke commented on 2019-08-07 22:10 (UTC)

Fails to build:

scons: Reading SConscript files ...
  File "/build/mongodb/src/mongodb-src-r4.0.11/SConstruct", line 909

    print( "python version: " + " ".join( [ `i` for i in sys.version_info ] ) )

                                            ^

SyntaxError: invalid syntax

yaron commented on 2019-05-22 11:47 (UTC)

RequestsDependencyWarning: urllib3 (1.25.2) or chardet (3.0.4) doesn't match a supported version!

Failed :(

jamespharvey20 commented on 2019-03-30 23:45 (UTC)

Please keep all comments on this package about mongodb only, not the mongodb-bin variant or upstream tarballs. Questions specifically about those need to go elsewhere, like on the mongodb-bin package.

I'm having a bit of a hard time following the last 3 comments, in part because I can't see the original non-edited question. But, I think other than build diskspace usage, that all other discussion was really regarding upstream's tarballs and the mongodb-bin package. In case I'm wrong, please let me know. This mongodb package should build and install /usr/share/man/man1/mongo{d,s}.1.gz. If it doesn't, please say how you're building it. I'm using devtools.

Regarding why this needs 180GB of diskspace, that's only to build it, not install it. As for why, you'd want to ask upstream. There's been a thread discussing this here: https://groups.google.com/forum/#!searchin/mongodb-user/space%7Csort:date/mongodb-user/cHMbYPyD6f0/2dhGXqxsBwAJ

The majority of the time and space usage is in check(). They appear to be using an awful lot of data during their tests. If you don't run these tests, on my 32 Xeon cores, it finishes in 15 minutes instead of 60, and uses 10GB of diskspace instead of 165GB. I can't advocate skipping the tests, but I will note that if you install mongodb-bin, you're only getting testing on upstream's machine with its dependencies, not yours. So, maybe skipping the tests here is the same thing, since I always run them before pushing an updated version. But, I still recommend running them, as it's a database and integrity is paramount.

fkl commented on 2019-03-28 12:47 (UTC) (edited on 2019-03-28 12:48 (UTC) by fkl)

[Original Message Timestamp: 2019-03-28 07:39] I failed to build this thing because of the disk space requirement. Before I take another stab at trying to build, does this AUR package or https://aur.archlinux.org/packages/mongodb-bin/ come with (i.e. installs) the manpages? I had no issues with installing the community server (mongodb-linux-x86_64-4.0.7.tgz) but this tarball does not ship with manpages.

Can someone briefly explain why this thing needs 180GB of diskspace?

Note: the [X] "Delete comment" deletes w/o asking for confirmation. The webmaster needs to fix this feature.