Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jul 02 10:16
    alerque commented #1424
  • Jul 02 10:07
    SyntixTheReal closed #1424
  • Jul 02 10:07
    SyntixTheReal commented #1424
  • Jul 02 10:06
    SyntixTheReal commented #1424
  • Jul 02 10:03
    SyntixTheReal commented #1424
  • Jul 02 10:02
    SyntixTheReal commented #1424
  • Jul 02 10:02
    SyntixTheReal commented #1424
  • Jul 02 10:02
    SyntixTheReal commented #1424
  • Jul 02 09:55
    SyntixTheReal opened #1424
  • Jul 01 19:24

    hishamhm on master

    Release 3.9.1 Merge branch '3.9.1' (compare)

  • Jul 01 19:23
    hishamhm closed #1380
  • Jul 01 19:23
    hishamhm commented #1380
  • Jul 01 19:22
    hishamhm unlabeled #1407
  • Jul 01 19:22
    hishamhm closed #1407
  • Jul 01 19:20
    hishamhm commented #1414
  • Jul 01 19:19
    hishamhm commented #1417
  • Jul 01 19:17
    hishamhm unlabeled #1417
  • Jul 01 19:17
    hishamhm labeled #1417
  • Jul 01 19:17
    hishamhm commented #1422
  • Jul 01 19:17
    hishamhm closed #1422
EduardasMeile
@EduardasMeile
a lot of projects do not support cross-compilation properly (nginx included) and need to be patched
also, as a sidenote, after porting some Lua libraries to Yocto/Openembedded (writing bitbake recipes for them) I have become convinced that almost all Lua projects do not care about cross-compilation. All of their custom make files need to fixed in one way or another.
Things like the WSAPI configure file wants to run "which lua" that is not appropriate in a cross-compilation context
and so on
much of this could be avoided if projects used GNU Autotools or CMake instead of custom Makefiles
as these encourage to write projects in a manner that suits cross-compilation better
though at the end of the day one can always mess up, no matter the build system
EduardasMeile
@EduardasMeile
@hishamhm just out of curiosity: has cross-compilation ever come up as a topic when developing Luarocks?
Hisham Muhammad
@hishamhm
@EduardasMeile yes, that's one of the reasons why there are dozens of configuration variables in LuaRocks's config file format and virtually every setting is a moving part. The dependencies for the luarocks.exe binary for Windows are built using LuaRocks on a Linux machine, for example. The capability is there, it's just not user-friendly (you have to know what values to set on those configuration variables).
EduardasMeile
@EduardasMeile
@hishamhm What would be your ideal webserver + lua web framework combination for implementing a web app on an embedded Linux device these days?
Excluding LuCI + uhttpd on OpenWrt as that is too OS-specific
I am kind of thinking now that perhaps nginx might not have been a good choice for a Xavante replacement if one wants to still use lua
Hisham Muhammad
@hishamhm
asking the wrong person, sorry. I haven't done web apps in a long long time
EduardasMeile
@EduardasMeile
@hishamhm perhaps you know a lua web app guru who is an authority in this field and I could actually ask?
Hisham Muhammad
@hishamhm
try the Lua mailing list, perhaps?
EduardasMeile
@EduardasMeile
@hishamhm as a sidenote, I have spent some time on the #lua channel on freenode and as far as I can tell no one is really working with lua web apps or WSAPI these days
or the people working with this stuff maintain legacy applications and don't really participate in community discussions
HarryC145
@HarryC145

Hi all, trying to get LuaRocks working on MacOS
`sh-3.2# luarocks --lua-dir /usr/local/bin --lua-version 5.1 config variables.LUA_LIBDIR /usr/local/lib/
Wrote
variables.LUA_LIBDIR = "/usr/local/lib/"
to
/var/root/.luarocks/config-5.1.lua
sh-3.2# luarocks --lua-dir /usr/local/bin --lua-version 5.1 config variables.LUA_INCDIR /usr/local/include/
Wrote
variables.LUA_INCDIR = "/usr/local/include/"
to
/var/root/.luarocks/config-5.1.lua
sh-3.2# luarocks --lua-dir /usr/local/bin --lua-version 5.1 install luasocket
Installing https://luarocks.org/luasocket-3.0rc1-2.src.rock

Error: Failed finding Lua header files. You may need to install them or configure LUA_INCDIR.`

I'm setting the variables, it's successfully writing them but then doesn't appear to be reading from them. Any ideas please?
Pierre Chapuis
@catwell

