From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:51958) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h1pD5-0000h9-5a for guix-patches@gnu.org; Thu, 07 Mar 2019 04:21:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h1pD4-0003fn-8X for guix-patches@gnu.org; Thu, 07 Mar 2019 04:21:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:49607) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h1pD4-0003fj-52 for guix-patches@gnu.org; Thu, 07 Mar 2019 04:21:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1h1pD3-0007AL-Ta for guix-patches@gnu.org; Thu, 07 Mar 2019 04:21:01 -0500 Subject: [bug#34779] [PATCH] gnu: neovim: Partially fix #34616. Resent-Message-ID: Received: from eggs.gnu.org ([209.51.188.92]:51884) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h1pCK-0000ds-B1 for guix-patches@gnu.org; Thu, 07 Mar 2019 04:20:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h1pCD-0003HV-LS for guix-patches@gnu.org; Thu, 07 Mar 2019 04:20:13 -0500 Received: from mail-wm1-x344.google.com ([2a00:1450:4864:20::344]:51876) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h1pCC-0003Fb-40 for guix-patches@gnu.org; Thu, 07 Mar 2019 04:20:08 -0500 Received: by mail-wm1-x344.google.com with SMTP id n19so8495952wmi.1 for ; Thu, 07 Mar 2019 01:20:07 -0800 (PST) From: =?UTF-8?Q?G=C3=A1bor?= Boskovits Date: Thu, 7 Mar 2019 10:19:56 +0100 Message-Id: <20190307091956.23587-1-boskovits@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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: 34779@debbugs.gnu.org Cc: =?UTF-8?Q?G=C3=A1bor?= Boskovits * gnu/packages/vim.scm (neovim)[arguments](phases): Add phase 'patch-tic. This fixes a segmentation fault in neovim, where an error return value is passed in as a pointer. --- gnu/packages/vim.scm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gnu/packages/vim.scm b/gnu/packages/vim.scm index 5e1e9b852c..105e2751e5 100644 --- a/gnu/packages/vim.scm +++ b/gnu/packages/vim.scm @@ -693,6 +693,12 @@ are detected, the user is notified."))) #:configure-flags '("-DPREFER_LUA:BOOL=YES") #:phases (modify-phases %standard-phases + ;; TODO: remove 'patch-tic on update + ;; see: https://github.com/nvim/neovim/issues/9687 + (add-after 'unpack 'patch-tic + (lambda _ + (substitute* "src/nvim/tui/tui.c" + (("value != NULL") "value != NULL && value != (char *)-1")))) (add-after 'unpack 'set-lua-paths (lambda* (#:key inputs #:allow-other-keys) (let* ((lua-version "5.2") -- 2.21.0