chicken-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-hackers] [PATCH] chicken-status: add -eggs command line opt


From: Mario Domenech Goulart
Subject: Re: [Chicken-hackers] [PATCH] chicken-status: add -eggs command line option
Date: Sat, 15 Dec 2012 12:20:29 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux)

Hi Felix,

On Sat, 15 Dec 2012 16:49:06 +0100 (CET) Felix <address@hidden> wrote:

>>> Shouldn't "chicken-install -reinstall" do this?
>> 
>> Actually that was just a use case.  Its main purpose is to list eggs,
>> AFAIK, we don't have a tool to do that.
>
> Ok, I see.
>
>> 
>> Is it possible (and easy) to use -reinstall to install eggs on another
>> chicken's prefix?  Note that the example above we have different
>> installation prefixes (<new-prefix> and <old-prefix>).
>
> No, that would be not supported. I don't think it is necessary to add
> such a feature, though, since "chicken-status -list" already does
> this.
>
> I think I'm probably missing something.

Maybe _I_ am missing something. :-)

The thing is that chicken-status currently list extensions, not eggs.

Here's an example:

  $ chicken-install utf8
  $ chicken-status utf
  utf8 .................................................. version: 3.3.6
  utf8-case-map ..........................................version: 3.3.6
  utf8-lolevel .......................................... version: 3.3.6
  utf8-srfi-13 ...........................................version: 3.3.6
  utf8-srfi-14 .......................................... version: 3.3.6

The only egg in that list is utf8.  All the other utf8-* things are
_extensions_ installed by the utf8 egg.

The patch I submitted makes chicken-status list _eggs_ only:

  $ chicken-status -eggs utf
  utf8

It can also be handy in cases like you install a new chicken (or install
chicken on another prefix) and want to install for the new chicken all
the eggs installed by the old chicken.  So you just

  $ <new-prefix>/bin/chicken-install `<old-prefix>/bin/chicken-status -eggs`

If you do the same using the output of chicken-status as it is now,
you'll be asking chicken-install to install a bunch of eggs that don't
exist.


Best wishes.
Mario
-- 
http://parenteses.org/mario



reply via email to

[Prev in Thread] Current Thread [Next in Thread]