sm-grimoire AT lists.ibiblio.org
Subject: Discussion of Spells and Grimoire items
List archive
- From: Spencer Ogden <spencero AT mail.utexas.edu>
- To: sm-grimoire AT lists.ibiblio.org
- Subject: [SM-Grimoire] optional_depends question
- Date: Thu, 6 Mar 2003 19:02:48 -0600
This is my first attempt at writing a little more complicated spell, and
I'm a little lost.
This is how I understand things:
optional_depends "spell" "yes" "no" "Desc"
asks if you want to cast the optional spell "spell" if you say yes it
appends what is in "yes" to $OPTS, which you can then reference in your
BUILD script. Is this correct? It doesn't seem to be because...
My DEPENDS is:
depends perl &&
depends XML-Parser-Expat &&
depends XML-Writer &&
optional_depends "gtkhtml" "GtkHTML" "" "For HTML support"
optional_depends "gtkglarea" "GtkGLArea" "" "For GTK/GL
support"
optional_depends "imlib" "GdkImlib" "" "For imlib support"
optional_depends "gdk-pixbuf" "GdkPixbuf" "" "For Gdk-Pixbuf support"
optional_depends "libgnomeui" "Gnome" "" "For GnomeUI support"
optional_depends "gnome-print" "GnomePrint" "" "For Gnome-Print support"
optional_depends "glade" "Glade" "" "For Glade support"
optional_depends "gnome-applets" "Applet" "" "For Applets support"
optional_depends "bonobo" "Bonobo" "" "For bonobo support"
And my BUILD is:
(
perl -pi -e '/gdk-pixbuf-config/ && s{(8\|9\|1)}{2|\1}' Makefile.PL &&
perl -pi -e '/CCCMD/ && s{/m;}{/mg;}' */Makefile.PL &&
perl Makefile.PL --without-guessing &&
make &&
echo "OPTS is $OPTS"&&
for mod in $OPTS; do
echo "Building $mod" &&
cd $mod &&
perl Makefile.PL &&
make &&
cd ..
done
prepare_install &&
make install &&
for mod in $OPTS; do
cd $mod &&
make install &&
cd ..
done
) > $C_FIFO 2>&1
The echo line shows up in the compile log as "OPTS is ". So $OPTS is empty
and the sub modules are not getting built. Am I going about this in a bad
way?
As a side note, I am doing this becuase the autodetection used to tell
which modules to build depends on gnome-config, even though you don't need
gnome to use this.
Any help is appreciated,
Spencer
>From seth AT tautology.org Fri Mar 7 00:56:33 2003
Return-Path: <seth AT tautology.org>
Delivered-To: sm-grimoire AT lists.ibiblio.org
Received: from tautology.org
(evrtwa1-ar13-4-33-070-190.evrtwa1.dsl-verizon.net [4.33.70.190])
by happyhouse.metalab.unc.edu (Postfix) with ESMTP id 2BD932006B
for <sm-grimoire AT lists.ibiblio.org>;
Fri, 7 Mar 2003 00:56:33 -0500 (EST)
Received: from tautology.org (tautology.org [127.0.0.1])
by tautology.org (8.12.8/8.12.8) with ESMTP id h275w0fI012445;
Thu, 6 Mar 2003 21:58:00 -0800 (PST)
(envelope-from seth AT tautology.org)
Received: from localhost (seth@localhost)
by tautology.org (8.12.8/8.12.8/Submit) with ESMTP id h275vx4m012442;
Thu, 6 Mar 2003 21:57:59 -0800 (PST)
Date: Thu, 6 Mar 2003 21:57:57 -0800 (PST)
From: Seth Woolley <seth AT tautology.org>
To: Spencer Ogden <spencero AT mail.utexas.edu>
Subject: Re: [SM-Grimoire] optional_depends question
In-Reply-To: <200303061902.48460.spencero AT mail.utexas.edu>
Message-ID: <20030306215313.T10058-100000 AT tautology.org>
References: <200303061902.48460.spencero AT mail.utexas.edu>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
cc: sm-grimoire AT lists.ibiblio.org
X-BeenThere: sm-grimoire AT lists.ibiblio.org
X-Mailman-Version: 2.1.1
Precedence: list
List-Id: Discussion of Spells and Grimoire items
<sm-grimoire.lists.ibiblio.org>
List-Unsubscribe: <http://lists.ibiblio.org/mailman/listinfo/sm-grimoire>,
<mailto:sm-grimoire-request AT lists.ibiblio.org?subject=unsubscribe>
List-Archive: <https://lists.ibiblio.org/sympa/arc/sm-grimoire>
List-Post: <mailto:sm-grimoire AT lists.ibiblio.org>
List-Help: <mailto:sympa AT lists.ibiblio.org?subject=HELP>
List-Subscribe: <http://lists.ibiblio.org/mailman/listinfo/sm-grimoire>,
<mailto:sm-grimoire-request AT lists.ibiblio.org?subject=subscribe>
X-List-Received-Date: Fri, 07 Mar 2003 05:56:34 -0000
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I don't understand why that won't work either.
Maybe try cast -r <spellname> to make sure the DEPENDS file gets exec'd?
those OPTS get set into /var/state/sorcery/depends last time I checked, so
you might be able to check there and see if they got set after a 'cast
- -r'.
Seth
On Thu, 6 Mar 2003, Spencer Ogden wrote:
> This is my first attempt at writing a little more complicated spell, and
> I'm a little lost.
>
> This is how I understand things:
> optional_depends "spell" "yes" "no" "Desc"
> asks if you want to cast the optional spell "spell" if you say yes it
> appends what is in "yes" to $OPTS, which you can then reference in your
> BUILD script. Is this correct? It doesn't seem to be because...
>
> My DEPENDS is:
> depends perl &&
> depends XML-Parser-Expat &&
> depends XML-Writer &&
> optional_depends "gtkhtml" "GtkHTML" "" "For HTML support"
> optional_depends "gtkglarea" "GtkGLArea" "" "For GTK/GL
> support"
> optional_depends "imlib" "GdkImlib" "" "For imlib support"
> optional_depends "gdk-pixbuf" "GdkPixbuf" "" "For Gdk-Pixbuf support"
> optional_depends "libgnomeui" "Gnome" "" "For GnomeUI support"
> optional_depends "gnome-print" "GnomePrint" "" "For Gnome-Print support"
> optional_depends "glade" "Glade" "" "For Glade support"
> optional_depends "gnome-applets" "Applet" "" "For Applets support"
> optional_depends "bonobo" "Bonobo" "" "For bonobo support"
>
> And my BUILD is:
> (
> perl -pi -e '/gdk-pixbuf-config/ && s{(8\|9\|1)}{2|\1}' Makefile.PL &&
> perl -pi -e '/CCCMD/ && s{/m;}{/mg;}' */Makefile.PL &&
> perl Makefile.PL --without-guessing &&
> make &&
>
> echo "OPTS is $OPTS"&&
> for mod in $OPTS; do
> echo "Building $mod" &&
> cd $mod &&
> perl Makefile.PL &&
> make &&
> cd ..
> done
>
> prepare_install &&
> make install &&
> for mod in $OPTS; do
> cd $mod &&
> make install &&
> cd ..
> done
>
>
> ) > $C_FIFO 2>&1
>
> The echo line shows up in the compile log as "OPTS is ". So $OPTS is empty
> and the sub modules are not getting built. Am I going about this in a bad
> way?
>
> As a side note, I am doing this becuase the autodetection used to tell
> which modules to build depends on gnome-config, even though you don't need
> gnome to use this.
>
> Any help is appreciated,
>
> Spencer
- --
Seth Alan Woolley <seth at tautology.org>, SPAM/UCE is unauthorized
Key id 7BEACC7D = 2978 0BD1 BA48 B671 C1EB 93F7 EDF4 3CDF 7BEA CC7D
Full Key at seth.tautology.org and pgp.mit.edu. info: www.gnupg.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.0 (FreeBSD)
iD8DBQE+aDTn7fQ833vqzH0RAs++AKC7mAwIsu8bLGoTeLQq61bvqwqtZwCeLB4K
vuCAL0Qm/+3cgCu6P50fr8Q=
=va9y
-----END PGP SIGNATURE-----
-
[SM-Grimoire] optional_depends question,
Spencer Ogden, 03/06/2003
- <Possible follow-up(s)>
- Re: [SM-Grimoire] optional_depends question, Jose Bernardo Silva, 03/07/2003
Archive powered by MHonArc 2.6.24.