Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 643752 - app-editors/neovim-0.2.2-r1 does not respect USE=-luajit
Summary: app-editors/neovim-0.2.2-r1 does not respect USE=-luajit
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Vim Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-07 00:33 UTC by Khumba
Modified: 2018-01-07 21:52 UTC (History)
0 users

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


Attachments
emerge --info (emerge-info.txt,6.62 KB, text/plain)
2018-01-07 00:35 UTC, Khumba
Details
build.log (build.log,5.22 KB, text/x-log)
2018-01-07 00:35 UTC, Khumba
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Khumba 2018-01-07 00:33:27 UTC
I set USE=-luajit to stop neovim-0.2.2-r1 from pulling in unstable luajit (I'm on mostly stable amd64), but the build still requires it:

> CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
>   Could NOT find LuaJit (missing: LUAJIT_LIBRARY LUAJIT_INCLUDE_DIR)
> Call Stack (most recent call first):
>   /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:377 (_FPHSA_FAILURE_MESSAGE)
>   cmake/FindLuaJit.cmake:52 (find_package_handle_standard_args)
>   CMakeLists.txt:324 (find_package)

Looking at CMakeLists.txt, the PREFER_LUA option needs to be on in order to enable use of regular Lua over LuaJIT.  It builds if I add

    -DPREFER_LUA=$(usex luajit no yes)

to src_configure's mycmakeargs array.  I haven't checked whether the other neovim ebuilds have this issue.
Comment 1 Khumba 2018-01-07 00:35:11 UTC
Created attachment 513572 [details]
emerge --info
Comment 2 Khumba 2018-01-07 00:35:24 UTC
Created attachment 513574 [details]
build.log
Comment 3 Larry the Git Cow gentoo-dev 2018-01-07 21:52:09 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=15dd089f16501e34ad722e32a32068d911cb4fae

commit 15dd089f16501e34ad722e32a32068d911cb4fae
Author:     Patrice Clement <monsieurp@gentoo.org>
AuthorDate: 2018-01-07 21:46:34 +0000
Commit:     Patrice Clement <monsieurp@gentoo.org>
CommitDate: 2018-01-07 21:52:03 +0000

    app-editors/neovim: add PREFER_LUA CMake option.
    
    This option allows neovim to build even when the luajit USE flag is
    disabled.
    
    Courtesy of Kumba <gentoo-bugs-72052@khumba.net>.
    
    Closes: https://bugs.gentoo.org/643752
    Package-Manager: Portage-2.3.13, Repoman-2.3.3

 app-editors/neovim/neovim-0.2.0-r1.ebuild | 1 +
 app-editors/neovim/neovim-0.2.2-r1.ebuild | 1 +
 app-editors/neovim/neovim-9999.ebuild     | 1 +
 3 files changed, 3 insertions(+)