[vlc-devel] [PATCH 1/5] contrib: lua: autodetect lua >= 5.1

Alexandre Janniaux ajanni at videolabs.io
Tue Apr 7 19:05:39 CEST 2020


Hi,

I can enable this only for Linux if you're worried that you
might have lua5.3 installed in your build environment when
you don't want to.

Do you have details on that 32bit issue? Lua5.3 is branded
as adding support for both 32bit and 64bit platforms.

Regards,
--
Alexandre Janniaux
Videolabs

On Tue, Apr 07, 2020 at 08:16:13AM +0200, Steve Lhomme wrote:
> Adding 5.1 support might be OK. But AFAIK we do not support Lua 5.3, for
> some 32 bits support compatibility issues. Your patch means we won't be Lua
> 5.2 if Lua 5.3 is found for Windows or Mac on the build machine. I don't
> think we want that.
>
> On 2020-04-06 15:56, Alexandre Janniaux wrote:
> > When building on ArchLinux currently, the contrib was built even if
> > lua5.3 is installed. As at least Archlinux and Debian are exposing both
> > a luaX.Y.pc and lua.pc file for the latest supported version of lua,
> > detecting that the system version is correct through lua.pc should
> > also ensure that the latest compatible version is installed and used
> > instead.
> >
> > The other checks are still needed as you can for example install lua5.2
> > (which will expose a lua5.2.pc file but no lua.pc file) without having
> > to install lua (5.3).
> > ---
> >   contrib/src/lua/rules.mak | 3 +++
> >   1 file changed, 3 insertions(+)
> >
> > diff --git a/contrib/src/lua/rules.mak b/contrib/src/lua/rules.mak
> > index d0ce491c91..bf5671572c 100644
> > --- a/contrib/src/lua/rules.mak
> > +++ b/contrib/src/lua/rules.mak
> > @@ -27,6 +27,9 @@ endif
> >   # Feel free to add autodetection if you need to...
> >   PKGS += lua luac
> >   PKGS_ALL += luac
> > +ifeq ($(call need_pkg,"lua >= 5.1"),)
> > +PKGS_FOUND += lua luac
> > +endif
> >   ifeq ($(call need_pkg,"lua5.2"),)
> >   PKGS_FOUND += lua luac
> >   endif
> > --
> > 2.26.0
> >
> > _______________________________________________
> > vlc-devel mailing list
> > To unsubscribe or modify your subscription options:
> > https://mailman.videolan.org/listinfo/vlc-devel
> >
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel


More information about the vlc-devel mailing list