From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58658) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dA9Ej-0000Pj-Kk for guix-patches@gnu.org; Mon, 15 May 2017 02:12:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dA9Eg-0008Vl-GP for guix-patches@gnu.org; Mon, 15 May 2017 02:12:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:42720) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dA9Eg-0008Vf-C5 for guix-patches@gnu.org; Mon, 15 May 2017 02:12:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dA9Eg-0002Pa-3q for guix-patches@gnu.org; Mon, 15 May 2017 02:12:02 -0400 Subject: bug#26770: [PATCH] gnu: tailon: Use absolute paths for commands. References: <20170504064715.9779-1-mail@cbaines.net> In-Reply-To: <20170504064715.9779-1-mail@cbaines.net> Resent-Message-ID: From: Christopher Baines Date: Mon, 15 May 2017 07:11:55 +0100 Message-Id: <20170515061155.1380-1-mail@cbaines.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 26770@debbugs.gnu.org * gnu/packages/logging.scm (tailon)[arguments]: Patch commands.py to reference grep, awk, sed and tail by absolute paths. --- gnu/packages/logging.scm | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/gnu/packages/logging.scm b/gnu/packages/logging.scm index 2523d65f6..11bbfef52 100644 --- a/gnu/packages/logging.scm +++ b/gnu/packages/logging.scm @@ -109,6 +109,22 @@ command line.") `(("python-pyyaml" ,python-pyyaml) ("python-sockjs-tornado" ,python-sockjs-tornado) ("python-tornado" ,python-tornado))) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'install 'wrap-tailon-path + (lambda* (#:key inputs outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + (substitute* (find-files out "commands.py") + (("self\\.first_in_path\\('grep'\\)") + (string-append"'" (which "grep") "'")) + (("self\\.first_in_path\\('gawk', 'awk'\\)") + (string-append"'" (which "gawk") "'")) + (("self\\.first_in_path\\('gsed', 'sed'\\)") + (string-append"'" (which "sed") "'")) + (("self\\.first_in_path\\('gtail', 'tail'\\)") + (string-append"'" (which "tail") "'"))) + #t)))))) (home-page "https://tailon.readthedocs.io/") (synopsis "Webapp for looking at and searching through log files") -- 2.12.0