Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 936946 - app-editors/neovim-0.10.0[LUA_SINGLE_TARGET=lua5-1]: lua5.1: No such file or directory
Summary: app-editors/neovim-0.10.0[LUA_SINGLE_TARGET=lua5-1]: lua5.1: No such file or ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Brahmajit Das
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-07-30 13:39 UTC by Thibaud CANALE
Modified: 2024-08-17 17:14 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Build log gzipped (app-editors:neovim-0.10.0-r1:20240730-130628.log.gz,7.24 KB, application/gzip)
2024-07-30 13:39 UTC, Thibaud CANALE
Details
emerge --info (file_936946.txt,9.12 KB, text/plain)
2024-07-30 13:48 UTC, Thibaud CANALE
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thibaud CANALE 2024-07-30 13:39:00 UTC
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.
Comment 1 Thibaud CANALE 2024-07-30 13:48:09 UTC
Created attachment 898647 [details]
emerge --info
Comment 2 Jiezhe Wang 2024-08-13 05:07:24 UTC
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
}
```
Comment 3 Yixun Lan archtester gentoo-dev 2024-08-17 12:02:09 UTC
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 ..
Comment 4 Larry the Git Cow gentoo-dev 2024-08-17 17:14:06 UTC
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(-)