From 6abbf81ef2f298e3221ff5e67a1f3c5f23958212 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 14 Dec 2020 13:26:14 +0000 Subject: gentoo resync : 14.12.2020 --- .../files/vlc-3.0.11.1-configure_lua_version.patch | 47 ++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 media-video/vlc/files/vlc-3.0.11.1-configure_lua_version.patch (limited to 'media-video/vlc/files') diff --git a/media-video/vlc/files/vlc-3.0.11.1-configure_lua_version.patch b/media-video/vlc/files/vlc-3.0.11.1-configure_lua_version.patch new file mode 100644 index 000000000000..0bf8faf4da80 --- /dev/null +++ b/media-video/vlc/files/vlc-3.0.11.1-configure_lua_version.patch @@ -0,0 +1,47 @@ +Only look for one single version of Lua: the one pointed to by the +pkgconfig package 'lua'. The wrapper set up by lua eclasses will take care +of the rest. + +--- a/configure.ac ++++ b/configure.ac +@@ -1676,37 +1676,10 @@ + [disable LUA scripting support (default enabled)])]) + if test "${enable_lua}" != "no" + then +- PKG_CHECK_MODULES(LUA, lua5.2, ++ PKG_CHECK_MODULES(LUA, lua, + [ have_lua=yes ], +- [ +- AC_MSG_WARN([${LUA_PKG_ERRORS}, trying lua 5.1 instead]) +- +- PKG_CHECK_MODULES(LUA, lua5.1, +- [ have_lua=yes ], +- [ +- AC_MSG_WARN([${LUA_PKG_ERRORS}, trying lua >= 5.1 instead]) +- PKG_CHECK_MODULES(LUA, lua >= 5.1, +- [ have_lua=yes ], +- [ +- AC_MSG_WARN([${LUA_PKG_ERRORS}, trying manual detection instead]) +- have_lua=yes +- AC_CHECK_HEADERS([lua.h lauxlib.h lualib.h], +- [], +- [ have_lua=no ] ) +- AC_CHECK_LIB( lua5.2 , luaL_newstate, +- [LUA_LIBS="-llua5.2"], +- AC_CHECK_LIB( lua5.1 , luaL_newstate, +- [LUA_LIBS="-llua5.1"], +- AC_CHECK_LIB( lua51 , luaL_newstate, +- [LUA_LIBS="-llua51"], +- AC_CHECK_LIB( lua , luaL_newstate, +- [LUA_LIBS="-llua"], +- [ have_lua=no +- ], [-lm]) +- ))) +- ]) +- ]) +- ]) ++ [ have_lua=no ] ++ ) + if test "x${have_lua}" != "xyes" ; then + AC_MSG_ERROR([Could not find lua. Lua is needed for some interfaces (rc, telnet, http) as well as many other custom scripts. Use --disable-lua to ignore this error.]) + fi -- cgit v1.2.3