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: Eric Sandall <eric AT sandall.us>
  • To: sm-discuss AT lists.ibiblio.org
  • Subject: Re: [SM-Discuss] Persistence wiki
  • Date: Mon, 23 Aug 2004 13:20:53 -0700

Quoting Andrew <afrayedknot AT thefrayedknot.armory.com>:
> On Mon, Aug 23, 2004 at 08:40:36AM -0700, Eric Sandall wrote:
<snip>
> > 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

So OPTS is pretty much off limites for playing with in the spell (in regards
to
storing variables across files), gotcha. :)

> > 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.

Shouldn't be too hard to do then, thanks. :)

> 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?

Would we be able to modify LOCAL_OPTS (or CONF_OPTS as Seth points out) or
would
it end up being non-modifiable the way OPTS already is?

If we could have default_build have CONF_OPTS (or whatever) passed to
./configure, then we could have CONFIGURE just use CONF_OPTS="neat stuff" and
not need extra BUILD files. Would this be too much work for the gain? Should
spells just do the OPTS="$OPTS $CONF_OPTS" in BUILD when they need it and add
CONF_OPTS to persistent_add where they want?

-sandalle

--
Eric Sandall | Source Mage GNU/Linux Developer
eric AT sandall.us PGP: 0xA8EFDD61 | http://www.sourcemage.org/
http://eric.sandall.us/ | SysAdmin @ Inst. Shock Physics @ WSU
http://counter.li.org/ #196285 | http://www.shock.wsu.edu/

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.




Archive powered by MHonArc 2.6.24.

Top of Page