[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-zile] Checking for Lua libraries
From: |
Reuben Thomas |
Subject: |
Re: [Bug-zile] Checking for Lua libraries |
Date: |
Mon, 19 Sep 2011 13:05:49 +0100 |
On 19 September 2011 06:26, Gary V. Vaughan <address@hidden> wrote:
> Hi Reuben,
>
> On 19 Sep 2011, at 04:16, Reuben Thomas wrote:
>
> DRY dictates that you don't want to write the checks once in autoconf
> and then again in lua, so I think a small parameterized function in
> Lua seems like the best compromise - configure can call a harness
> with library name and version ranges to be passed to the function, and
> at runtime, Lua can call the same function again to make sure no-one
> pulled the rug out from under its feet.
I think what I suggested is actually less repetitive: configure just
calls a Lua script calls "require.lua" or "dependencies.lua" or some
such and checks it exits with zero status. Exactly the same script is
run by the application on startup. The dependencies and versions (and
any other more annoying checks that are needed) are all contained,
just once, in the script.
> However, doesn't FFI obsolete all this in short order?
Hopefully, but there's a lot of work to do there and I am not yet sure
how successful it will be.
--
http://rrt.sc3d.org