commit:     319afcf5438ab8eaf1fd6aeaa1db9e985ee29408
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Oct  4 13:18:33 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Oct  4 13:26:18 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=319afcf5

app-editors/vim: 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/vim/{vim-8.2.4586.ebuild => vim-8.2.4586-r1.ebuild}    | 4 ++++
 app-editors/vim/{vim-8.2.5066-r1.ebuild => vim-8.2.5066-r2.ebuild} | 4 ++++
 app-editors/vim/{vim-9.0.0049.ebuild => vim-9.0.0049-r1.ebuild}    | 4 ++++
 app-editors/vim/{vim-9.0.0099.ebuild => vim-9.0.0099-r1.ebuild}    | 4 ++++
 app-editors/vim/vim-9999.ebuild                                    | 4 ++++
 5 files changed, 20 insertions(+)

diff --git a/app-editors/vim/vim-8.2.4586.ebuild 
b/app-editors/vim/vim-8.2.4586-r1.ebuild
similarity index 98%
rename from app-editors/vim/vim-8.2.4586.ebuild
rename to app-editors/vim/vim-8.2.4586-r1.ebuild
index 50bc75d86ded..4f4958311333 100644
--- a/app-editors/vim/vim-8.2.4586.ebuild
+++ b/app-editors/vim/vim-8.2.4586-r1.ebuild
@@ -226,6 +226,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)

diff --git a/app-editors/vim/vim-8.2.5066-r1.ebuild 
b/app-editors/vim/vim-8.2.5066-r2.ebuild
similarity index 98%
rename from app-editors/vim/vim-8.2.5066-r1.ebuild
rename to app-editors/vim/vim-8.2.5066-r2.ebuild
index bcec32097911..0d33a966a9b4 100644
--- a/app-editors/vim/vim-8.2.5066-r1.ebuild
+++ b/app-editors/vim/vim-8.2.5066-r2.ebuild
@@ -226,6 +226,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)

diff --git a/app-editors/vim/vim-9.0.0049.ebuild 
b/app-editors/vim/vim-9.0.0049-r1.ebuild
similarity index 98%
rename from app-editors/vim/vim-9.0.0049.ebuild
rename to app-editors/vim/vim-9.0.0049-r1.ebuild
index 9bd88fc46ed9..81c24b888fdf 100644
--- a/app-editors/vim/vim-9.0.0049.ebuild
+++ b/app-editors/vim/vim-9.0.0049-r1.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)

diff --git a/app-editors/vim/vim-9.0.0099.ebuild 
b/app-editors/vim/vim-9.0.0099-r1.ebuild
similarity index 98%
rename from app-editors/vim/vim-9.0.0099.ebuild
rename to app-editors/vim/vim-9.0.0099-r1.ebuild
index ac5d29c84a4c..7b427e86607f 100644
--- a/app-editors/vim/vim-9.0.0099.ebuild
+++ b/app-editors/vim/vim-9.0.0099-r1.ebuild
@@ -225,6 +225,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)

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)

Reply via email to