sm-discuss AT lists.ibiblio.org
Subject: Public SourceMage Discussion List
List archive
- From: Eric Sandall <eric AT sandall.us>
- To: sm-discuss AT lists.ibiblio.org
- Subject: Re: [SM-Discuss] meta spells
- Date: Thu, 21 Dec 2006 10:27:41 -0800
Quoting Andrew Stitt <afrayedknot AT thefrayedknot.armory.com>:
<snip>
So, first lets quantify the problem. What spells/spell groups need this
functionality? For sub-depends what I did was create a feature bug for
it, and have spell bugs with sub-depends as the resolution depend on
it. Then I looked for the common thread between them. Start with real
examples and lets objectively analyize them.
An example of a spell that has multiple dependencies based on a query is kdesdk.
# gaze CONFIGURE kdesdk
source $SECTION_DIRECTORY/KDE_CONFIGURE &&
if provider_ok APU &&
spell_ok subversion; then
config_query KDESDK_SUBVERSION 'Build Subversion SCM support?' y
else
config_query KDESDK_SUBVERSION 'Build Subversion SCM support?' n
fi
# gaze DEPENDS kdesdk
depends kdebase &&
depends perl &&
source $SECTION_DIRECTORY/KDE_DEPENDS &&
<snip>...
if [ "$KDESDK_SUBVERSION" == "y" ]; then
depends APU &&
depends subversion
fi
I found this as I did `dispel --user-deps apr-util0` and it wanted to dispel kdesdk since APU is a hard-dependency, rather than recast kdesdk without subversion support.
-sandalle
--
Eric Sandall | Source Mage GNU/Linux Developer
eric at sandall.us PGP: 0xA8EFDD61 | http://www.sourcemage.org/
http://eric.sandall.us/ | SysAdmin @ Inst. Shock Physics @ WSU
http://counter.li.org/ #196285 | http://www.shock.wsu.edu/
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
-
[SM-Discuss] meta spells,
Juuso Alasuutari, 12/16/2006
-
Re: [SM-Discuss] meta spells,
Andraž 'ruskie' Levstik, 12/16/2006
-
Re: [SM-Discuss] meta spells,
Juuso Alasuutari, 12/16/2006
-
Re: [SM-Discuss] meta spells,
seth, 12/16/2006
- Re: [SM-Discuss] meta spells, Juuso Alasuutari, 12/17/2006
-
Re: [SM-Discuss] meta spells,
seth, 12/16/2006
-
Re: [SM-Discuss] meta spells,
Juuso Alasuutari, 12/16/2006
-
Re: [SM-Discuss] meta spells,
Jaka Kranjc, 12/17/2006
- Re: [SM-Discuss] meta spells, Juuso Alasuutari, 12/17/2006
-
Re: [SM-Discuss] meta spells,
Andrew Stitt, 12/17/2006
- Re: [SM-Discuss] meta spells, Arwed von Merkatz, 12/20/2006
-
Re: [SM-Discuss] meta spells,
Eric Sandall, 12/21/2006
- Re: [SM-Discuss] meta spells, Juuso Alasuutari, 12/25/2006
-
Re: [SM-Discuss] meta spells,
Andraž 'ruskie' Levstik, 12/16/2006
Archive powered by MHonArc 2.6.24.