Skip to Content.
Sympa Menu

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

sm-discuss AT lists.ibiblio.org

Subject: Public SourceMage Discussion List

List archive

Chronological Thread  
  • From: Treeve Jelbert <treeve01 AT pi.be>
  • To: sm-discuss AT lists.ibiblio.org
  • Subject: [SM-Discuss] Re:installwatch invocation in sorcery
  • Date: Mon, 24 May 2004 20:25:57 +0200

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Monday 24 May 2004 19:44, Arwed von Merkatz wrote:
> On Mon, May 24, 2004 at 10:28:16AM -0700, Andrew wrote:
> > 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.
>
> What spell installs anything before prepare_install? That would
> definitely be a bug.
>
if you track things before prepare_install, the next time the spell is cast,
it will also install stuff, then prepare_install will delete it all and you
have an incomplete spell.
This is why some spells conflict with themselves.

It's better to catch the aliens separately and then fix the various spells.


> > 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
>
> Tracking /usr/doc is a problem because the spell doesn't install
> anything to it, same for /usr/man/man? in most spells i recently cast.
>
> > Also, how does installwatch being on cause spell failures? Bug 3846
> > is about tmpfs.
>
> That was the initial thing i suspected, but it's caused by installwatch
> breaking tar during the installation of the bootstrap ada compiler.
>
> > -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
> > | | |
> >
> > -------------------------------------------------------------------------
> >- _______________________________________________
> > SM-Discuss mailing list
> > SM-Discuss AT lists.ibiblio.org
> > http://lists.ibiblio.org/mailman/listinfo/sm-discuss
Regards, Treeve

- --
PGP Key ID: AB929B24
PGP Key Fingerprint:31D9 D22F 42E6 F545 662E AB6F 9697 34C5 AB92 9B24
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAsj41lpc0xauSmyQRAtS5AKCSnc6ntAtO0pWbnTPp2WCKPww2wACgireQ
ZSP+bVusuJRXZGlwcukbf0M=
=aWUX
-----END PGP SIGNATURE-----




Archive powered by MHonArc 2.6.24.

Top of Page