Skip to Content.
Sympa Menu

sm-discuss - Re: [SM-Discuss] meta spells

sm-discuss AT lists.ibiblio.org

Subject: Public SourceMage Discussion List

List archive

Chronological Thread  
  • 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.





Archive powered by MHonArc 2.6.24.

Top of Page