Skip to Content.
Sympa Menu

sm-discuss - Re: [SM-Discuss] expat depends

sm-discuss AT lists.ibiblio.org

Subject: Public SourceMage Discussion List

List archive

Chronological Thread  
  • From: Andrew Stitt <afrayedknot AT thefrayedknot.armory.com>
  • To: sm-discuss AT lists.ibiblio.org
  • Subject: Re: [SM-Discuss] expat depends
  • Date: Wed, 18 Jan 2006 22:35:38 -0800

Is there a way to get underneath the build system and have the linker
ignore certain files? We could automatically ignore files from disabled
optional depends.

-Andrew

On Wed, Jan 18, 2006 at 09:08:53PM -0600, Robin Cook wrote:
> Just wish all programs gave the option to actually not use an optional
> dependency.
>
> Some just link to it if it's there or ignore if it's not, like
> gtk-sharp-2 that I worked on the other day.
>
> CuZnDragon
> Robin Cook
>
> > Support for a given optional dependency is not a function of whether
> > or not the spell is installed or not, it is a function of what the
> > user wants. Their decision might be effected by the status of the spell,
> > but thats an implementation detail.
> >
> > When you use an optional depends the dependency can either be on or off.
> > The spell is then supposed to pass the appropriate options to the source's
> > build configuration to enable or disable the support, or modify it if no
> > such options exist. This is what eric was talking about.
> >
> > The spell must explicitly disable support for something if the
> > optional depends is disabled, especially if the dependency is installed.
> >
> > If I have arts installed and cast xmms, i might not want xmms linking
> > against arts at all. Note that optional_depends has additional parameters
> > to specify an enabled and disabled option, which in the default case
> > are passed to the ./configure script.
> >
> > Also, depends/optional_depends can only be run during DEPENDS, which
> > is only run once during cast. It also makes little sense to check if a
> > dependent spell is installed or not because the dependent spell might
> > be installed by the time the current spell is being built.
> >
> >
> > The real answer to this problem is that spells need to explicitly list
> > all of their dependencies, and properly disable linking to disabled
> > optional_dependencies. The first problem is something that could be solved
> > using the prometheus testing tool and a script written by dufflebunk to
> > list missing dependencies. The hacky work-around thats being used is to
> > check what spells are linking against the spell's libraries and
> > trigger those whether or not a dependency exists. Each of those missing
> > dependencies are actually bugs.
> >
> > -Andrew
> >



> _______________________________________________
> SM-Discuss mailing list
> SM-Discuss AT lists.ibiblio.org
> http://lists.ibiblio.org/mailman/listinfo/sm-discuss


--
_________________________________________________________________________
| Andrew D. Stitt | acedit at armory.com | astitt at sourcemage.org |
| irc: afrayedknot | Sorcery Team Lead | ftp://t.armory.com/ |
| 1024D/D39B096C | 76E4 728A 04EE 62B2 A09A 96D7 4D9E 239B D39B 096C |
-------------------------------------------------------------------------




Archive powered by MHonArc 2.6.24.

Top of Page