Dear Taylor,
Sorry for the late response. I have recently been upgraded to macOS 15.3 and pkgsrc decided to re-compile everything from scratch, which took 30 to 40 hours. For some reason, it only compiles with a single thread, even though I bootstrapped pkgsrc with “--make-jobs 4”. Any advice on enabling multiple build jobs is appreciated!
Back to topic, here is the “bmake install” output with “CMAKE_CONFIGURE_ARGS+= --debug-find” added to Makefile: https://gist.github.com/nalzok/c2a2b1166446eaff2b00a0ded4836c94.
Moreover, I’m using Lua 5.1 because that’s the only Lua version compatible with LuaJIT, which neovim depends on
$ pkg_info -qL lua51-lpeg
/opt/pkg/lib/lua/5.1/lpeg.dylib
/opt/pkg/lib/lua/5.1/lpeg.so
/opt/pkg/share/doc/lua51-lpeg/lpeg.html
/opt/pkg/share/doc/lua51-lpeg/re.html
/opt/pkg/share/doc/lua51-lpeg/lpeg-128.gif
/opt/pkg/share/doc/lua51-lpeg/HISTORY
/opt/pkg/share/lua/5.1/re.lua
Finally, ident seems to be a NetBSD command which is not available on macOS
$ ident devel/cmake/build.mk editors/neovim/Makefile devel/lua-lpeg/buildlink3.mk
fish: Unknown command: ident
However, I looked into
its documentation, and ident seems to be a search command, so here is some outputs with ripgrep
$ rg devel/cmake/build.mk
Makefile
59:.include "../../devel/cmake/build.mk"
$ rg editors/neovim/Makefile
$ rg devel/lua-lpeg/buildlink3.mk
Makefile
67:.include "../../devel/lua-lpeg/buildlink3.mk"
Let me know if you need anything else. I’m happy to give you remote SSH access to my machine if that helps, but I’ll need your public SSH key to set that up.
Bests,
Qingyao
From:
Taylor R Campbell <riastradh%NetBSD.org@localhost>
Date: Tuesday, February 4, 2025 at 18:26
To: sunqingyao19970825%icloud.com@localhost <sunqingyao19970825%icloud.com@localhost>
Cc: Adam <adam%NetBSD.org@localhost>, pkgsrc-users%NetBSD.org@localhost <pkgsrc-users%NetBSD.org@localhost>, Qingyao Sun <qs234%cornell.edu@localhost>
Subject: 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.