guix-commits
[Top][All Lists]
Advanced

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

02/02: gnu: weechat: Fix patching of assignments to 'python2_bin'.


From: Ludovic Courtès
Subject: 02/02: gnu: weechat: Fix patching of assignments to 'python2_bin'.
Date: Wed, 18 Nov 2015 17:03:26 +0000

civodul pushed a commit to branch master
in repository guix.

commit 7be4a4b0ae68de0974e0ac6a4e313f1001bcd73d
Author: Ludovic Courtès <address@hidden>
Date:   Wed Nov 18 18:01:50 2015 +0100

    gnu: weechat: Fix patching of assignments to 'python2_bin'.
    
    Fixes a regression introduced in a9346fa.
    
    * gnu/packages/weechat.scm (weechat)[arguments]: Make sure PYTHON2_BIN
      can be freed with 'free'.
---
 gnu/packages/weechat.scm |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/weechat.scm b/gnu/packages/weechat.scm
index 4825030..27349ec 100644
--- a/gnu/packages/weechat.scm
+++ b/gnu/packages/weechat.scm
@@ -87,10 +87,10 @@
                   (add-before 'build 'set-python-file-name
                     (lambda* (#:key inputs #:allow-other-keys)
                       (substitute* "src/plugins/python/weechat-python.c"
-                        (("python2_bin = .*;")
-                         (string-append "python2_bin = \""
+                        (("python2_bin = weechat_python_get_python2_bin.*;")
+                         (string-append "python2_bin = strdup (\""
                                         (assoc-ref inputs "python")
-                                        "/bin/python\";\n")))
+                                        "/bin/python\");\n")))
                       #t)))))
     (synopsis "Extensible chat client")
     (description "WeeChat (Wee Enhanced Environment for Chat) is an



reply via email to

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