As asked for in https://community.ipfire.org/t/dump-location-database/12074/6, please add LUA bindings for libloc aka location/GeoIP. Those bindings are necessary to access the location database from LUA scripts, in this case from HAProxy. For further reference: https://www.ipfire.org/blog/ipfire-location-lua-bindings-for-fun-and-profit Thanks, Michael
Hello, currently we don't have a release tagged that contains all the changes. A couple of things are still outstanding of which I have fixed a few harder ones today. We will upgrade and ship the Lua module as soon as possible.
Thanks Michael, I'm looking forward to the release 😀
Are there prerequists, like recompiling the location binaries with LUA interfaces, just curious! Guess, I cannot simply replace those binaries, right, currently I'm on core 188.
Yes, there have been loads of changes to the library and functions being added that are only used by Lua. That is to keep the logic in the library and have the bindings as simple as possible.
May I assume that the latest release of IPFire 189 does not include a modified version of libloc to get those LUA bindings? I know you guys are busy but is there an approx. date when I can expect the bindings to be available?
(In reply to Michael from comment #5) > May I assume that the latest release of IPFire 189 does not include a > modified version of libloc to get those LUA bindings? No, it was not scheduled to. > I know you guys are busy but is there an approx. date when I can expect the > bindings to be available? If you want a date, then it is probably going to be next year. Unless you want to help me iron out the remaining bugs before we can tag a release. I think it might be done, I am just not sure what new regressions it might introduce.
Thanks Mike for the job offer ;-) I doubt that I will be of any help. Programming is no problem at all, however, learning a possible new programming language will be the main barrier right now. Anyway, I will eagerly wait for your work to be finished sometime in future. Thanks for your work!
Any news on this? I understood the former announcement like it would be no big deal to implement/activate LUA support in libloc anytime soon. Thought, that someone already did made up his mind and binaries had "just" to be recompiled to get things running. cu, Michael
(In reply to Michael Tremer from comment #6) > I think it might be done, I am just not sure what new regressions it might > introduce. I still have no clue what could have been broken, but there is no good in the code sitting in the repository and not being used at all by anyone. So I am preparing for a release. Please report any problems that you find. > https://git.ipfire.org/?p=location/libloc.git;a=commitdiff;h=8cbdc19cda26d37dca354135c2825fa6a4d94ff4
https://www.ipfire.org/blog/ipfire-2-29-core-update-193-is-available-for-testing
https://www.ipfire.org/blog/ipfire-2-29-core-update-193-released