pkgsrc-Users archive

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

Re: Installing neovim on macOS



> Date: Sun, 2 Feb 2025 13:11:45 +0000
> From: sunqingyao19970825%icloud.com@localhost
> 
> Dear Adam and Taylor,
> 
> It looks like the latest commit (https://pkgsrc.se/files.php?messageId=20250124124554.91B0BFBE0%cvs.NetBSD.org@localhost) breaks the neovim build on macOS 15.2, as I’m getting the following error:
> 
> CMake Error at /opt/pkg/share/cmake-3.31/Modules/FindPackageHandleStandardArgs.cmake:233 (message):
>   Could NOT find Lpeg (missing: LPEG_LIBRARY)
> Call Stack (most recent call first):
>   /opt/pkg/share/cmake-3.31/Modules/FindPackageHandleStandardArgs.cmake:603 (_FPHSA_FAILURE_MESSAGE
> )
>   cmake/FindLpeg.cmake:3 (find_package_handle_standard_args)
>   src/nvim/CMakeLists.txt:34 (find_package)
> 
> 
> -- Configuring incomplete, errors occurred!
> *** Error code 1
> 
> I’m using cmake version 3.31.5, installed from pkgsrc. I would appreciate it if you (or anyone else) could take a look. Thanks!

Sorry about that!  Some diagnostics on your system might help:

1. Can you please try to build editors/neovom with

	CMAKE_CONFIGURE_ARGS+=	--debug-find

   added to editors/neovim/Makefile, and share the output?

2. Can you also share the output of `pkg_info -qL luaNN-lpeg' on your
   system, where NN is the Lua version?

3. Can you run

	ident devel/cmake/build.mk editors/neovim/Makefile devel/lua-lpeg/buildlink3.mk

   and share the output?

What's weird is that the change you quoted _fixed_ the symptom on my
system.  The change which _triggered_ the symptom was
<https://mail-index.netbsd.org/pkgsrc-changes/2025/01/24/msg315217.html>,
which limits the places that cmake looks so that it doesn't go
scrounging in, e.g., macports/homebrew/fink for things to link pkgsrc
packages against.  And I wouldn't expect the change you quoted to make
cmake fail to find things it found before.


Home | Main Index | Thread Index | Old Index