[SM-Discuss] Circular dependencies between spells
Jaka Kranjc
jakakranjc at email.si
Tue Aug 26 05:07:19 EDT 2008
On Tuesday 26 of August 2008 03:27:31 Robin Cook wrote:
> > This can easily be bypassed in the spells themselves...
> >
> > if spell_installed glib2 ; then optional_depends glib2
> > fi
>
> But it still doesn't solve the issue where the user wants the pkgconfig
> to use glib2 so it needs the second cast to build it against the glib2.
The first thing that comes to mind:
1. ask the user if he wants the optional depends via a normal config_query
2a. if he said no, there is no problem
2b. else if glib2 is installed, give him the optional depends
2c. if it isn't, no option, but setup a trigger. Since a reconfigure would be
needed, the script trigger would need to be used (think the recent linux-pam
one)
If we did part of that in a grimoire function, we could get away with uglier
hacks. I don't want people doing them by themselves.
LP
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 315 bytes
Desc: This is a digitally signed message part.
Url : http://lists.ibiblio.org/pipermail/sm-discuss/attachments/20080826/c2ca046c/attachment.bin
More information about the SM-Discuss
mailing list