[vlc-devel] [PATCH] Revert "lua: don't call directly config_GetLibDir"

Rémi Denis-Courmont remi at remlab.net
Mon Jul 31 17:08:26 CEST 2017


Le maanantaina 31. heinäkuuta 2017, 11.57.18 EEST Nicolas Chauvet a écrit :
> This fix lua modules loading such as http interface and youtube scripts.
> 
> libdir and datadir are differents kind of directories on Linux.
> The former is for arch dependent content whereas the latter is arch
> indenpendent
> 
> In the case of luac files, the man luac page says
> "Precompiled chunks are not portable across different architectures."
> https://www.lua.org/manual/5.3/luac.html
> So theses files qualifies as been located in a "libdir" directory

How so? VLC explicitly forces the 32-bits scalar ABI for Lua byte code, and 
only officially supports little endian (patch welcome to fix big endian). This 
is necessary to exchange third-party Lua scripts.

So AFAIK, VLC Lua byte code is architecture-independent, and that is very much 
by design.

-- 
雷米‧德尼-库尔蒙
https://www.remlab.net/



More information about the vlc-devel mailing list