commit: a41718ec4c26b8aac76dd79e71709d5585807253 Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Tue Oct 4 13:26:11 2022 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Tue Oct 4 13:26:50 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a41718ec
app-editors/gvim: fix Lua 5.1 deprecated API implicit. func. decls Closes: https://bugs.gentoo.org/874690 Signed-off-by: Sam James <sam <AT> gentoo.org> app-editors/gvim/gvim-9.0.0099.ebuild | 4 ++++ app-editors/gvim/gvim-9.0.0399.ebuild | 4 ++++ app-editors/gvim/gvim-9999.ebuild | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/app-editors/gvim/gvim-9.0.0099.ebuild b/app-editors/gvim/gvim-9.0.0099.ebuild index 94b5164b1a3a..66d81a92fa7a 100644 --- a/app-editors/gvim/gvim-9.0.0099.ebuild +++ b/app-editors/gvim/gvim-9.0.0099.ebuild @@ -209,6 +209,10 @@ src_configure() { ) 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) diff --git a/app-editors/gvim/gvim-9.0.0399.ebuild b/app-editors/gvim/gvim-9.0.0399.ebuild index 27e25b32be34..41d899a1c67d 100644 --- a/app-editors/gvim/gvim-9.0.0399.ebuild +++ b/app-editors/gvim/gvim-9.0.0399.ebuild @@ -210,6 +210,10 @@ src_configure() { ) 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) diff --git a/app-editors/gvim/gvim-9999.ebuild b/app-editors/gvim/gvim-9999.ebuild index fe0d1d0e564f..66490dcc956e 100644 --- a/app-editors/gvim/gvim-9999.ebuild +++ b/app-editors/gvim/gvim-9999.ebuild @@ -209,6 +209,10 @@ src_configure() { ) 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)
