Skip to Content.
Sympa Menu

sm-discuss - Re: [SM-Discuss] Persistence wiki

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] Persistence wiki
  • Date: Mon, 23 Aug 2004 12:04:35 -0700

On Mon, Aug 23, 2004 at 08:40:36AM -0700, Eric Sandall wrote:
> Quoting Andrew <afrayedknot AT thefrayedknot.armory.com>:
> > On Sun, Aug 22, 2004 at 05:28:54PM -0700, Eric Sandall wrote:
> > OPTS is a poor choice for a persistent variable since it has another use.
> > But for a persistent variable of a non-conflicting name, whatever value
> > it is set to at the end of a file is saved and reloaded in the next file,
> > consequently if you dont do anything in the next file to that variable
> > it will get saved with the same value it was loaded with.
> >
> > In other words they are persistent between files.
>
> Either you misunderstood what I was asking or I wasn't quite clear in what I
> wanted. ;)
okay I'll read more carefully :-/
>
> I want to know if I can modify OPTS in CONFIGURE and have the $OPTS used in
> BUILD have those changes. I just tested with today's (20040823) Sorcery and
> OPTS is not saved between files (at least from CONFIGURE to BUILD).

OPTS has special meaning, it gets loaded with values from
optional_depends before the build process starts (or at least it should).

Instead use something like LOCAL_OPTS then in BUILD concatenate it with
OPTS

>
> What I wanted (and should be able to do so we can continue to use
> default_build
> in spells that need extra configure flags) is in CONFIGURE I ask if they
> want
> Midi support (snd spell):

I think you have to do something like this
-----
OPTS="$OPTS $LOCAL_OPTS"
default_build
-----
Theres a couple of spells that already do this I think.

What we could is modify the default build to have both $OPTS and
$LOCAL_OPTS in it. LOCAL_OPTS could be the stuff you guys modify in
CONFIGURE, OPTS would continue to be stuff sorcery builds from depends
info.

does that make sense?

-Andrew

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




Archive powered by MHonArc 2.6.24.

Top of Page