[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] Omnia 0.1.0
- From: Hisham <h@...>
- Date: Sat, 18 Apr 2015 23:00:03 -0300
On 18 April 2015 at 04:47, Eduardo Tongson <propolice@gmail.com> wrote:
> Delighted to announce the first public release of Omnia[1]
>
> It's another Lua 5.3.0 build system similar to LuaDist[2] and luabuild[3].
>
> Ripped out the build system from another project of mine then replaced
> srlua with luawrapper[4]. My main use case is statically linking with
> Musl on Linux but it should be possible to support other systems that
> can run ELF executables.
>
> The only requirements for building are:
> make
> m4
> binutils
> cc
>
> At the moment the modules that can be bundled are:
> luaposix
> linotify
> lpeg
> lsocket
>
> It's trivial to add plain Lua modules. More info at the project
> URL[1]. Download here[5]. Feel free to submit a Github issue if you
> need a particular module bundled.
Hi!
Congrats on the release! Here's some feedback.
My first attempt was to close the repo and run "make".
I got these errors, typical of a missing -lm somewhere (the "Getting
started" step didn't mention editing compiler or platform flags
anywhere, though)
[CC] bin/luac
/Data/Variable/tmp/ccfOyfGn.o: In function `numarith':
one.c:(.text+0xc9f5): undefined reference to `pow'
one.c:(.text+0xca05): undefined reference to `floor'
one.c:(.text+0xca20): undefined reference to `fmod'
/Data/Variable/tmp/ccfOyfGn.o: In function `numisinteger':
one.c:(.text+0x12651): undefined reference to `floor'
/Data/Variable/tmp/ccfOyfGn.o: In function `tointeger_aux':
one.c:(.text+0x14e0f): undefined reference to `floor'
/Data/Variable/tmp/ccfOyfGn.o: In function `luaV_execute':
one.c:(.text+0x17e30): undefined reference to `fmod'
one.c:(.text+0x18087): undefined reference to `floor'
one.c:(.text+0x18209): undefined reference to `pow'
collect2: error: ld returned 1 exit status
aux/rules.mk:2: recipe for target 'bin/luac' failed
make: *** [bin/luac] Error 1
(This is on 32-bit Linux.)
And here's a feature suggestion for future releases: LuaRocks integration.
"What??", you might say, "This is minimalistic, all-static, LuaRocks
doesn't fit the picture".
However, 75% of all LuaRocks packages use the builtin build system, so
in theory they can be mechanically integrated into your system. Have
LuaRocks install them into a sandbox directory (`luarocks install
--tree=/some/sandbox foo`), and then move files over. Using it to
compile C code statically is more work, but it's also mechanizable, as
all the information you need is in the rockspec
(luarocks/build/builtin.lua shows how to use it). With that machinery
in place, then adding new modules would be really, single-line
trivial.
For the other 25%, you can simply fail if build.type in a rockspec is
~= "builtin" with "unsupported package", and you'll still have
hundreds of new packages for your users to choose from. Plus, your
users get dependency tracking for free when integrating modules.
Cheers,
-- Hisham