Skip to Content.
Sympa Menu

sm-discuss - Re: [SM-Discuss] cross grimoire dependencies

sm-discuss AT lists.ibiblio.org

Subject: Public SourceMage Discussion List

List archive

Chronological Thread  
  • From: Geoffrey Derber <Geoffrey.Derber AT Trinity.edu>
  • To: Eric Sandall <eric AT sandall.us>
  • Cc: sm-discuss AT lists.ibiblio.org
  • Subject: Re: [SM-Discuss] cross grimoire dependencies
  • Date: Thu, 10 Jul 2003 15:55:03 -0500

Eric Sandall wrote:
Geoffrey Derber said:

Now that we've had a couple weeks with the new grimoires. I think it's
time to try and tackle some of the problems with multiple grimoires.

Mainly, any ideas on how to take care of cross grimoire dependencies?

For example xvid in the z-rejected section is an optional dependency for
mplayer.

Off hand, I don't see any clean way to do it. Optional dependencies are
less of a problem than required dependencies.

one method might be to modified the 'depends' command

'depends <spell> [<other_grimoire>]' which would inform the user that
another grimoire is needed, download it, install, then continue.

Geoff


I think that might confuse some packages, as we currently can do 'depends
<spell> [<configure flags>]'. A better way (IMHO) would be to have
'[optional_]depends [grimoire]/<spell> [other flags]', then we just check
for the '/' character and if it's there, check if <grimoire> is installed,
if not, ask the user if they want it installed (keep in mind that spells
can only depend on other spells in the standard grimoires (if the
dependency is not in the current grimoire) and not on custom grimoires),
otherwise continue on.

Thoughts?

-sandalle

That'd work for the optional depends, but I don't remember any of the required depends needing the other flags, but it would probably be better to do the same for both. I was writing it thinking more about required than optional.

another option, a '[-gm grimoire]' flag might work as well.

Just throwing out ideas here, figure we can eliminate the bad ones later.

Geoff





Archive powered by MHonArc 2.6.24.

Top of Page