[needs-packaging] juju-mongo-tools3.2 in xenial, wily, and trusty
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
juju-mongo-tools3.2 (Ubuntu) |
Fix Released
|
Wishlist
|
Unassigned |
Bug Description
# 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-
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-
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-
The missing sources for the emedded JS and CSS>
Minimised JS is evil. Sane servers compress the text, which is
superior to removing whitespace.
Changed in juju-mongodb (Ubuntu): | |
status: | Incomplete → New |
affects: | juju-mongodb (Ubuntu) → juju-mongo-tools3.2 (Ubuntu) |
Changed in juju-mongo-tools3.2 (Ubuntu): | |
status: | New → Fix Released |
A diff of the missing sources added to debian/.