You are not logged in.

#1 2017-12-21 17:01:21

mdavis95
Member
Registered: 2017-12-21
Posts: 5

Mongodb 3.6

I would like to request a package for mongodb 3.6.  We use it on production Ubuntu servers now and I use Arch Linux for development.  I have tried to take the PKGBUILD from community and modify for mongodb 3.6 but the existing patches are not able to apply and it will not compile without patches.

Can anyone help me getting a working package or does anyone know when 3.6 will reach community?

Thanks,
Matt

Offline

#2 2017-12-21 17:28:31

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: Mongodb 3.6


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2017-12-21 17:42:04

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,525
Website

Re: Mongodb 3.6

mdavis95 wrote:

Can anyone help me getting a working package or does anyone know when 3.6 will reach community?

Slithery just answered the second part of that.  For the first, if you really want help, start by sharing what you've done and where it fails.  You said the patches can't be applied, what is the error from patch commands?  How much will the patches need to be modified?

You said it can't compile without the patches.  Why not?  What are the errors?


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#4 2017-12-21 19:00:43

mdavis95
Member
Registered: 2017-12-21
Posts: 5

Re: Mongodb 3.6

It looks like mongodb-3.2.10-boost-1.62.0.patch is no longer need because of a new if/else containing this:

if BOOST_VERSION < 106200

The using-std-string.patch seems to be referring to a file that no longer exists.

The asio-openssl-1.1.0.patch fails because the directory is now asio-master and the many of the hunks fail after that is changed.


I removed the patches and then added python2-cheetah to the checkdepends.

Without the patches I get an error that doesnt seem related to the patches:

src/mongo/db/storage/wiredtiger/wiredtiger_oplog_manager.cpp: In member function 'uint64_t mongo::WiredTigerOplogManager::_fetchAllCommittedValue(WT_CONNECTION*)':
src/mongo/db/storage/wiredtiger/wiredtiger_oplog_manager.cpp:227:27: error: 'WT_CONNECTION {aka struct __wt_connection}' has no member named 'query_timestamp'
     auto wtstatus = conn->query_timestamp(conn, buf, "get=all_committed");
                           ^~~~~~~~~~~~~~~
In file included from src/mongo/db/client.h:47:0,
                 from src/mongo/db/operation_context.h:36,
                 from src/mongo/db/storage/snapshot_manager.h:36,
                 from src/mongo/db/storage/wiredtiger/wiredtiger_snapshot_manager.h:36,
                 from src/mongo/db/storage/wiredtiger/wiredtiger_session_cache.h:40,
                 from src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.h:43,
                 from src/mongo/db/storage/wiredtiger/wiredtiger_record_store.h:42,
                 from src/mongo/db/storage/wiredtiger/wiredtiger_oplog_manager.h:34,
                 from src/mongo/db/storage/wiredtiger/wiredtiger_oplog_manager.cpp:36:

Offline

#5 2017-12-21 19:41:32

mdavis95
Member
Registered: 2017-12-21
Posts: 5

Re: Mongodb 3.6

It looks like the wiredtiger version used by mongodb 3.6 is version 3.0 and not version 2.9.3 that is currently in arch.   Turning off --use-system-wiredtiger makes the build work.

Offline

#6 2017-12-21 19:51:19

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,525
Website

Re: Mongodb 3.6

Nice catch.  If you have a fully working PKGBUILD, please feel free to share it here.  I  don't use MongoDB, but I suspect others may be interested in it until the repo package gets updated.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#7 2017-12-21 20:12:28

mdavis95
Member
Registered: 2017-12-21
Posts: 5

Re: Mongodb 3.6

Not sure the correct way to post it but this compiles.  Verdict is still out if it works correctly.

https://gist.github.com/mdavis95/08726d … 2562ae72bf

Offline

Board footer

Powered by FluxBB