[packages/neovim] explicitly set LUA_INCLUDE_DIR for pure lua build

atler atler at pld-linux.org
Tue May 3 20:22:51 CEST 2022


commit 5a19c3a00fffbe399641b0ae02462210ba1b2373
Author: Jan Palus <atler at pld-linux.org>
Date:   Tue May 3 20:21:01 2022 +0200

    explicitly set LUA_INCLUDE_DIR for pure lua build
    
    for whatever reason cmake detection logic searches for lua versions
    higher than 5.1 first even though neovim will likely never support
    anything but lua 5.1

 neovim.spec | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/neovim.spec b/neovim.spec
index f818224..a3c4a0b 100644
--- a/neovim.spec
+++ b/neovim.spec
@@ -88,6 +88,7 @@ parts of Vim, without compromise, and more.
 %cmake -B build \
 	-DPREFER_LUA=%{!?with_prefer_lua:OFF}%{?with_prefer_lua:ON} \
 	-DLUA_PRG=%{!?with_prefer_lua:/usr/bin/luajit}%{?with_prefer_lua:/usr/bin/lua5.1} \
+	-DLUA_INCLUDE_DIR=/usr/include/lua5.1 \
 	-DUSE_BUNDLED=OFF \
 	-DENABLE_JEMALLOC=ON \
 	-DLIBLUV_INCLUDE_DIR=%{luv_includedir} \
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/neovim.git/commitdiff/5a19c3a00fffbe399641b0ae02462210ba1b2373



More information about the pld-cvs-commit mailing list