Subject: bug#31461: closed (Re: [bug#31461] [PATCH] gnu: bear: Fix python path.)

From: [email-masked] (GNU bug Tracking System)
Date: Thu, 31 May 2018 15:45:02 +0000

Your bug report

#31461: [PATCH] gnu: bear: Fix python path.

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
31461: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=31461
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: [bug#31461] [PATCH] gnu: bear: Fix python path.
From: [email-masked] (Ludovic Courtès)
To: Fis Trivial <[email-masked]>
Cc: "[email-masked]" <[email-masked]>
Date: Thu, 31 May 2018 17:44:03 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Fis Trivial <[email-masked]> skribis:

> * gnu/packages/build-tools.scm (bear)
> [inputs]: Add python-wrapper.

Good catch!  Applied, thanks.

Ludo'.

Subject: [PATCH] gnu: bear: Fix python path.
From: Fis Trivial <[email-masked]>
To: "[email-masked]" <[email-masked]>
Date: Tue, 15 May 2018 11:48:12 +0000
List-Id: <debbugs-submit.debbugs.gnu.org>

* gnu/packages/build-tools.scm (bear)
[inputs]: Add python-wrapper.
[arguments]: Add patch-python-script phase, use needed modules.
---
 gnu/packages/build-tools.scm | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/gnu/packages/build-tools.scm b/gnu/packages/build-tools.scm
index 4b078e78e..d518b3ae1 100644
--- a/gnu/packages/build-tools.scm
+++ b/gnu/packages/build-tools.scm
@@ -87,6 +87,16 @@ makes a few sacrifices to acquire fast full and incremental build times.")
                (base32
                 "1m0w0wqnz983l7fpp5p9pdsqr7n3ybrzp8ywjcvn0rihsrzj65j6"))))
     (build-system cmake-build-system)
+    (inputs
+     `(("python" ,python-wrapper)))
+    (arguments
+     `(#:modules ((guix build utils)
+                  (guix build cmake-build-system)
+                  ((guix build gnu-build-system) #:prefix gnu:))
+                 #:phases
+                 (modify-phases %standard-phases
+                   (add-before 'configure 'patch-python-script
+                     (assoc-ref gnu:%standard-phases 'patch-source-shebangs)))))
     (home-page "https://github.com/rizsotto/Bear")
     (synopsis "Tool for generating a compilation database")
     (description "A JSON compilation database is used in the Clang project to
-- 
2.14.3