guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/01: gnu: mongo-tools: Fix build.


From: guix-commits
Subject: 01/01: gnu: mongo-tools: Fix build.
Date: Tue, 4 Dec 2018 15:27:17 -0500 (EST)

cbaines pushed a commit to branch master
in repository guix.

commit fe5969656adc0c799deaf06d90a9628b78e7b232
Author: Christopher Baines <address@hidden>
Date:   Tue Dec 4 20:22:27 2018 +0000

    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.
---
 gnu/packages/databases.scm | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
index d7b3583..0fa6d45 100644
--- a/gnu/packages/databases.scm
+++ b/gnu/packages/databases.scm
@@ -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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]