Public bug reported: # juju-mongo-tools3.2
The Juju team wants juju-mongo-tools3.2 packaged in xenial. lp:~sinzui/ubuntu/xenial/juju-mongo-tools3.2/xenial-mongo-tools3.2 This package is new. Upstream replaced the mongo tools included in MongoDB 2.x with new tools from the mongo-tools project. This project is written in Go. This package required a patch to support arm64. ## juju-mongo-tools3.2-debian.diff This diff shows my debianisation of juju-mongo-tools. 1. The package uses five golang-dev packages from xenial * There ware four matching golang-dev packages in wily. 2. This package uses the system ssl (instead of go's x-crypto) 3. This is a dep-5 package. * upstream has utility to manage golang package deps and save them to th vendor dir. * This implementation is similar Juju's godeps tool so i record the git commit for the package in the license comment. 4. The embedded and minimise JS is a nightmare. I collected the missing sources and include them in the copyright file and in the missing-sources dir. see juju-mongo-tools3.2-missing-sources.diff. 5. I patched one file to fix an arm64 build error. syscall.Dup2 is not supported by arm64, use syscall.Dup3. 6. The rules to build the many mongo tools are simple, though there is a few steps to setup the G0PATH. * Using the same technique as the juju-core package in xenial, I create a SYSTEM_GOCODE path and link all the installed golang dev packages to it. SYSTEM_GOCODE is the first item in the GOPATH. * The mongo-tools package is not a valid Go package path :/ I follow the packages own example of creating a sensible GO package path that I call LOCAL_GOCODE. I symlink the content of this package into the LOCAL_GOCODE path. This is the second item in the GOPATH. * I also add the vendor path as the last item in GOPATH. ## juju-mongo-tools3.2-missing-sources.diff The missing sources for the emedded JS and CSS> Minimised JS is evil. Sane servers compress the text, which is superior to removing whitespace. ** Affects: juju-mongodb (Ubuntu) Importance: Undecided Status: New ** Tags: needs-packaging ** Attachment added: "juju-mongo-tools3.2-debian.diff" https://bugs.launchpad.net/bugs/1558336/+attachment/4601654/+files/juju-mongo-tools3.2-debian.diff -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to juju-mongodb in Ubuntu. https://bugs.launchpad.net/bugs/1558336 Title: [needs-packaging] juju-mongo-tools3.2 in xenial, wily, and trusty To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/juju-mongodb/+bug/1558336/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs