From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:54477) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h1pRa-0005FK-Tm for guix-patches@gnu.org; Thu, 07 Mar 2019 04:36:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h1pRa-0003uJ-3K for guix-patches@gnu.org; Thu, 07 Mar 2019 04:36:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:49616) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h1pRZ-0003uD-VV for guix-patches@gnu.org; Thu, 07 Mar 2019 04:36:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1h1pRZ-0007Zr-RG for guix-patches@gnu.org; Thu, 07 Mar 2019 04:36:01 -0500 Subject: [bug#34779] [PATCH v2] gnu: neovim: Partially fix #34616. References: <20190307091956.23587-1-boskovits@gmail.com> In-Reply-To: <20190307091956.23587-1-boskovits@gmail.com> Resent-Message-ID: From: =?UTF-8?Q?G=C3=A1bor?= Boskovits Date: Thu, 7 Mar 2019 10:35:12 +0100 Message-Id: <20190307093512.23795-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..a6f4395f53 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/neovim/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