3.0.0-rc2 wrongly expects the LUA arch-independent files to be present under the configured prefix on runtime
We configure VLC with a host prefix and put the arch-independent files into /usr/share, e.g.:
--build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --prefix=/usr/x86_64-pc-linux-gnu --bindir=/usr/x86_64-pc-linux-gnu/bindir --sbindir=/usr/x86_64-pc-linux-gnu/bin --libdir=/usr/x86_64-pc-linux-gnu/lib --datadir=/usr/share --datarootdir=/usr/share --docdir=/usr/share/doc/vlc-3.0.0_rc2 --infodir=/usr/share/info --mandir=/usr/share/man --sysconfdir=/etc --localstatedir=/var/lib
This works fine, VLC correctly installs all the arch-independent the files under /usr/share, so for LUA we end up with /usr/share/vlc/lua.
On runtime however VLC fails to find the LUA files
$ vlc -I http --http-port 8080 VLC media player 3.0.0-rc2 Vetinari (revision 3.0.0-rc2-0-ga7018fc3) [0000000000e6db30] [cli] lua interface error: Couldn't find lua interface script "cli". [0000000000e6db30] [http] lua interface error: Couldn't find lua interface script "http". [...]
If I manually copy them over to /usr/x86_64-pc-linux-gnu/share/vlc/lua the LUA support in VLC works fine.
$ vlc -I http --http-port 8080 VLC media player 3.0.0-rc2 Vetinari (revision 3.0.0-rc2-0-ga7018fc3) [00000000026ad180] [http] lua interface: Lua HTTP interface [00000000026a0d50] [cli] lua interface: Listening on host "*console". [...]
Somewhere VLC assumes a wrong path for the resources.