sm-discuss AT lists.ibiblio.org
Subject: Public SourceMage Discussion List
List archive
Re: [SM-Discuss] Devel sorcery problem with "check_self" in TRIGGERS
- From: Andrew <afrayedknot AT thefrayedknot.armory.com>
- To: sm-discuss AT lists.ibiblio.org
- Subject: Re: [SM-Discuss] Devel sorcery problem with "check_self" in TRIGGERS
- Date: Thu, 28 Apr 2005 18:29:26 -0700
On Thu, Apr 28, 2005 at 06:15:45PM -0700, Andrew wrote:
> On Thu, Apr 28, 2005 at 09:07:58PM -0400, Sergey A. Lipnevich wrote:
> > Quoting Andrew <afrayedknot AT thefrayedknot.armory.com>:
> >
> > >Is there anything special about make on your system or the directory
> > >you were in when you ran cast? This might be fallout from fixing bug
> > >8642.
> >
> > Not that I know of. Things like "cleanse --fix" run regularly on my
> > system, once
> > a day probably. Everything seems to function correctly. This is probably
> > the
> > first time cast_self was invoked.
> >
>
> Aha! I've reproduced the problem. If you have cast something and it
> triggers another cast and *that* cast triggers a check_self, you end up
> getting those messages.
>
> Sounds like a bug.
>
Looks like if I unset MAKELEVEL in /etc/sorcery/config the problem goes
away and make stops thinking its being called recursively.
Some background: cast builds a dependency tree and converts it to
a makefile, then has make execute that makefile, the actions from the
makefile then compile the spell and run triggers, which then run cast
again, this time make gets run again and thinks its being run recursively,
so then that instance of make calls cleanse. Now cleanse learns dependency
ordering from make also, but now make is two levels down in recursion so
it feels compelled to tell us when its entering and leaving directories.
Each recursive step make increments the value of the MAKELEVEL variable
(learn something every day), if I unset it then make no longer thinks
its being used for recursively and for actually building things.
-Andrew
--
__________________________________________________________________________
|Andrew D. Stitt | astitt at sourcemage.org |
|irc: afrayedknot | afrayedknot at t.armory.com |
|aim: thefrayedknot or iteratorplusplus | acedit at armory.com |
|Sorcery Team Lead | ftp://t.armory.com/ |
--------------------------------------------------------------------------
Attachment:
pgpUxSWzaohzT.pgp
Description: PGP signature
-
[SM-Discuss] Devel sorcery problem with "check_self" in TRIGGERS,
Sergey A. Lipnevich, 04/28/2005
-
Re: [SM-Discuss] Devel sorcery problem with "check_self" in TRIGGERS,
Andrew, 04/28/2005
-
Re: [SM-Discuss] Devel sorcery problem with "check_self" in TRIGGERS,
Sergey A. Lipnevich, 04/28/2005
-
Re: [SM-Discuss] Devel sorcery problem with "check_self" in TRIGGERS,
Andrew, 04/28/2005
- Re: [SM-Discuss] Devel sorcery problem with "check_self" in TRIGGERS, Andrew, 04/28/2005
-
Re: [SM-Discuss] Devel sorcery problem with "check_self" in TRIGGERS,
Andrew, 04/28/2005
-
Re: [SM-Discuss] Devel sorcery problem with "check_self" in TRIGGERS,
Sergey A. Lipnevich, 04/28/2005
-
Re: [SM-Discuss] Devel sorcery problem with "check_self" in TRIGGERS,
Andrew, 04/28/2005
Archive powered by MHonArc 2.6.24.