Project

General

Profile

[Solved] Any workarounds/hacks to get mod_magnet to work again with the latest lighttpd and lua?

Added by HippoMan about 11 years ago

Using the latest versions of lighttpd (1.4.32) and lua (5.2.1), it's impossible to compile mod_magnet, due to lua's having eliminated LUA_GLOBALSINDEX. This is a known issue:

http://redmine.lighttpd.net/issues/2421

Given that the official word seems to be that this will not be fixed in the current lighttpd, nor in the upcoming 5.x releases, has anyone come up with any hacks/workarounds/patches to the 1.4.32 code which will once again allow us to compile and utilize mod_magnet in the latest lighttpd using the latest lua?

I could come up with patches, myself, but I don't want to "re-invent the wheel" if someone has already done this.

If no one responds with anything within a reasonable amount of time (a few days), I'll try to hack out my own patches.

Thanks in advance.


Replies (6)

RE: Any workarounds/hacks to get mod_magnet to work again with the latest lighttpd and lua? - Added by HippoMan about 11 years ago

PS: If a fix for this lua-lighttpd compatibility issue is not planned, is there an alternative to mod_magnet which will allow us to use another embedded programming language to enhance lighttpd? Thank you.

RE: Any workarounds/hacks to get mod_magnet to work again with the latest lighttpd and lua? - Added by HippoMan about 11 years ago

For reasons unrelated to lighttpd, our site needs to use lua 5.2.x. It's an administrative headache to manage multiple versions of our packages, and we'd prefer not to install both lua 5.1.x and 5.2.x, if at all possible.

It's also an administrative headache to patch lighttpd, but given the mix of software on our site, it seems like the lesser of the evils at this point. Of course, I haven't tried to patch lighttpd yet, so I might amend that assertion in the near future. :)

RE: Any workarounds/hacks to get mod_magnet to work again with the latest lighttpd and lua? - Added by stbuehler about 11 years ago

Hm. Well, if you can get us a nice patch which works with lua 5.1 und 5.2 i will consider it applying it upstream - I just don't want to break our "stable" release series.

The main problem is that I need to review such a patch at least (if I don't do it myself), and for that I will need to know the differences from 5.1 to 5.2...

RE: Any workarounds/hacks to get mod_magnet to work again with the latest lighttpd and lua? - Added by HippoMan about 11 years ago

Well, I don't know much about lighttpd internals, and even less about lua, but I'm sure I can learn everything I need to know, and I'll give it a try.

In theory it's possible, however, so I'm sure that eventually I (or someone else) should be able to come up with a suitable patch.

I'll post my results here.

    (1-6/6)