Skip to content

mongodb: 3.4.10 -> 4.0.12 - #40082

Merged
Ma27 merged 9 commits into
NixOS:masterfrom
jarjee:update/mongodb
Mar 26, 2020
Merged

Ma27 merged 9 commits into
NixOS:masterfrom
jarjee:update/mongodb

Conversation

@jarjee

@jarjee jarjee commented May 7, 2018 •

Copy link
Copy Markdown
Motivation for this change

Bringing the mongodb server up to the latest stable release. Also had some odd issues with the JS interpreter when using "load()", which seems to be fixed in this version.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

@GrahamcOfBorg GrahamcOfBorg added 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. labels May 7, 2018
@jarjee

jarjee commented May 9, 2018

Copy link
Copy Markdown
Author

@obadz

obadz commented May 12, 2018

Copy link
Copy Markdown
Contributor

@GrahamcOfBorg build mongodb

@GrahamcOfBorg

Copy link
Copy Markdown

Failure on x86_64-darwin (full log)

Attempted: mongodb

Partial log (click to expand)

clang++ -o build/nixos/mongo/s/client/shard_remote.o -c -Woverloaded-virtual -Werror=unused-result -Wpessimizing-move -Wredundant-move -Wno-undefined-var-template -Wno-instantiation-after-specialization -std=c++14 -I/nix/store/wrpcwr7k2x6r0s5xc1svvpsha0cclxjk-cyrus-sasl-2.1.26-bin/include -I/nix/store/bdy0cs6ldrhaqsad7jk0bj5idyb2mh1r-boost-1.60.0/include -I/nix/store/95a2p304va03m7kvj88npmdm8z9qfin2-gperftools-2.6.3/include -I/nix/store/9824k2gmknqp3k4nlcaqpf2pkshva501-pcre-cpp-8.41-bin/include -I/nix/store/qwg3hxrmqk1dcb58l7pnzvr73s9zy7xd-snappy-1.1.7/include -I/nix/store/553hwxk54h8z87m4xgga4n8dznd6n8vp-zlib-1.2.11/include -I/nix/store/sz3q1fs0nvh8x4vnql6js83svi7h0976-libyaml-cpp-0.6.2/include -I/nix/store/wrpcwr7k2x6r0s5xc1svvpsha0cclxjk-cyrus-sasl-2.1.26-bin/include -I/nix/store/pf16lx06p07zklkdra52p7b5akpd35qj-openssl-1.0.2o-dev/include -I/nix/store/29dslwbdcj62xbip0skfl6hi196jwwii-openssl-1.0.2o/include -I/nix/store/nzp6p9gnyr0764l9w6hp38hvjsndm150-libpcap-1.8.1/include -I/nix/store/n05amix531ayklpwwdrgwlrm7hb2p6z9-python-2.7.14-env/include -I/nix/store/95vh5vrfi7a0cdggl7r5wz29acz11wf5-apple-framework-Security/include -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-unused-private-field -Wno-deprecated-declarations -Wno-tautological-constant-out-of-range-compare -Wno-unused-const-variable -Wno-missing-braces -Wno-inconsistent-missing-override -Wno-potentially-evaluated-expression -Wno-unused-lambda-capture -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -DNDEBUG -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/nixos -Isrc src/mongo/s/client/shard_remote.cpp
clang++ -o build/nixos/mongo/s/client/version_manager.o -c -Woverloaded-virtual -Werror=unused-result -Wpessimizing-move -Wredundant-move -Wno-undefined-var-template -Wno-instantiation-after-specialization -std=c++14 -I/nix/store/wrpcwr7k2x6r0s5xc1svvpsha0cclxjk-cyrus-sasl-2.1.26-bin/include -I/nix/store/bdy0cs6ldrhaqsad7jk0bj5idyb2mh1r-boost-1.60.0/include -I/nix/store/95a2p304va03m7kvj88npmdm8z9qfin2-gperftools-2.6.3/include -I/nix/store/9824k2gmknqp3k4nlcaqpf2pkshva501-pcre-cpp-8.41-bin/include -I/nix/store/qwg3hxrmqk1dcb58l7pnzvr73s9zy7xd-snappy-1.1.7/include -I/nix/store/553hwxk54h8z87m4xgga4n8dznd6n8vp-zlib-1.2.11/include -I/nix/store/sz3q1fs0nvh8x4vnql6js83svi7h0976-libyaml-cpp-0.6.2/include -I/nix/store/wrpcwr7k2x6r0s5xc1svvpsha0cclxjk-cyrus-sasl-2.1.26-bin/include -I/nix/store/pf16lx06p07zklkdra52p7b5akpd35qj-openssl-1.0.2o-dev/include -I/nix/store/29dslwbdcj62xbip0skfl6hi196jwwii-openssl-1.0.2o/include -I/nix/store/nzp6p9gnyr0764l9w6hp38hvjsndm150-libpcap-1.8.1/include -I/nix/store/n05amix531ayklpwwdrgwlrm7hb2p6z9-python-2.7.14-env/include -I/nix/store/95vh5vrfi7a0cdggl7r5wz29acz11wf5-apple-framework-Security/include -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-unused-private-field -Wno-deprecated-declarations -Wno-tautological-constant-out-of-range-compare -Wno-unused-const-variable -Wno-missing-braces -Wno-inconsistent-missing-override -Wno-potentially-evaluated-expression -Wno-unused-lambda-capture -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -DNDEBUG -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/nixos -Isrc src/mongo/s/client/version_manager.cpp
clang++ -o build/nixos/mongo/db/startup_warnings_common.o -c -Woverloaded-virtual -Werror=unused-result -Wpessimizing-move -Wredundant-move -Wno-undefined-var-template -Wno-instantiation-after-specialization -std=c++14 -I/nix/store/wrpcwr7k2x6r0s5xc1svvpsha0cclxjk-cyrus-sasl-2.1.26-bin/include -I/nix/store/bdy0cs6ldrhaqsad7jk0bj5idyb2mh1r-boost-1.60.0/include -I/nix/store/95a2p304va03m7kvj88npmdm8z9qfin2-gperftools-2.6.3/include -I/nix/store/9824k2gmknqp3k4nlcaqpf2pkshva501-pcre-cpp-8.41-bin/include -I/nix/store/qwg3hxrmqk1dcb58l7pnzvr73s9zy7xd-snappy-1.1.7/include -I/nix/store/553hwxk54h8z87m4xgga4n8dznd6n8vp-zlib-1.2.11/include -I/nix/store/sz3q1fs0nvh8x4vnql6js83svi7h0976-libyaml-cpp-0.6.2/include -I/nix/store/wrpcwr7k2x6r0s5xc1svvpsha0cclxjk-cyrus-sasl-2.1.26-bin/include -I/nix/store/pf16lx06p07zklkdra52p7b5akpd35qj-openssl-1.0.2o-dev/include -I/nix/store/29dslwbdcj62xbip0skfl6hi196jwwii-openssl-1.0.2o/include -I/nix/store/nzp6p9gnyr0764l9w6hp38hvjsndm150-libpcap-1.8.1/include -I/nix/store/n05amix531ayklpwwdrgwlrm7hb2p6z9-python-2.7.14-env/include -I/nix/store/95vh5vrfi7a0cdggl7r5wz29acz11wf5-apple-framework-Security/include -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-unused-private-field -Wno-deprecated-declarations -Wno-tautological-constant-out-of-range-compare -Wno-unused-const-variable -Wno-missing-braces -Wno-inconsistent-missing-override -Wno-potentially-evaluated-expression -Wno-unused-lambda-capture -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -DNDEBUG -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/nixos -Isrc src/mongo/db/startup_warnings_common.cpp
libtool -static -o build/nixos/mongo/db/libstartup_warnings_common.a -s -no_warning_for_no_symbols build/nixos/mongo/db/startup_warnings_common.o
sh: libtool: command not found
scons: *** [build/nixos/mongo/db/libstartup_warnings_common.a] Error 127
scons: building terminated because of errors.
build/nixos/mongo/db/libstartup_warnings_common.a failed: Error 127
builder for '/nix/store/5yxbq91zjhp7nmky38a8brcp3sa9sq6y-mongodb-3.6.4.drv' failed with exit code 2
�[31;1merror:�[0m build of '/nix/store/5yxbq91zjhp7nmky38a8brcp3sa9sq6y-mongodb-3.6.4.drv' failed

@GrahamcOfBorg

Copy link
Copy Markdown

Failure on aarch64-linux (full log)

Attempted: mongodb

Partial log (click to expand)

build/nixos/mongo/db/commands/authentication_commands.o failed: Error 4
build/nixos/mongo/db/commands/parameters.o failed: Error 4
build/nixos/mongo/db/commands/fail_point_cmd.o failed: Error 4
build/nixos/mongo/db/commands/find_and_modify_common.o failed: Error 4
build/nixos/mongo/s/mongos_options.o failed: Error 4
build/nixos/mongo/db/commands/hashcmd.o failed: Error 4
build/nixos/mongo/db/commands/isself.o failed: Error 4
build/nixos/mongo/db/commands/conn_pool_sync.o failed: Error 4
builder for '/nix/store/h1brhkx7knhd0mp33mm9fczzhhyhj3yp-mongodb-3.6.4.drv' failed with exit code 2
�[31;1merror:�[0m build of '/nix/store/h1brhkx7knhd0mp33mm9fczzhhyhj3yp-mongodb-3.6.4.drv' failed

@GrahamcOfBorg

Copy link
Copy Markdown

Success on x86_64-linux (full log)

Attempted: mongodb

Partial log (click to expand)

shrinking RPATHs of ELF executables and libraries in /nix/store/9qq8y8vv5vbblllbvgv2bngzmd1qxq4m-mongodb-3.6.4
shrinking /nix/store/9qq8y8vv5vbblllbvgv2bngzmd1qxq4m-mongodb-3.6.4/bin/mongo
shrinking /nix/store/9qq8y8vv5vbblllbvgv2bngzmd1qxq4m-mongodb-3.6.4/bin/mongod
shrinking /nix/store/9qq8y8vv5vbblllbvgv2bngzmd1qxq4m-mongodb-3.6.4/bin/mongos
shrinking /nix/store/9qq8y8vv5vbblllbvgv2bngzmd1qxq4m-mongodb-3.6.4/bin/mongoperf
strip is /nix/store/j75dgadrff2d1fyc4fczmcgqkid2imdx-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/9qq8y8vv5vbblllbvgv2bngzmd1qxq4m-mongodb-3.6.4/lib  /nix/store/9qq8y8vv5vbblllbvgv2bngzmd1qxq4m-mongodb-3.6.4/bin
patching script interpreter paths in /nix/store/9qq8y8vv5vbblllbvgv2bngzmd1qxq4m-mongodb-3.6.4
checking for references to /build in /nix/store/9qq8y8vv5vbblllbvgv2bngzmd1qxq4m-mongodb-3.6.4...
/nix/store/9qq8y8vv5vbblllbvgv2bngzmd1qxq4m-mongodb-3.6.4

@obadz obadz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs darwin fix

@obadz obadz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also needs aarch64 to be marked broken (or fixed)

@jarjee

jarjee commented May 17, 2018

Copy link
Copy Markdown
Author

I don't have access to a mac to test with, but adding libtools should do it.

@jarjee

jarjee commented May 17, 2018

Copy link
Copy Markdown
Author

@GrahamcOfBorg build mongodb

1 similar comment
@obadz

obadz commented May 17, 2018

Copy link
Copy Markdown
Contributor

@GrahamcOfBorg build mongodb

@GrahamcOfBorg

Copy link
Copy Markdown

No attempt on aarch64-linux (full log)

The following builds were skipped because they don't evaluate on aarch64-linux: mongodb

Partial log (click to expand)


a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowBroken = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowBroken = true; }
to ~/.config/nixpkgs/config.nix.


@GrahamcOfBorg

Copy link
Copy Markdown

Failure on x86_64-darwin (full log)

Attempted: mongodb

Partial log (click to expand)

clang++ -o build/nixos/mongo/db/cloner.o -c -Woverloaded-virtual -Werror=unused-result -Wpessimizing-move -Wredundant-move -Wno-undefined-var-template -Wno-instantiation-after-specialization -std=c++14 -I/nix/store/wrpcwr7k2x6r0s5xc1svvpsha0cclxjk-cyrus-sasl-2.1.26-bin/include -I/nix/store/bdy0cs6ldrhaqsad7jk0bj5idyb2mh1r-boost-1.60.0/include -I/nix/store/95a2p304va03m7kvj88npmdm8z9qfin2-gperftools-2.6.3/include -I/nix/store/9824k2gmknqp3k4nlcaqpf2pkshva501-pcre-cpp-8.41-bin/include -I/nix/store/qwg3hxrmqk1dcb58l7pnzvr73s9zy7xd-snappy-1.1.7/include -I/nix/store/553hwxk54h8z87m4xgga4n8dznd6n8vp-zlib-1.2.11/include -I/nix/store/sz3q1fs0nvh8x4vnql6js83svi7h0976-libyaml-cpp-0.6.2/include -I/nix/store/wrpcwr7k2x6r0s5xc1svvpsha0cclxjk-cyrus-sasl-2.1.26-bin/include -I/nix/store/pf16lx06p07zklkdra52p7b5akpd35qj-openssl-1.0.2o-dev/include -I/nix/store/29dslwbdcj62xbip0skfl6hi196jwwii-openssl-1.0.2o/include -I/nix/store/nzp6p9gnyr0764l9w6hp38hvjsndm150-libpcap-1.8.1/include -I/nix/store/n05amix531ayklpwwdrgwlrm7hb2p6z9-python-2.7.14-env/include -I/nix/store/95vh5vrfi7a0cdggl7r5wz29acz11wf5-apple-framework-Security/include -I/nix/store/a4iyj890mzb1n1zd5cyxgyd3b9z3gqrk-libtool-2.4.6/include -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-unused-private-field -Wno-deprecated-declarations -Wno-tautological-constant-out-of-range-compare -Wno-unused-const-variable -Wno-missing-braces -Wno-inconsistent-missing-override -Wno-potentially-evaluated-expression -Wno-unused-lambda-capture -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -DNDEBUG -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/nixos -Isrc src/mongo/db/cloner.cpp
libtool -static -o build/nixos/mongo/db/bson/libdotted_path_support.a -s -no_warning_for_no_symbols build/nixos/mongo/db/bson/dotted_path_support.o
Usage: /nix/store/a4iyj890mzb1n1zd5cyxgyd3b9z3gqrk-libtool-2.4.6/bin/libtool [OPTION]... [MODE-ARG]...
Try 'libtool --help' for more information.
libtool:   error: unrecognised option: '-static'
scons: *** [build/nixos/mongo/db/bson/libdotted_path_support.a] Error 1
scons: building terminated because of errors.
build/nixos/mongo/db/bson/libdotted_path_support.a failed: Error 1
builder for '/nix/store/s412p7bdjj0zjrnsc58jbdf4pcgf9sf8-mongodb-3.6.4.drv' failed with exit code 2
error: build of '/nix/store/s412p7bdjj0zjrnsc58jbdf4pcgf9sf8-mongodb-3.6.4.drv' failed

@GrahamcOfBorg

Copy link
Copy Markdown

Failure on x86_64-linux (full log)

Attempted: mongodb

Partial log (click to expand)

g++ -o build/nixos/mongo/db/s/config/configsvr_create_database_command.o -c -Woverloaded-virtual -Wno-maybe-uninitialized -std=c++14 -I/nix/store/mhrn4ygm88n8x4kb1myrnff41x690r2a-cyrus-sasl-2.1.26-bin/include -I/nix/store/jxcxnmvvh6lmwlrgql44fpxlrvnknzbf-boost-1.60.0/include -I/nix/store/kqlavdmnqhnd9pnviwhji8762gfkhf1d-gperftools-2.6.3/include -I/nix/store/za04kj9q5m08bh946x96y6cip1kchn9c-pcre-cpp-8.41-bin/include -I/nix/store/grffx916ray3d411wf9czx2y127jac6g-snappy-1.1.7/include -I/nix/store/vj9716h62y21a2hv18al8zvhlqpl30sx-zlib-1.2.11/include -I/nix/store/c85m7cxs10m0rfrqywdr4dly8dnp2gmm-libyaml-cpp-0.6.2/include -I/nix/store/mhrn4ygm88n8x4kb1myrnff41x690r2a-cyrus-sasl-2.1.26-bin/include -I/nix/store/vp2imwdhvqfi2l2d39zqhqz7y56aw2kl-openssl-1.0.2o-dev/include -I/nix/store/qahj8wb88rfs00l9xmjg74m6c52lnxiy-openssl-1.0.2o/include -I/nix/store/hy5jf061b9wxws6wijn2qjcraa569w0l-libpcap-1.8.1/include -I/nix/store/8k3xn58nw9b72hfnrnvjb03v3njx8akq-python-2.7.14-env/include -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/nixos -Isrc src/mongo/db/s/config/configsvr_create_database_command.cpp
g++ -o build/nixos/mongo/db/s/merge_chunks_command.o -c -Woverloaded-virtual -Wno-maybe-uninitialized -std=c++14 -I/nix/store/mhrn4ygm88n8x4kb1myrnff41x690r2a-cyrus-sasl-2.1.26-bin/include -I/nix/store/jxcxnmvvh6lmwlrgql44fpxlrvnknzbf-boost-1.60.0/include -I/nix/store/kqlavdmnqhnd9pnviwhji8762gfkhf1d-gperftools-2.6.3/include -I/nix/store/za04kj9q5m08bh946x96y6cip1kchn9c-pcre-cpp-8.41-bin/include -I/nix/store/grffx916ray3d411wf9czx2y127jac6g-snappy-1.1.7/include -I/nix/store/vj9716h62y21a2hv18al8zvhlqpl30sx-zlib-1.2.11/include -I/nix/store/c85m7cxs10m0rfrqywdr4dly8dnp2gmm-libyaml-cpp-0.6.2/include -I/nix/store/mhrn4ygm88n8x4kb1myrnff41x690r2a-cyrus-sasl-2.1.26-bin/include -I/nix/store/vp2imwdhvqfi2l2d39zqhqz7y56aw2kl-openssl-1.0.2o-dev/include -I/nix/store/qahj8wb88rfs00l9xmjg74m6c52lnxiy-openssl-1.0.2o/include -I/nix/store/hy5jf061b9wxws6wijn2qjcraa569w0l-libpcap-1.8.1/include -I/nix/store/8k3xn58nw9b72hfnrnvjb03v3njx8akq-python-2.7.14-env/include -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/nixos -Isrc src/mongo/db/s/merge_chunks_command.cpp
g++ -o build/nixos/mongo/db/s/set_shard_version_command.o -c -Woverloaded-virtual -Wno-maybe-uninitialized -std=c++14 -I/nix/store/mhrn4ygm88n8x4kb1myrnff41x690r2a-cyrus-sasl-2.1.26-bin/include -I/nix/store/jxcxnmvvh6lmwlrgql44fpxlrvnknzbf-boost-1.60.0/include -I/nix/store/kqlavdmnqhnd9pnviwhji8762gfkhf1d-gperftools-2.6.3/include -I/nix/store/za04kj9q5m08bh946x96y6cip1kchn9c-pcre-cpp-8.41-bin/include -I/nix/store/grffx916ray3d411wf9czx2y127jac6g-snappy-1.1.7/include -I/nix/store/vj9716h62y21a2hv18al8zvhlqpl30sx-zlib-1.2.11/include -I/nix/store/c85m7cxs10m0rfrqywdr4dly8dnp2gmm-libyaml-cpp-0.6.2/include -I/nix/store/mhrn4ygm88n8x4kb1myrnff41x690r2a-cyrus-sasl-2.1.26-bin/include -I/nix/store/vp2imwdhvqfi2l2d39zqhqz7y56aw2kl-openssl-1.0.2o-dev/include -I/nix/store/qahj8wb88rfs00l9xmjg74m6c52lnxiy-openssl-1.0.2o/include -I/nix/store/hy5jf061b9wxws6wijn2qjcraa569w0l-libpcap-1.8.1/include -I/nix/store/8k3xn58nw9b72hfnrnvjb03v3njx8akq-python-2.7.14-env/include -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/nixos -Isrc src/mongo/db/s/set_shard_version_command.cpp
g++ -o build/nixos/mongo/db/s/config/configsvr_split_chunk_command.o -c -Woverloaded-virtual -Wno-maybe-uninitialized -std=c++14 -I/nix/store/mhrn4ygm88n8x4kb1myrnff41x690r2a-cyrus-sasl-2.1.26-bin/include -I/nix/store/jxcxnmvvh6lmwlrgql44fpxlrvnknzbf-boost-1.60.0/include -I/nix/store/kqlavdmnqhnd9pnviwhji8762gfkhf1d-gperftools-2.6.3/include -I/nix/store/za04kj9q5m08bh946x96y6cip1kchn9c-pcre-cpp-8.41-bin/include -I/nix/store/grffx916ray3d411wf9czx2y127jac6g-snappy-1.1.7/include -I/nix/store/vj9716h62y21a2hv18al8zvhlqpl30sx-zlib-1.2.11/include -I/nix/store/c85m7cxs10m0rfrqywdr4dly8dnp2gmm-libyaml-cpp-0.6.2/include -I/nix/store/mhrn4ygm88n8x4kb1myrnff41x690r2a-cyrus-sasl-2.1.26-bin/include -I/nix/store/vp2imwdhvqfi2l2d39zqhqz7y56aw2kl-openssl-1.0.2o-dev/include -I/nix/store/qahj8wb88rfs00l9xmjg74m6c52lnxiy-openssl-1.0.2o/include -I/nix/store/hy5jf061b9wxws6wijn2qjcraa569w0l-libpcap-1.8.1/include -I/nix/store/8k3xn58nw9b72hfnrnvjb03v3njx8akq-python-2.7.14-env/include -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/nixos -Isrc src/mongo/db/s/config/configsvr_split_chunk_command.cpp
g++ -o build/nixos/mongo/db/s/check_sharding_index_command.o -c -Woverloaded-virtual -Wno-maybe-uninitialized -std=c++14 -I/nix/store/mhrn4ygm88n8x4kb1myrnff41x690r2a-cyrus-sasl-2.1.26-bin/include -I/nix/store/jxcxnmvvh6lmwlrgql44fpxlrvnknzbf-boost-1.60.0/include -I/nix/store/kqlavdmnqhnd9pnviwhji8762gfkhf1d-gperftools-2.6.3/include -I/nix/store/za04kj9q5m08bh946x96y6cip1kchn9c-pcre-cpp-8.41-bin/include -I/nix/store/grffx916ray3d411wf9czx2y127jac6g-snappy-1.1.7/include -I/nix/store/vj9716h62y21a2hv18al8zvhlqpl30sx-zlib-1.2.11/include -I/nix/store/c85m7cxs10m0rfrqywdr4dly8dnp2gmm-libyaml-cpp-0.6.2/include -I/nix/store/mhrn4ygm88n8x4kb1myrnff41x690r2a-cyrus-sasl-2.1.26-bin/include -I/nix/store/vp2imwdhvqfi2l2d39zqhqz7y56aw2kl-openssl-1.0.2o-dev/include -I/nix/store/qahj8wb88rfs00l9xmjg74m6c52lnxiy-openssl-1.0.2o/include -I/nix/store/hy5jf061b9wxws6wijn2qjcraa569w0l-libpcap-1.8.1/include -I/nix/store/8k3xn58nw9b72hfnrnvjb03v3njx8akq-python-2.7.14-env/include -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/nixos -Isrc src/mongo/db/s/check_sharding_index_command.cpp
g++ -o build/nixos/mongo/db/s/get_shard_version_command.o -c -Woverloaded-virtual -Wno-maybe-uninitialized -std=c++14 -I/nix/store/mhrn4ygm88n8x4kb1myrnff41x690r2a-cyrus-sasl-2.1.26-bin/include -I/nix/store/jxcxnmvvh6lmwlrgql44fpxlrvnknzbf-boost-1.60.0/include -I/nix/store/kqlavdmnqhnd9pnviwhji8762gfkhf1d-gperftools-2.6.3/include -I/nix/store/za04kj9q5m08bh946x96y6cip1kchn9c-pcre-cpp-8.41-bin/include -I/nix/store/grffx916ray3d411wf9czx2y127jac6g-snappy-1.1.7/include -I/nix/store/vj9716h62y21a2hv18al8zvhlqpl30sx-zlib-1.2.11/include -I/nix/store/c85m7cxs10m0rfrqywdr4dly8dnp2gmm-libyaml-cpp-0.6.2/include -I/nix/store/mhrn4ygm88n8x4kb1myrnff41x690r2a-cyrus-sasl-2.1.26-bin/include -I/nix/store/vp2imwdhvqfi2l2d39zqhqz7y56aw2kl-openssl-1.0.2o-dev/include -I/nix/store/qahj8wb88rfs00l9xmjg74m6c52lnxiy-openssl-1.0.2o/include -I/nix/store/hy5jf061b9wxws6wijn2qjcraa569w0l-libpcap-1.8.1/include -I/nix/store/8k3xn58nw9b72hfnrnvjb03v3njx8akq-python-2.7.14-env/include -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/nixos -Isrc src/mongo/db/s/get_shard_version_command.cpp
g++ -o build/nixos/mongo/db/s/config/configsvr_enable_sharding_command.o -c -Woverloaded-virtual -Wno-maybe-uninitialized -std=c++14 -I/nix/store/mhrn4ygm88n8x4kb1myrnff41x690r2a-cyrus-sasl-2.1.26-bin/include -I/nix/store/jxcxnmvvh6lmwlrgql44fpxlrvnknzbf-boost-1.60.0/include -I/nix/store/kqlavdmnqhnd9pnviwhji8762gfkhf1d-gperftools-2.6.3/include -I/nix/store/za04kj9q5m08bh946x96y6cip1kchn9c-pcre-cpp-8.41-bin/include -I/nix/store/grffx916ray3d411wf9czx2y127jac6g-snappy-1.1.7/include -I/nix/store/vj9716h62y21a2hv18al8zvhlqpl30sx-zlib-1.2.11/include -I/nix/store/c85m7cxs10m0rfrqywdr4dly8dnp2gmm-libyaml-cpp-0.6.2/include -I/nix/store/mhrn4ygm88n8x4kb1myrnff41x690r2a-cyrus-sasl-2.1.26-bin/include -I/nix/store/vp2imwdhvqfi2l2d39zqhqz7y56aw2kl-openssl-1.0.2o-dev/include -I/nix/store/qahj8wb88rfs00l9xmjg74m6c52lnxiy-openssl-1.0.2o/include -I/nix/store/hy5jf061b9wxws6wijn2qjcraa569w0l-libpcap-1.8.1/include -I/nix/store/8k3xn58nw9b72hfnrnvjb03v3njx8akq-python-2.7.14-env/include -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/nixos -Isrc src/mongo/db/s/config/configsvr_enable_sharding_command.cpp
g++ -o build/nixos/mongo/db/s/config/configsvr_update_zone_key_range_command.o -c -Woverloaded-virtual -Wno-maybe-uninitialized -std=c++14 -I/nix/store/mhrn4ygm88n8x4kb1myrnff41x690r2a-cyrus-sasl-2.1.26-bin/include -I/nix/store/jxcxnmvvh6lmwlrgql44fpxlrvnknzbf-boost-1.60.0/include -I/nix/store/kqlavdmnqhnd9pnviwhji8762gfkhf1d-gperftools-2.6.3/include -I/nix/store/za04kj9q5m08bh946x96y6cip1kchn9c-pcre-cpp-8.41-bin/include -I/nix/store/grffx916ray3d411wf9czx2y127jac6g-snappy-1.1.7/include -I/nix/store/vj9716h62y21a2hv18al8zvhlqpl30sx-zlib-1.2.11/include -I/nix/store/c85m7cxs10m0rfrqywdr4dly8dnp2gmm-libyaml-cpp-0.6.2/include -I/nix/store/mhrn4ygm88n8x4kb1myrnff41x690r2a-cyrus-sasl-2.1.26-bin/include -I/nix/store/vp2imwdhvqfi2l2d39zqhqz7y56aw2kl-openssl-1.0.2o-dev/include -I/nix/store/qahj8wb88rfs00l9xmjg74m6c52lnxiy-openssl-1.0.2o/include -I/nix/store/hy5jf061b9wxws6wijn2qjcraa569w0l-libpcap-1.8.1/include -I/nix/store/8k3xn58nw9b72hfnrnvjb03v3njx8akq-python-2.7.14-env/include -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/nixos -Isrc src/mongo/db/s/config/configsvr_update_zone_key_range_command.cpp
building of '/nix/store/2nnpsdk2cralpp249dixs74xlw9f374a-mongodb-3.6.4.drv' timed out after 1800 seconds
error: build of '/nix/store/2nnpsdk2cralpp249dixs74xlw9f374a-mongodb-3.6.4.drv' failed

@xeji

xeji commented Jun 10, 2018

Copy link
Copy Markdown
Contributor

@GrahamcOfBorg build mongodb

@GrahamcOfBorg

Copy link
Copy Markdown

No attempt on aarch64-linux (full log)

The following builds were skipped because they don't evaluate on aarch64-linux: mongodb

Partial log (click to expand)


a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowBroken = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowBroken = true; }
to ~/.config/nixpkgs/config.nix.


@GrahamcOfBorg

Copy link
Copy Markdown

Failure on x86_64-darwin (full log)

Attempted: mongodb

Partial log (click to expand)

Usage: /nix/store/v19mh1p18achhbcb3r4mf1an2ymyd654-libtool-2.4.6/bin/libtool [OPTION]... [MODE-ARG]...
scons: *** [build/nixos/third_party/wiredtiger/libwiredtiger.a] Error 1
Try 'libtool --help' for more information.
libtool:   error: unrecognised option: '-static'
scons: *** [build/nixos/third_party/s2/base/libbase.a] Error 1
scons: building terminated because of errors.
build/nixos/third_party/wiredtiger/libwiredtiger.a failed: Error 1
build/nixos/third_party/s2/base/libbase.a failed: Error 1
builder for '/nix/store/nxnpb4mg5hig1xpryannvi9yy5sf731k-mongodb-3.6.4.drv' failed with exit code 2
error: build of '/nix/store/nxnpb4mg5hig1xpryannvi9yy5sf731k-mongodb-3.6.4.drv' failed

@GrahamcOfBorg

Copy link
Copy Markdown

Success on x86_64-linux (full log)

Attempted: mongodb

Partial log (click to expand)

shrinking RPATHs of ELF executables and libraries in /nix/store/ghw2q6a1pdqzv46wqcnydqylh7n04f55-mongodb-3.6.4
shrinking /nix/store/ghw2q6a1pdqzv46wqcnydqylh7n04f55-mongodb-3.6.4/bin/mongod
shrinking /nix/store/ghw2q6a1pdqzv46wqcnydqylh7n04f55-mongodb-3.6.4/bin/mongo
shrinking /nix/store/ghw2q6a1pdqzv46wqcnydqylh7n04f55-mongodb-3.6.4/bin/mongos
shrinking /nix/store/ghw2q6a1pdqzv46wqcnydqylh7n04f55-mongodb-3.6.4/bin/mongoperf
strip is /nix/store/21ymadblbmsbb2bk4q7gl4kjasp8zmgd-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/ghw2q6a1pdqzv46wqcnydqylh7n04f55-mongodb-3.6.4/lib  /nix/store/ghw2q6a1pdqzv46wqcnydqylh7n04f55-mongodb-3.6.4/bin
patching script interpreter paths in /nix/store/ghw2q6a1pdqzv46wqcnydqylh7n04f55-mongodb-3.6.4
checking for references to /build in /nix/store/ghw2q6a1pdqzv46wqcnydqylh7n04f55-mongodb-3.6.4...
/nix/store/ghw2q6a1pdqzv46wqcnydqylh7n04f55-mongodb-3.6.4

@samueldr samueldr added the 2.status: merge conflict This PR has merge conflicts with the target branch label Aug 10, 2018
@cyounkins

Copy link
Copy Markdown
Contributor

Hello! @jarjee could you rebase this, or may I make a new PR with your changes?

Also, Mongo is no longer supported on 32-bit systems - "Changed in version 3.4: MongoDB no longer supports 32-bit x86 platforms." so I think meta.platforms should be set to stdenv.lib.subtractLists platforms.doubles.i686 platforms.doubles.unix; (Reference #52463)

@jarjee

jarjee commented Dec 18, 2018

Copy link
Copy Markdown
Author

Hi @cyounkins, yes I can rebase this PR. I mostly abandoned this PR since I couldn't build on OSX.

@jarjee jarjee changed the title mongodb: 3.4.10 -> 3.6.4 mongodb: 3.4.10 -> 4.0.4 Dec 20, 2018
@GrahamcOfBorg GrahamcOfBorg removed the 2.status: merge conflict This PR has merge conflicts with the target branch label Dec 20, 2018
@cyounkins

Copy link
Copy Markdown
Contributor

It appears the 32-bit issue remains in your most recent push - We need to disable building on 32-bit systems as it isn't supported and in my testing has failed. This is the error that occurs: https://jira.mongodb.org/browse/SERVER-22810

Could you please set meta.platforms to stdenv.lib.subtractLists platforms.doubles.i686 platforms.doubles.unix; ? Thanks!

@jarjee

jarjee commented Dec 27, 2018

Copy link
Copy Markdown
Author

@cyounkins Sorry for the wait, I've made the change you requested.

@GrahamcOfBorg GrahamcOfBorg added the 8.has: clean-up This PR removes packages or removes other cruft label Dec 27, 2018
@ryantm

ryantm commented Feb 23, 2019

Copy link
Copy Markdown
Member

@GrahamcOfBorg build mongodb

@Ma27 Ma27 added the 9.needs: port to stable A PR needs a backport to the stable release. label Mar 25, 2020
@aanderse

Copy link
Copy Markdown
Member

I would love that. I lost track where we're at with this, though. Are you running with this now @Ma27?

@Ma27

Ma27 commented Mar 25, 2020

Copy link
Copy Markdown
Member

Are you running with this now

In #nixos-dev everybody seemed to be fine with this. Will merge (and backport mongodb-3.4.24) tomorrow :)

jarjee and others added 9 commits March 26, 2020 14:02
fix: Adding libtool to allow darwin compiles

Libtool seems to be required for mongodb to compile on darwin.

fix: Marking MongoDB as broken on aarch64

fix: Adding libtools to the pkg imports

Update mongodb to 4.0.4
Now has tests for 3.4, 3.6, 4.0. Has some duplication, but it appears to
work on my machine.
Reverts previous ssl fix commit and updates the mongodb version which fixes the ssl compile problem on darwin.
perl-based VM tests are deprecated.
@Ma27 Ma27 self-assigned this Mar 26, 2020
@Ma27

Ma27 commented Mar 26, 2020

Copy link
Copy Markdown
Member

I rewrote the test in python, rebased to master and cleaned up the history. As soon as the mongodb builds (and test) I'm running locally are finished, I'll push the changeset and merge :)

@Ma27

Ma27 commented Mar 26, 2020

Copy link
Copy Markdown
Member

@GrahamcOfBorg test mongodb

@ofborg ofborg Bot added 8.has: changelog This PR adds or changes release notes 8.has: documentation This PR adds or changes documentation labels Mar 26, 2020
@Ma27

Ma27 commented Mar 26, 2020

Copy link
Copy Markdown
Member

@GrahamcOfBorg build mongodb-4_0 mongodb-3_4 mongodb-3_6

@Ma27

Ma27 commented Mar 26, 2020

Copy link
Copy Markdown
Member

@jarjee @worldofpeace @offlinehacker @aanderse can you please take a look at the license (sspl)?

According to MongoDB's FAQ it's free, based on GPLv3, but not (yet?) approved by the OSI (https://www.mongodb.com/licensing/server-side-public-license/faq).

From my understanding it should be therefore possible to mark licenses.ssdp as free, however I'm definetely not a software licensing expert or a lawyer. Or do we only mark OSI-approved licenses as free? (Didn't find any reference about this while skimming through the manual).

The main reason I'm asking is because it takes quite some time and resources to compile mongodb and the unfree licenses would mean that everyone has to compile it locally.

I guess one of the most important paragraphs from the FAQ is the following:

Although the SSPL is not OSI approved, it maintains all of the same freedoms the community has always had with MongoDB under AGPL. Users are free to review, modify, and distribute the software or redistribute modifications to the software. However, the Open Source Initiative (OSI) has its own process for approving what it considers to be an open source license, and the SSPL has not received OSI approval. MongoDB software licensed under the SSPL is not considered open source by the OSI.

@Ma27

Ma27 commented Mar 26, 2020

Copy link
Copy Markdown
Member

Merging for now. As discussed in #nixos-dev, this is at least an improvement over the current state. We need to find a solution for the licensing issue soon though.

@adrian-gierakowski

Copy link
Copy Markdown
Contributor

Thanks for this! Any idea if it would take much work to also add mongo 4.2?

@Ma27

Ma27 commented Mar 26, 2020

Copy link
Copy Markdown
Member

Without having it tested: I don't think so, the packages are already splitted, so it should be fairly easy to add another one :)

For the record: I didn't forget the backport, I'll file a PR for this tomorrow hoping that I get a bit more feedback on #83433 first :)

@Ma27 Ma27 mentioned this pull request Mar 28, 2020
5 of 10 tasks
@bachp bachp mentioned this pull request Apr 1, 2020
3 of 10 tasks
@TredwellGit TredwellGit added 8.has: port to stable This PR already has a backport to the stable release. and removed 9.needs: port to stable A PR needs a backport to the stable release. labels Aug 20, 2021
@Janik-Haag Janik-Haag added the 12.first-time contribution This PR is the author's first one; please be gentle! label Jun 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1.severity: security Issues which raise a security issue, or PRs that fix one 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: changelog This PR adds or changes release notes 8.has: clean-up This PR removes packages or removes other cruft 8.has: documentation This PR adds or changes documentation 8.has: package (new) This PR adds a new package 8.has: package (update) This PR updates a package to a newer version 8.has: port to stable This PR already has a backport to the stable release. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 12.first-time contribution This PR is the author's first one; please be gentle!

Projects

None yet

Development

Successfully merging this pull request may close these issues.