sm-discuss AT lists.ibiblio.org
Subject: Public SourceMage Discussion List
List archive
- From: Arwed von Merkatz <v.merkatz AT gmx.net>
- To: sm-discuss AT lists.ibiblio.org
- Cc: sm-announce AT lists.ibiblio.org
- Subject: Re: [SM-Discuss] Stable Sorcery 1.12.0 Released!
- Date: Sat, 16 Apr 2005 11:18:00 +0200
On Fri, Apr 15, 2005 at 05:58:36PM -0700, Andrew Stitt wrote:
> The long awaited stable sorcery 1.12.0 has been released!
Thanks to the sorcery team for this :)
[...]
> Things primarily of interest to spell writers:
>
> * new filter functions, in addition to excluded and protected there are
> now "volatiles" and "configs" filter files. Volatile files are ignored
> by cleanse's md5sum check. Config's are treated more carefully by dispel
> and resurrect, config files aren't blatently replaced or removed if we
> detect they are changed. Spell's can also have their own spell level
> filters by just adding a file by the name of the filter to the spell
> directory. The format has also changed to regexp.
>
> * run_script trigger now actually works
>
> * theres some new functions to assist with installing config files nicely
>
> * cross grimoire depends
> http://wiki.sourcemage.org/index.php?page=Cross+Grimoire+Depends
Another new function in libapi that I didn't see in the changelog is
"get_spell_provider". With this function a spell can know which provider
was used for a certain dependency. This is of interest for spells that
need different options for different providers, e.g. galeon2
The current galeon2 spell uses the following to determine options:
if spell_ok mozilla; then
OPTS="$OPTS --with-mozilla=mozilla"
else
OPTS="$OPTS --with-mozilla=firefox"
fi &&
With the new function this would look like:
if test $(get_spell_provider $SPELL GECKO) == "firefox"; then
OPTS="$OPTS --with-mozilla=firefox"
else
OPTS="$OPTS --with-mozilla=mozilla"
fi
The advantage of this is that the choice the user makes for the provider
actually gets used if he has both mozilla and firefox installed.
mozilla/firefox is an obvious example for the usage of this function as
there are now several apps that can be built against both, but I'm sure
there are other providers for which this is useful too.
--
Arwed v. Merkatz Source Mage GNU/Linux developer
http://www.sourcemage.org
-
[SM-Discuss] Stable Sorcery 1.12.0 Released!,
Andrew Stitt, 04/15/2005
- Re: [SM-Discuss] Stable Sorcery 1.12.0 Released!, Karsten Behrmann, 04/15/2005
- Re: [SM-Discuss] Stable Sorcery 1.12.0 Released!, Eric Sandall, 04/15/2005
-
Re: [SM-Discuss] Stable Sorcery 1.12.0 Released!,
Seth Alan Woolley, 04/15/2005
- Re: [SM-Announce] Re: [SM-Discuss] Stable Sorcery 1.12.0 Released!, Andrew, 04/15/2005
- Re: [SM-Discuss] Stable Sorcery 1.12.0 Released!, Arwed von Merkatz, 04/16/2005
Archive powered by MHonArc 2.6.24.