From: "Hal E. Fulton" Date: 2003-07-29T01:38:44+09:00 Subject: Re: install questions ----- Original Message ----- From: "Mark Wilson" To: "ruby-talk ML" Sent: Monday, July 28, 2003 11:16 AM Subject: Re: install questions > > On Mon July 28 2003 9:43 am, Hal E. Fulton wrote: > >> 1. Automatic installation of dependencies. > >> In the absence of a good mechanism for > >> handling dependencies (in install.rb or > >> raa-install or elsewhere) -- we could always > >> handle it explicitly. Supposing an app X > >> needed libraries Y and Z -- we could write > >> pre_setup.rb so that it in effect did this: > >> - check for Y and Z > >> - prompt user: perform auto-install? > >> - try to install over net (via raa-install > >> or whatever) > >> What do you think? > > [snip] > > I think this would be a good idea. As to implemented practice in this > area, Debian (and the Mac OS X variant, fink) handle dependencies very > well. Well, to clarify, I wasn't thinking of a general solution. I was thinking of 20-30 lines of custom code per package, nestled in pre_setup.rb (called at the start of install.rb's setup phase) -- code written by the person creating the package, in this case myself. A general solution would be better. But I've looked at the code for raa-install and there are large parts of it I have yet to understand. Hal -- Hal Fulton hal9000@hypermetrics.com