Hi, Hisham, everybody!
On 11.09.2012 01:25:17, Hisham wrote:
> I'm struggling with a design issue regarding multiple local trees, and
> I'd like to hear your opinions.
AFAIU, there are one big question and several small technical questions:
1. How should LR handle multi-trees ?
2a. How trees should be handled
2b. How deps should be handled
2c. How to handle manifest file(s)
I believe that to answer the 1st question we need to answer another
(simple) question:
> Q: What is LR?
I know a simple answer (from the README):
> a deployment and management system for Lua modules.
Well, this looks very much like a Package Management System (like RPM
or DEB).
Ok. Now let's look at some things that may lead us to the right
direction. Those are: $LUA_PATH, RPM/DEB.
1. $LUA_PATH (similar to $PATH, $LD_LIBRARY_PATH):
1. allows access to lua libraries that are placed in multi-trees.
2a. do not imply any rules on where files should be put.
2b. do not control dependencies
2c. do not have/need any cache files (ld.so has ld.so.cache but
that's optional)
2. RPM/DEB
1. cannot handle multi-tree (at one shot).
I myself can't remember any other Package Management System
supporting multi-tree. (BSD-ish maybe? I don't know.)
2a. have rules where to put files (mainly according to FHS(1))
2b. strong in controlling deps
2c. have DB which is mandatory.
So speaking of LR, if it's a Package Management System, then it
probably shouldn't handle multi-trees in terms of deps checking. PERIOD.
But if treating LR as "packaging of what is in $LUA_PATH", then there
could be an alternative design:
1. LR follows $LUA_PATH and handles multi-tree according to it.
$LUA_CPATH should be taken into account too.
2a. -||-
2b. LR shall control deps.
2c. manifest file existence and placement should be rethought.
Need to elaborate further. But for now what do you think?
Sorry that my post is quite long. But I hope that its SNR(2) is
reasonably high.
(1) http://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard
(2) http://en.wikipedia.org/wiki/Signal-to-noise_ratio
Regards,
--
Ildar Mulyukov, free SW designer/programmer
================================================
email: [email protected]
blog: http://johan-notes.blogspot.com/
ALT Linux Sisyphus
================================================
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Luarocks-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/luarocks-developers