Skip to Content.
Sympa Menu

sm-discuss - Re: [SM-Discuss] Optional dependencies and dependency mess

sm-discuss AT lists.ibiblio.org

Subject: Public SourceMage Discussion List

List archive

Chronological Thread  
  • From: Andrew <afrayedknot AT thefrayedknot.armory.com>
  • To: sm-discuss AT lists.ibiblio.org
  • Subject: Re: [SM-Discuss] Optional dependencies and dependency mess
  • Date: Wed, 24 Mar 2004 13:04:34 -0800

> We definitely need a way to specify such subdepends in sorcery, i just
> got two prometheus bugs caused by stuff like that. gst-player not
> compiling because gst-plugins wasn't compiled with gconf support and
> straw failing because gnome-python wasn't compiled with gtkhtml support.
> The way i solved this problem with the ruby gnome2 bindings was
> seperating them into many spells, but that only works if the package
> allows it (gst-plugins and gnome-python2 don't easily allow it).
>
> We'll run into this problem quite often, lots of spells already have it,
> so we need an extension of sorcery depends.
> Something like
> depends gst-plugins:gconf,mad
>
> Then cast could check whether gst-plugins was built with those two
> optional_depends on and recompile it otherwise, changing the
> optional_depends for them to yes.
>
> I don't think there's a question whether we need this, we definitely do.
> The behaviour of it is what needs to be discussed, should it
> automatically recompile the stuff, setting the optional_depends to yes?
> One thing about the automatic setting of optional_depends to yes needs
> more work, sorcery shouldn't record those changes in
> /var/state/sorcery/depends unless the user says yes when asked if he
> really wants to cast the spells. Otherwise a user may try a spell, see
> that it wants to recompile something big with changed optional_depends
> and decides against it, but sorcery already recorded the changed
> optional_depends, so the next time the spell is cast it will be
> configured in a way the user didn't want to.
>
both great ideas. They also tie well into the notion of being able to
depend on spells with certain configure options (ie gcc with f77 support).

I would very much like to see this done. I'll put it on my list of
sorcery projects.

-Andrew

--
________________________________________________________________________
|Andrew D. Stitt | astitt AT sourcemage.org |
|irc: afrayedknot | afrayedknot AT t.armory.com |
|aim: thefrayedknot or iteratorplusplus | |
|Grimoire Guru ham/smgl, Porting Team Lead | ftp://t.armory.com |
|Author and Maintainer of Prometheus | |
-------------------------------------------------------------------------




Archive powered by MHonArc 2.6.24.

Top of Page