Skip to Content.
Sympa Menu

sm-users - Re: [SM-Users] menuconfig for casts

sm-users AT lists.ibiblio.org

Subject: Sourcemage Users List

List archive

Chronological Thread  
  • From: Andrew Stitt <afrayedknot AT thefrayedknot.armory.com>
  • To: sm-users AT lists.ibiblio.org
  • Subject: Re: [SM-Users] menuconfig for casts
  • Date: Thu, 21 Dec 2006 09:46:38 -0800

On Thu, Dec 21, 2006 at 08:23:20AM +0200, Juuso Alasuutari wrote:
> On Thursday 21 December 2006 01:23, Eric Sandall wrote:
> <snip>
> > We do have defaults, at least for queries, but not optional dependencies
> > (though those can be set by using `sorcery default add ...`.
> >
> > Perhaps another Sorcery feature would be to 'silence' queries/optional
> > dependencies which have already been answered. If you enabled this
> > option, you wouldn't be asked to continue using xorg to provide X11-LIBS
> > *unless* you used -r when casting. Would that work?
>
> I think all pre-answered prompts should be skipped, it shouldn't only be an
> option. On the contrary I think an uninterrupted configure && depends phase
> should be the norm whenever possible, afterall we do have -r for
> reconfiguring.
>
> Maybe if this would become the norm we could then add a refined -r option
> to
> cast that would let the user define what kind of prompts should be re-asked
> during cast. That way it wouldn't be an all-or-nothing situation, but
> instead
> you could decide to recast e.g. all your X11-dependent spells and only have
> the provider prompts bother you (and in all other cases have them _not_
> bother you, unlike now).
>

This (and the other rescent comments) are just one particular instance
along the continuum of how eager sorcery should be about asking questions
and how hard it should look for a default. This particular instance
is just near one of the extremities, biased against asking questions.
Really what you're asking for is a higher degree of granularity between
cast with and without -r. Not everyone wants the same behavior of course.

I think any future discussion needs to be outside the realm of personal
preferences about individual questions and on the larger picture of how
to control what questions users are asked and when.

Please frame this discussion within the context that PREPARE,
CONFIGURE and DEPENDS may only be executed *once*, and may not be
parsed. You absolutely can not run them more than once, you can not
make any assumptions about what they do, what the code looks like,
none of that. You may only assume that when the files want to ask
the user a question, control eventually ends up in a grimoire/sorcery
function. Within that function you do not and can not know the answers
to subsequent unasked/unanswered questions. Sorry if I seem blunt or
like Im being difficult, but if we want to have a productive intelligent
technical discussion, we have to talk about how things actually work,
not how we want them to work or think they work. This particular
(year-old) thread had some issues with that, and I'd like to move
past that.

-Andrew

--
_________________________________________________________________________
| Andrew D. Stitt | acedit at armory.com | astitt at sourcemage.org |
| irc: afrayedknot | Sorcery Team Lead | ftp://t.armory.com/ |
| 1024D/D39B096C | 76E4 728A 04EE 62B2 A09A 96D7 4D9E 239B D39B 096C |
-------------------------------------------------------------------------




Archive powered by MHonArc 2.6.24.

Top of Page