[OpenWrt-Devel] [PATCH] Add lua-struct 0.2

2016-08-24 Thread Anton D . Kachalov
This library offers basic facilities to convert Lua values to and from C structs.This is very similar to Python's struct.pack/unpack. Signed-off-by: Anton D. Kachalov ---lang/lua-struct/Makefile                  | 62 ++lang/lua-struct/patches/001-makefile.patch

Re: [OpenWrt-Devel] LuaJIT Vs Lua and other questions

2016-08-03 Thread Anton D . Kachalov
Hello, Jo. 30.06.2016, 20:35, "Anton D. Kachalov" : > 30.06.2016, 18:50, "Jo-Philipp Wich" : >>  Hi Anton, >> >>  the problem is that there is no working PROVIDES mechanism in the >>  buildroot. >> >>  We could only modify the Lua packa

Re: [OpenWrt-Devel] LuaJIT Vs Lua and other questions

2016-06-30 Thread Anton D . Kachalov
n a menuconfig setting. > > Can't think of a better solution. > > ~ Jo -- Anton D. Kachalov ITO, Systems Architect Tel: 7 (495) 739-70-00 ext.7613 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Re: [OpenWrt-Devel] LuaJIT Vs Lua and other questions

2016-06-30 Thread Anton D . Kachalov
30.06.2016, 10:26, "Anton D. Kachalov" : > Hello, Jo. > > 30.06.2016, 01:15, "Jo-Philipp Wich" : >>  Hi Anton, >> [...] >>  Overwriting existing packages with other packages having the same name >>  from external feeds is messy and will alway

Re: [OpenWrt-Devel] LuaJIT Vs Lua and other questions

2016-06-30 Thread Anton D . Kachalov
>>  (nginx runs under "nobody"). I'm able to send requests, but get an >>  empty response. Only Nginx running under root lead to receive a >>  proper answers. Socket file has enough permissions. What is the >>  proper way to configure ubus to allow nginx process to make requests >>  to ubus? > > You can ship a /usr/share/acl.d/*.json file along with your application > to whitelist certain ubus namespaces/procedures for a given unix user > context, see > https://github.com/openwrt/luci/commit/81e80c4b876e8e68bb8b022c39d0941e2c1ccb56 > for example. Thanks, I'll try. -- Anton D. Kachalov ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Re: [OpenWrt-Devel] LuaJIT Vs Lua and other questions

2016-06-29 Thread Anton D . Kachalov
Hello there. Could someone advise what is the right place to discuss this topic? Thanks. 06.06.2016, 11:15, "Anton D. Kachalov" : > Hello. > > I'm trying to replace standard "lua" package with "luajit" from my repo: > >   https://github.com/ya-m

Re: [OpenWrt-Devel] Support for callable metatable for ubus-lua

2016-06-29 Thread Anton D . Kachalov
Hi. Who is the right person to address such question? Felix, Luka? 17.06.2016, 18:10, "Anton D. Kachalov" : > Hello. > > I'm newbie in Lua and tries to expose several objects' methods to ubus. In > current implementation only function is allowed as methods, but I

[OpenWrt-Devel] Support for callable metatable for ubus-lua

2016-06-17 Thread Anton D . Kachalov
end}) return { get = { _g, { } }, set = { _s, { duty = ubus.INT32 } }, fanmap = { _f, { } } } end = So, I wrote a little patch to add additional check for "__call" metamethod to make it possible. BTW. There is no code to check signatures (

[OpenWrt-Devel] LuaJIT Vs Lua and other questions

2016-06-06 Thread Anton D . Kachalov
mc_target" will not install all targets. Only explicit add works: "scipts/feeds -p openbmc_target TARGET_NAME". Why dash isn't allowed in feed's name, but for packages it's fine? E.g. "src-git openbmc-target https://github.com/ya-mouse/openbmc-target.git"