On 3 October 2014 13:38, Jean Pierre Sabbagh El Rami <jp.elr...@gmail.com> wrote: > Hi > > I'm having an issue to use global variable in the rockspec version 2.2.0 > > here is my code: > > package = "lualoggingapender" > version = "1.0-1" > source = { > url = "", > dir = "lib", > dir = "logging"
This may be a typo, but just in case: you shouldn't have two dir entries here. > } > description = { > summary = "", > detailed = [[ ]], > homepage = "", > license = "MIT/X11" > } > dependencies = { > "lua ~> 5.1", > } > build = { > platforms = { > unix = { > type = "none", > install = { > lua = { > ['logging.syslog'] = "logging/syslog.lua", > } > }, > > type = "command", > install_command = "cp lib/syslog.so > /usr/lib64/lua/5.1" > }, > } > } > > I wanted to replace the 5.1 to global variable $(LUA_VERSION) like in the > configure file, but it doesn't work. Any idea how to fix it How is lib/syslog.so built? It shouldn't be installing a pre-built .so file in the "build" section of the rockspec. > Also on the side note no matter if I change the LUA_LIBDIR =/usr/lib64 in > the configure file build.install.lib will always copy the .so file to > usr/lib this why I used install_command instead, any idea why it is doing > that, is it hard-coded ? but luarocks copy itself to the right folder It is configurable in the ~/.luarocks/config.lua file: lib_module_path = "/lib64/lua/"..lua_version This will make it use this path pattern in all local rocks trees. -- Hisham ------------------------------------------------------------------------------ Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk _______________________________________________ Luarocks-developers mailing list Luarocks-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/luarocks-developers