Skip to Content.
Sympa Menu

sm-discuss - Re: [SM-Discuss] installwatch invocation in sorcery

sm-discuss AT lists.ibiblio.org

Subject: Public SourceMage Discussion List

List archive

Chronological Thread  
  • From: Andrew <afrayedknot AT thefrayedknot.armory.com>
  • To: sm-discuss AT lists.ibiblio.org
  • Subject: Re: [SM-Discuss] installwatch invocation in sorcery
  • Date: Mon, 24 May 2004 10:28:16 -0700


installwatch is not turned on in prepare_install. it is on for most of
the build pipeline until POST_BUILD (in api 1) is called, which does
the final turning off.

The reason it is on is because sometimes spells will install stuff before
prepare_install is run, and having it on all the time will cause those
files to be tracked when they otherwise wouldnt be. Files in /usr/src
are specifically filtered out of the listing.

If you want more alien files we can certainly have an option to put
"invoke installwatch in prepare_install", im just warning you you're
not going to like it.

Your logic of sorcery tracking things that weren't installed by the
spell does not make any sense to me. It tracks everything that the spell
does, then filters out things that dont exist anymore or are in certain
special places.

So what if /usr/doc is tracked by every spell? Lots of spells "track"
/usr and /usr/share and all sorts of other things, I've never seen any
problems with it. Maybe your understanding of file and directory tracking
is incorrect because I see no problem with tracking /usr/doc

Also, how does installwatch being on cause spell failures? Bug 3846
is about tmpfs.

-Andrew

On Sun, May 23, 2004 at 09:37:49PM +0200, Eric Schabell wrote:
> I was under the impression that it was turned on with the call to
> prepare_install... but have never done any coding around the
> installwatch stuff.
>
> erics
>
> > Probably because it's always been that way and no one has noticed it and
> > fixed it.
> >
> > On Sun, 2004-23-05 at 20:06 +0200, Arwed von Merkatz wrote:
> > > Hi,
> > >
> > > got a question for our sorcery hackers:
> > > Why does installwatch get loaded before BUILD is executed and not in
> > > prepare_install?
> > >
> > > This makes sorcery track directories that didn't get installed by the
> > > spell at all.
> > > e.g. with gather_docs now putting stuff in /usr/share/doc instead of
> > > /usr/doc, /usr/doc still gets tracked by _every_ spell, because it used
> > > to put stuff in /usr/doc which got removed when dispelling it, making
> > > installwatch think /usr/doc changed.
> > >
> > > installwatch running all the time during BUILD is also the cause for
> > > some spell failures (see bug #3846 for an example).
> > >



> _______________________________________________
> SM-Discuss mailing list
> SM-Discuss AT lists.ibiblio.org
> http://lists.ibiblio.org/mailman/listinfo/sm-discuss


--
__________________________________________________________________________
|Andrew D. Stitt | astitt at sourcemage.org |
|irc: afrayedknot | afrayedknot at t.armory.com |
|aim: thefrayedknot or iteratorplusplus | |
|Sorcery Team Lead, Porting Team Lead | |
|Grimoire Guru ham/smgl | ftp://t.armory.com |
|Author and Maintainer of Prometheus | |
--------------------------------------------------------------------------




Archive powered by MHonArc 2.6.24.

Top of Page