FS#67544 - [vlc] Error loading http interface

Attached to Project: Arch Linux
Opened by Bruno Guerreiro (American_Jesus) - Monday, 10 August 2020, 13:59 GMT
Last edited by David Runge (dvzrv) - Thursday, 04 March 2021, 18:53 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To David Runge (dvzrv)
Levente Polyak (anthraxx)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 3
Private No

Details

Description:
HTTP interface stopped working since Lua 5.4.0

Additional info:
* VLC 3.0.11.1-1

Log:
[http] lua interface error: Error loading script /usr/lib/vlc/lua/intf/http.luac: lua/modules/common.lua:3: attempt to call a nil value (global 'module')


Steps to reproduce:
Enable http interface (View -> Add Interface -> Web)
This task depends upon

Closed by  David Runge (dvzrv)
Thursday, 04 March 2021, 18:53 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed with vlc >= 3.0.11.1-2
Comment by sf (callmejoe) - Thursday, 13 August 2020, 21:38 GMT
i tried downgrading both lua and vlc. that did not fix the problem though
Comment by Benjamin Robin (benjarobin) - Friday, 14 August 2020, 15:47 GMT
/usr/lib/vlc/plugins/lua/liblua_plugin.so is compiled against lua 5.4 instead of lua 5.2

VLC is not compatible with lua 5.4, at least the dependency "lua" should be changed to "lua52"
There was a change about module : http://lua-users.org/wiki/ModulesTutorial
Comment by Benjamin Robin (benjarobin) - Friday, 14 August 2020, 16:00 GMT
Attached the PKGBUILD patch to fix the problem (use lua52 instead of lua)
Comment by Benjamin Robin (benjarobin) - Friday, 14 August 2020, 20:24 GMT
Another solution is to use the following patch that I write (I need to submit it to vlc dev team)
Comment by sf (callmejoe) - Saturday, 15 August 2020, 02:03 GMT
so what is the usual process here? we wait until the maintainer applies the patch? i tried following the wiki to see if i could apply the patch myself, but seems a bit over my pay-grade.
Comment by Benjamin Robin (benjarobin) - Saturday, 15 August 2020, 09:24 GMT
The usual process is to wait for the maintainer to takes a decision on what to do. In the mean time you can build yourself VLC with the patched PKGBUILD.
You just have to download the PKGBUILD with the associated file (for example using yay -G vlc), then apply the PKGBUILD patch (manually or using the patch command), and finally build the package like any AUR package using "makepkg -si"

I reported the problem here: https://trac.videolan.org/vlc/ticket/25036
Comment by sf (callmejoe) - Saturday, 15 August 2020, 16:58 GMT
thanks benjarobin. that worked. makepkg -si initially threw a pgp key error. i just re-ran makepkg with the --skippgpcheck option. probably not the right way to do it, but i couldn't figure out how to fix the key issue.
Comment by Bruno Guerreiro (American_Jesus) - Friday, 21 August 2020, 21:31 GMT
Looks to be fixed with VLC 3.0.11.1-2

Loading...