summaryrefslogtreecommitdiff
path: root/app-editors/vim/vim-9999.ebuild
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-10-04 14:18:33 +0100
committerSam James <sam@gentoo.org>2022-10-04 14:26:18 +0100
commit319afcf5438ab8eaf1fd6aeaa1db9e985ee29408 (patch)
tree827dfbaaf01b46b4edca74f171a5b038bbff56c2 /app-editors/vim/vim-9999.ebuild
parente774b05676297853c3f001b45373890154f0560d (diff)
downloadgentoo-319afcf5438ab8eaf1fd6aeaa1db9e985ee29408.tar.gz
gentoo-319afcf5438ab8eaf1fd6aeaa1db9e985ee29408.tar.bz2
gentoo-319afcf5438ab8eaf1fd6aeaa1db9e985ee29408.zip
app-editors/vim: fix Lua 5.1 deprecated API implicit. func. decls
Closes: https://bugs.gentoo.org/874690 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'app-editors/vim/vim-9999.ebuild')
-rw-r--r--app-editors/vim/vim-9999.ebuild4
1 files changed, 4 insertions, 0 deletions
diff --git a/app-editors/vim/vim-9999.ebuild b/app-editors/vim/vim-9999.ebuild
index cf0e1d36f09c..cfbe30fe984c 100644
--- a/app-editors/vim/vim-9999.ebuild
+++ b/app-editors/vim/vim-9999.ebuild
@@ -224,6 +224,10 @@ src_configure() {
fi
if use lua; then
+ # -DLUA_COMPAT_OPENLIB=1 is required to enable the
+ # deprecated (in 5.1) luaL_openlib API (#874690)
+ use lua_single_target_lua5-1 && append-cppflags -DLUA_COMPAT_OPENLIB=1
+
myconf+=(
--enable-luainterp
$(use_with lua_single_target_luajit luajit)