From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: <6aaf2d79af665bf1905db13e44e194e5@quanstro.net> Date: Mon, 17 May 2010 00:35:16 -0100 Message-ID: From: Akshat Kumar To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [9fans] nupas update Topicbox-Message-UUID: 2604072c-ead6-11e9-9d60-3106f5b1d025 I left these questions by Ron to be answered collectively by fellow Plan 9 folks who would try out his new "package system". But the conversation deteriorated into a "portage: pros and cons" debate/seminar. My input follows. On 5/16/10, ron minnich wrote: > It actually works quite well, and probably I should just create a > /installed directory, but that > was actually an afterthought. What do you recommend? I've already created mine. :) > Example: I mount python.iso and do an Aki rbind -ra of /n/python/root / > Well ... it just didn't want to work, somehow, although I forget why. > I punted at that > point and did the dircp, I just ran out of time. Is `rbind' a recursive bind, that takes care of binding at all depths? Because that's what you'd need in order for the binds to work. And then you shouldn't have any problems. > So, if we just go with the dircp approach, and copy the files in, what > I hear is missing so far: > - I don't put the installed info into /installed; should I just go > ahead and fix that? > What else? Really, the installed paths would just be there as a log of where things went. A straight `dircp' might seem harsh to some, but in my personal setup, I see no problems with such a log and my WORM dumps being taken every day. Then, reverting just means using the history(1) type tools with respect to the log at /installed/$i. That's only a little slower than a bunch of unmount(1) commands, but in totality, keeps a very efficient maintenance system with no hassles. If I can come up with a general set of commands to revert a given package =E0 la history(1)/yesterday(1), I would put a set of those commands in /installed/$i when the package is installed. Then you just pass it to rc and you're golden. Best, ak