Skip to Content.
Sympa Menu

sm-grimoire - [SM-Grimoire] Deleting spells...

sm-grimoire AT lists.ibiblio.org

Subject: Discussion of Spells and Grimoire items

List archive

Chronological Thread  
  • From: Tony Smith <tony AT smee.org>
  • To: sm-grimoire AT lists.ibiblio.org
  • Subject: [SM-Grimoire] Deleting spells...
  • Date: Fri, 5 Sep 2003 09:22:41 +0100

Hi,

I've just had a problem where some deleted spells have cost me about a day
and
a half of rebuilding, and my conclusion is that a really useful addition to
sorcery and the grimoires would be to provide for removal of redundant
packages as part of spell casting - after getting confirmation from the user
of course! By this I mean that spells could enter a "to-be-deleted" state
before actually being deleted. They could still be cast - subject to a
warning - but updates should prompt to dispel these spells.

None of the above would have prevented me hitting the problem as it turns
out,
but it would have made it easier for me to cope with at a time of my
choosing.

What happened was this. I ran an update, and in the output noticed that Xft,
Xft2 and Xrender were no longer in the grimoire. I wondered about that, and
looking in Perforce, I found this:

Change 10741 by arwed_von_merkatz@arwed-Otherland on 2003/03/27 20:10:27

removed the Xft1 Xft2 and Xrender spells
i grepped through the whole grimoire, no references to these
spells
anymore

(not blaming you Arwed, it was an easy mistake to make and there's not really
a good way of handling this at the moment)

So I thought, OK I might as well dispel them. After that all hell broke
loose.
OK, there are no references to these spells in any DEPENDS files, but that's
not to say they've not been used - several packages look for the libXft in
their configure scripts and they will use it if it's installed.

I ended up having to rebuild almost every X based spell I had cast ("cast
--fix" wasn't doing them in the right order for some reason). Then when I
still couldn't get Mozilla to cast, I found this in the BUILD.

./configure \
--prefix=$INSTALL_ROOT/usr \
--with-x \
--with-pthreads \
--enable-xft \ <<<------ YIKES!

So

(a) when you use --enable-XXX in a BUILD, please take care to include XXX in
the DEPENDS if appropriate and

(b) when you search for references to a spell don't just rely on the DEPENDS
files.

And lastly, if you still have Xft, Xft2 and Xrender installed on your
machine,
then this problem is out there waiting for you. Either don't dispel them, or
be prepared to do a fair amount of casting.

Tony





Archive powered by MHonArc 2.6.24.

Top of Page