gnu: mongo-tools: Fix build.

I guess this broke when upgrading go. I did try upgrading to the later patch
and minor releases, but they had similar problems, so lets upgrade separately.

* gnu/packages/databases.scm (mongo-tools)[arguments]: Add patch-source phase.
master
Christopher Baines 2018-12-04 20:22:27 +00:00
parent b4c684cdf3
commit fe5969656a
No known key found for this signature in database
GPG Key ID: 5E28A33B0B84F577
1 changed files with 8 additions and 0 deletions

View File

@ -2868,6 +2868,14 @@ transforms idiomatic python function calls to well-formed SQL queries.")
(delete-file-recursively
"src/github.com/mongodb/mongo-tools/vendor")
#t))
(add-after 'delete-bundled-source-code 'patch-source
(lambda _
;; Remove a redundant argument that causes compilation to fail.
(substitute*
"src/github.com/mongodb/mongo-tools/mongorestore/filepath.go"
(("skipping restore of system.profile collection\", db)")
"skipping restore of system.profile collection\")"))
#t))
;; We don't need to install the source code for end-user applications
(delete 'install-source)
(replace 'build