Created attachment 898646 [details] Build log gzipped When compiling neovim with Lua 5.1 instead of LuaJIT, compilation phase fails with such messages: ``` /bin/sh: line 1: /var/tmp/portage/app-editors/neovim-0.10.0-r1/work/neovim-0.10.0_build/lua5.1: No such file or directory ``` Earlier, in the configure phase, we can notice this warning: ``` ../.. -- Using Lua interpreter: /var/tmp/portage/app-editors/neovim-0.10.0-r1/work/neovim-0.10.0_build/lua5.1 -- Using Lua interpreter for code generation: /var/tmp/portage/app-editors/neovim-0.10.0-r1/work/neovim-0.10.0_build/lua5.1 ../.. CMake Warning at test/CMakeLists.txt:24 (message): disabling unit tests: no Luajit FFI in /var/tmp/portage/app-editors/neovim-0.10.0-r1/work/neovim-0.10.0_build/lua5.1 ``` When looking inside this build directory, we actually see a luajit symbolic link to the luajit system interpreter, but no such link or file for lua5-1, unlike the path reported above. It however works without issue with LuaJIT.
Created attachment 898647 [details] emerge --info
My temporary solution is add following content to `/etc/portage/env/app-editors/neovim`: ``` function pre_src_configure() { ln -s "${BROOT}"/usr/bin/lua5.1 "${BUILD_DIR}"/lua5.1 || die } ```
this bug also exist on ARCH=riscv with latest 0.10.1 version, can we fix it? it will block bug 937973, as currently ARCH=rsicv lack of luajit support ..
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2a2d6fbe8ef24b0c33e04af4e92148af77da1f6f commit 2a2d6fbe8ef24b0c33e04af4e92148af77da1f6f Author: Mike Gilbert <floppym@gentoo.org> AuthorDate: 2024-08-17 17:12:30 +0000 Commit: Mike Gilbert <floppym@gentoo.org> CommitDate: 2024-08-17 17:13:10 +0000 app-editors/neovim: pass full path in LUA_PRG Closes: https://bugs.gentoo.org/936946 Signed-off-by: Mike Gilbert <floppym@gentoo.org> app-editors/neovim/neovim-0.10.0-r1.ebuild | 3 +-- app-editors/neovim/neovim-0.10.0.ebuild | 3 +-- app-editors/neovim/neovim-0.10.1.ebuild | 3 +-- app-editors/neovim/neovim-9999.ebuild | 3 +-- 4 files changed, 4 insertions(+), 8 deletions(-)