What would be your ideal webserver + lua web framework combination for implementing a web app on an embedded Linux device these days?

I don't have an ideal reco but look if you can find something you like in my bookmarks -> https://pinboard.in/u:catwell/t:lua/t:web

Hisham Muhammad
@hishamhm
@HarryC145 the issue is setting --lua-dir /usr/local/bin: --lua-dir expects a "prefix dir", not a "bin dir". By setting a new prefix, this overrides the entire configuration of Lua paths (including bin, lib and include). You can check the results by running luarocks --lua-dir /usr/local/bin config vs. luarocks --lua-dir /usr/local config and seeing how the variables are affected.
in short, --lua-dir /usr/local should do the trick for you, and if you're setting the proper paths using luarocks config, then you shouldn't need to explicitly pass --lua-dir anymore
nepta
@Nepta
hello there
anyone know how to manage multiple version of lua with luarocks ? (in particular having lua5.3 and luajit)
nepta
@Nepta
i am using luaver already to manage my version, but it's weird, i think it want reinstall luarocks when you change your lua version ?
nepta
@Nepta
ok, i think i managed something
by having a config-5.1.lua in etc/config/ with correct variable to point to luajit binary / lib i can use luarocks --lua-version 5.1 to make it manage my luajit config
now i only need to make a wrapper to set the correct LUA_PATH / LUA_CPATH when using luajit
lol main function has more than 120 local variables
hisham_hm
@hisham_hm:matrix.org
[m]
@Nepta you can use the flag --lua-version 5.x, or luarocks --local config lua_version 5.x to set the default permanently
nepta
@Nepta
yes, it's what i use currently
but, to be honnest i did have some issue because i use luavela instead of the standard luajit
and it seem that luarocks have the names hardcoded when looking for the binary (either lua5.1 or luajit)
for now, i adding table.insert(names, "luavela) in util.lua work for me, but i am not familiar enough with luarocks config file, is there a way to add it in config-5.1.lua in some way ? it seem to have a field for it (lua_interpreter)
hisham_hm
@hisham_hm:matrix.org
[m]
yes, you can change the name of the interpreter
nepta
@Nepta
another question, can the "builtin" back-end compile cpp code ?
hisham_hm
@hisham_hm:matrix.org
[m]
no, but there is a cpp backend available in luarocks.org which you can specify using build_dependencies!
nepta
@Nepta
nice ! i will look into it, for now i did a makefile with 'g++' harcoded in it, but the wiki seem to say that it's not a good idea
nepta
@Nepta
'-'
i just saw that you are an admin on luarocks
thanks for your responses
hisham_hm
@hisham_hm:matrix.org
[m]
you're welcome!
alexojo
@alexojo
hello, how could I install CGILUA with LuaRocks on Ubuntu 20.04.
I was installing it by the command "luarocks install cgilua", but my .lp file does not recognize the lua statements.
Erutuon
@Erutuon
Hi, I just noticed that the lpack rock, managed by Luarocks, is indicated as compatible with Lua 5.1, but it doesn't actually compile because it uses a Lua 5.0 type name, luaL_reg (changed to luaL_Reg in Lua 5.1 when it was added to the manual). It must be based on the 5.0 version from LHF's site. Could it be fixed or at least marked as Lua 5.0 only?
Maybe not worth fixing because it's not maintained anymore (and was published with separate source code for each Lua version).
Matthieu Coudron
@teto
hi, si I am looking into luarocks to handle vim plugin management: as of neovim 0.5, there are many lua plugins and they still require everyone to manually setup the plugin dependencies in their init.lua. My hope is that we can use the rockspec format to communicate the dependencies and eventually use luarocks to disseminate these plugins. I wonder if this could be a problem to the luarocks infra/organization ? if not is there any recommendation as to how to handle that ? It's potentially a lot of new packages. Should we use a "neovim" manifest to help with discoveribility for instance ?
Hisham Muhammad
@hishamhm
@teto this should not be a problem from the luarocks side, other projects use luarocks infra for managing plugins (Kong, Mjolnir). As for discoverability, I don't personally think a separate manifest is needed. mjolnir just used the "mjolnir" label, whereas kong uses a kong-plugin-foo naming convention.
Matthieu Coudron
@teto
thanks. That's what I thought but prefered to check
Matthieu Coudron
@teto
seems like labels are not loaded automatically, at least when I go to https://luarocks.org/edit/modules/teto/plenary.nvim I dont see any "neovim" label even though the rockspec specifies it
how can I search by label ?