pkgsrc-Changes archive

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

CVS commit: pkgsrc/editors/neovim



Module Name:    pkgsrc
Committed By:   leot
Date:           Sat May  2 21:14:04 UTC 2026

Modified Files:
        pkgsrc/editors/neovim: Makefile distinfo
Added Files:
        pkgsrc/editors/neovim/patches: patch-runtime_lua_vim_pack.lua

Log Message:
neovim: avoid to call possibly inexistent uv.available_parallelism()

At least on NetBSD with libuv-1.52.1 and lua51-luv-1.43.0.0nb1 seems
not available and it can be triggered by using vim.pack.add().

Noticed while rerunning neovim with an empty state so that vim.pack.add()
actually run.


To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 pkgsrc/editors/neovim/Makefile
cvs rdiff -u -r1.23 -r1.24 pkgsrc/editors/neovim/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/editors/neovim/patches/patch-runtime_lua_vim_pack.lua

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/editors/neovim/Makefile
diff -u pkgsrc/editors/neovim/Makefile:1.26 pkgsrc/editors/neovim/Makefile:1.27
--- pkgsrc/editors/neovim/Makefile:1.26 Sun Apr 26 08:53:07 2026
+++ pkgsrc/editors/neovim/Makefile      Sat May  2 21:14:04 2026
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.26 2026/04/26 08:53:07 adam Exp $
+# $NetBSD: Makefile,v 1.27 2026/05/02 21:14:04 leot Exp $
 
 DISTNAME=      neovim-0.12.2
+PKGREVISION=   1
 CATEGORIES=    editors
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=neovim/}
 GITHUB_TAG=    v${PKGVERSION_NOREV}
@@ -45,8 +46,11 @@ DEPENDS+=    ${LUA_PKGPREFIX}-mpack-[0-9]*:
 CFLAGS+=       ${COMPILER_RPATH_FLAG}${PREFIX}/lib/lua/5.1
 
 TOOL_DEPENDS+= patchelf-[0-9]*:../../devel/patchelf
+.endif
 
 post-install:
+       ${RM} -f ${DESTDIR}${PREFIX}/share/nvim/runtime/lua/vim/pack.lua.orig
+.if ${SHLIB_TYPE} == "ELF"
        ${TOOLBASE}/bin/patchelf ${DESTDIR}${PREFIX}/bin/nvim \
                --replace-needed ${BUILDLINK_DIR.lua-lpeg}/lib/lua/5.1/lpeg.so lpeg.so
 .endif

Index: pkgsrc/editors/neovim/distinfo
diff -u pkgsrc/editors/neovim/distinfo:1.23 pkgsrc/editors/neovim/distinfo:1.24
--- pkgsrc/editors/neovim/distinfo:1.23 Sun Apr 26 08:53:07 2026
+++ pkgsrc/editors/neovim/distinfo      Sat May  2 21:14:04 2026
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.23 2026/04/26 08:53:07 adam Exp $
+$NetBSD: distinfo,v 1.24 2026/05/02 21:14:04 leot Exp $
 
 BLAKE2s (neovim-0.12.2.tar.gz) = 20b33dc20434cc34f63fde7bf79c702e81bfb4165a8b83777d27fc4aaa97dd9c
 SHA512 (neovim-0.12.2.tar.gz) = 5e05ea39d8c166a41384c8c453b51333554601beb6decccd7bc01943c5c656c5c72abf17a75aa693c2ef6446abb9f3490d2a19233a1bdb9ebd5817d60954d70e
 Size (neovim-0.12.2.tar.gz) = 13689620 bytes
+SHA1 (patch-runtime_lua_vim_pack.lua) = 7d4be9a61ec74ea01aab20694b078811058d2084

Added files:

Index: pkgsrc/editors/neovim/patches/patch-runtime_lua_vim_pack.lua
diff -u /dev/null pkgsrc/editors/neovim/patches/patch-runtime_lua_vim_pack.lua:1.1
--- /dev/null   Sat May  2 21:14:04 2026
+++ pkgsrc/editors/neovim/patches/patch-runtime_lua_vim_pack.lua        Sat May  2 21:14:04 2026
@@ -0,0 +1,18 @@
+$NetBSD: patch-runtime_lua_vim_pack.lua,v 1.1 2026/05/02 21:14:04 leot Exp $
+
+Avoid calling possible unavailable uv.available_parallelism().
+
+At least on NetBSD with libuv-1.52.1 and lua51-luv-1.43.0.0nb1 seems
+not available and it can be triggered by using vim.pack.add().
+
+--- runtime/lua/vim/pack.lua.orig      2026-05-02 20:51:52.218912310 +0000
++++ runtime/lua/vim/pack.lua
+@@ -507,7 +507,7 @@ end
+ local copcall = package.loaded.jit and pcall or require('coxpcall').pcall
+ 
+ local function async_join_run_wait(funs)
+-  local n_threads = 2 * (uv.available_parallelism() or 1)
++  local n_threads = 2 * ((uv.available_parallelism and uv.available_parallelism()) or 1)
+   --- @async
+   local function joined_f()
+     async.join(n_threads, funs)



Home | Main Index | Thread Index | Old Index