pkgsrc-Bugs archive

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

Re: pkg/59090: Neovim SEGFAULT on aarch64 (Raspberry Pi 4)



The following reply was made to PR pkg/59090; it has been noted by GNATS.

From: Leonardo Taccari <leot%NetBSD.org@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: pkg/59090: Neovim SEGFAULT on aarch64 (Raspberry Pi 4)
Date: Thu, 20 Feb 2025 18:17:19 +0100

 Hello Lem,
 
 ferorborja%gmail.com@localhost writes:
 > >Number:         59090
 > >Category:       pkg
 > >Synopsis:       Neovim SEGFAULT on aarch64 (Raspberry Pi 4)
 > >Confidential:   no
 > >Severity:       critical
 > >Priority:       high
 > >Responsible:    pkg-manager
 > >State:          open
 > >Class:          sw-bug
 > >Submitter-Id:   net
 > >Arrival-Date:   Thu Feb 20 16:55:00 +0000 2025
 > >Originator:     Lem
 > >Release:        NetBSD 10.1
 > >Organization:
 > >Environment:
 > NetBSD raspberrypi-nbsd 10.1_STABLE NetBSD 10.1_STABLE (GENERIC64) #0: Sun Feb  2 15:05:07 UTC 2025  mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/evbarm/compile/GENERIC64 evbarm
 >
 > >Description:
 > Neovim installed from pkgsrc sends a Segmentation Fault when installing on a fresh installation on aarch64. Tested on a Raspberry Pi 4
 > >How-To-Repeat:
 > Install neovim on aarch64 with pkgin
 > [...]
 
 Adding possible more information... this is likely due the use of
 patchelf in post-install:
 
  | .if ${SHLIB_TYPE} == "ELF"
  | CFLAGS+=        ${COMPILER_RPATH_FLAG}${PREFIX}/lib/lua/5.1
  | 
  | TOOL_DEPENDS+=  patchelf-[0-9]*:../../devel/patchelf
  | 
  | post-install:
  |         ${TOOLBASE}/bin/patchelf ${DESTDIR}${PREFIX}/bin/nvim \
  |                 --replace-needed ${BUILDLINK_DIR.lua-lpeg}/lib/lua/5.1/lpeg.so lpeg.so
  | .endif
 
 I have locally workaround-ed that by getting rid of the post-install
 target and building with CHECK_SHLIBS=yes ... but we definitely need to
 figure out how to get rid of that kludge and properly linking to lpeg.so
 without needing patchelf.
 
 (If patchelf is problematic on aarch64... that's probably worth a PR
 too, but that's another story :))
 


Home | Main Index | Thread Index | Old Index