Skip to Content.
Sympa Menu

sm-discuss - Re: [SM-Discuss] Improved API for query and store config information

sm-discuss AT lists.ibiblio.org

Subject: Public SourceMage Discussion List

List archive

Chronological Thread  
  • From: Paul <dufflebunk AT dufflebunk.homeip.net>
  • To: sm-discuss <sm-discuss AT lists.ibiblio.org>
  • Subject: Re: [SM-Discuss] Improved API for query and store config information
  • Date: Thu, 18 Mar 2004 19:52:02 -0500

Gentoo and SMGL go their separate ways on this point. Gentoo has the
need for config files to say what you want, we have questions. If there
are spell s you don't want, you can always exile them. If you have
several systems which you want to have have similar setups, you can copy
the /var/state/sorcery/depends file from one to the others, then unless
you cast -r, the same options will be used.

All depends lines have a parameter to explain what it is for. I don't
think the grimoire team has standardized what must be in there... but
some warnings like that might be handy.

On Thu, 2004-03-18 at 17:57, Mads Laursen wrote:
> On 18/03/04 19.19, Vladimír Marek wrote:
> > Hello,
> >
> > I spent some time working with input functions used for configuring
> > spell, and I am proposing new api:
> >
> > http://bugs.sourcemage.org/show_bug.cgi?id=6392
> >
> > I would like to hear your criticism (constructive, where possible :) ),
> > especially from people writing spells. Also where would you put this
> > physically ? libmisc ?
>
> One suggestion, while this is being looked at: I've tried a couple of
> Gentoo boxes, and they have something they call USE flags. It's simply
> a list of options like 'ipv6', 'x11', and so on, which can be on and
> of, and their configuration of packages then check the use flags to
> check the configuration.
>
> The best way I think this could be done in sorcery, is if
> configuration questions could reference a list of common options.
> These would then have a global setting, and the spell could then take
> the global setting as a default. Ideally I think it should have four
> settings: 'no', 'ask-no', 'ask-yes', and 'yes'. The 'yes' and 'no'
> options are obvious, and the 'ask-' counterparts could direct cast to
> ask the question, but default one way or the other. So on a server I
> might have something like: 'X11: no, IPV6: ask-yes, SSL: yes'.
>
> Another thing to consider is the explanation for the question. There
> clearly needs to be a global explanation, for sorcery to use, but one
> might wish for there to be an optional added explanation in the spells
> (e.g. 'Warning: Enabling this option depends on foo, and takes an
> extra hour to compile).
>
> I think this could make it easier to get a consistent setup, while
> maintaining the configurability that is the strong point of SMGL.
> Perhaps an interface to the global presets could even check for and
> inform about the settings and such needed by a preset (e.g. IPv6
> support could check that the kernel has IPv6 at least as a module).
>
> Anyway, hope someone can be inspired by my little brainstorm.
>
> /dossen
>
> ______________________________________________________________________
> _______________________________________________
> SM-Discuss mailing list
> SM-Discuss AT lists.ibiblio.org
> http://lists.ibiblio.org/mailman/listinfo/sm-discuss
--
De mortuis nihil nisi bonum.

Attachment: signature.asc
Description: This is a digitally signed message part




Archive powered by MHonArc 2.6.24.

Top of Page