Re: GnuCash trunk now uses SWIG

2006-10-20 Thread Chris Shoemaker
On Fri, Oct 20, 2006 at 12:40:52AM -0400, David Reiser wrote:
 
 On Oct 20, 2006, at 12:17 AM, Derek Atkins wrote:
 
 There is no compilation ...  Just a path.  I suppose we could add a
 --with-swig-path switch, but why not just set $PATH accordingly?
 
 Um. Because I wasn't paying close enough attention?
 
 While I'm displaying my ignorance, how is it I keep the $PATH  
 modification local to the build? I keep my gnucash svn builds out of  
 my normal path so I have fewer conflicts in my attempts at making  
 fink versions work. I tend to lose track of environment changes that  
 work in one instance but interfere in another. I did build swig  
 1.3.29 in /opt last weekend, but I haven't built anything with it.  
 Fink's latest swig is 1.3.20.
 

All the tool paths are set by ./configure.  If you want to run with
another tool version (e.g. swig or gcc), you can just tweak the PATH
before running ./configure.  For example,

$ PATH=/opt/gcc-5/bin:/opt/swig-1.3.30/bin ./configure --prefix=/opt/gnucash

After that, the path to the tool is used in all the Makefiles, without
any environment changes.

-chris
___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: GnuCash trunk now uses SWIG

2006-10-20 Thread Derek Atkins
Just a quick correction..

Chris Shoemaker [EMAIL PROTECTED] writes:

 $ PATH=/opt/gcc-5/bin:/opt/swig-1.3.30/bin ./configure --prefix=/opt/gnucash

You actually want:

  PATH=/opt/gcc-5/bin:/opt/swig-1.3.30/bin:$PATH ./configure ...

-derek
-- 
   Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
   Member, MIT Student Information Processing Board  (SIPB)
   URL: http://web.mit.edu/warlord/PP-ASEL-IA N1NWH
   [EMAIL PROTECTED]PGP key available
___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


GnuCash trunk now uses SWIG

2006-10-19 Thread Chris Shoemaker
Hi,
In case you missed recent list traffic, this is just to
announce that, yes, GnuCash has switched from g-wrap to SWIG
(http://swig.sf.net since http://www.swig.org is currently down.)
SWIG is the program that generates wrappers for C functions that can
be called from guile.  The conversion was merged into trunk a few days
ago, on the 15th.

So, what does this mean for those of you following trunk?
Well, for one, you should be on the look-out for bugs, as always.
There have already been a couple wrapper-related bugs squashed.  A
typical wrapper-related bug would be an unbound-variable error while
exercising some functionality that's implemented in guile.  Chiefly,
that's reports, and import-export, and import-export is especially
under-tested.  (But any bugs are possible.)

If you're compiling trunk, you're going to need to install
swig = 1.3.28.  Makefile rules are enabled that will generate the
needed wrappers from the .i interface files.  However, they won't be
removed by make clean.  If you need to remove them for some reason,
you'll need the more drastic make maintainer-clean.

It's also possible that left-over g-wrap cruft in your working
directory may interfere with the build process somehow.  Anything
g-wrap can safely be deleted.

Also, you may get some errors when reloading reports that were
saved with pre-swig versions.  Reopening those reports should work.

Early heads up: there are currently some bug fixes in swig's
cvs for bugs that we're working around now.  When those fixes appear
in a released version, I hope to depend on them relatively quickly,
(maybe 1 month after release?)  Please speak up if this is
problematic.  BTW, swig is a _breeze_ to install from source, and
there's no library to link to at all. (./configure  make  make
install)

Note to packagers: Don't worry, this is all good news for you.
SWIG is only a build-time dependency for people building from trunk.
There is no new runtime dependency and no new build-time dependency
for building from tarball (whenever a 2.2 is eventually released.)
And... all the g-wrap dependencies are gone.

Note to (potential) developers: Hey, if somebody wants to push
a little more reporting infrastructure (options, basically) from guile
into C, we could conceivably write reports in some other scripting
language.  As a perk, you'd get to pick the language! :-)

Have fun!

-chris
___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: GnuCash trunk now uses SWIG

2006-10-19 Thread David Reiser
can we have a --with-swig-prefix switch? Please?

On Oct 19, 2006, at 6:34 PM, Chris Shoemaker wrote:

 Hi,
 In case you missed recent list traffic, this is just to
 announce that, yes, GnuCash has switched from g-wrap to SWIG
 ...

Dave
--
David Reiser
[EMAIL PROTECTED]

___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: GnuCash trunk now uses SWIG

2006-10-19 Thread Derek Atkins
There is no compilation ...  Just a path.  I suppose we could add a
--with-swig-path switch, but why not just set $PATH accordingly?

-derek

Quoting David Reiser [EMAIL PROTECTED]:

 can we have a --with-swig-prefix switch? Please?

 On Oct 19, 2006, at 6:34 PM, Chris Shoemaker wrote:

 Hi,
 In case you missed recent list traffic, this is just to
 announce that, yes, GnuCash has switched from g-wrap to SWIG
 ...

 Dave
 --
 David Reiser
 [EMAIL PROTECTED]

 ___
 gnucash-devel mailing list
 gnucash-devel@gnucash.org
 https://lists.gnucash.org/mailman/listinfo/gnucash-devel




-- 
   Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
   Member, MIT Student Information Processing Board  (SIPB)
   URL: http://web.mit.edu/warlord/PP-ASEL-IA N1NWH
   [EMAIL PROTECTED]PGP key available

___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: GnuCash trunk now uses SWIG

2006-10-19 Thread David Reiser

On Oct 20, 2006, at 12:17 AM, Derek Atkins wrote:

 There is no compilation ...  Just a path.  I suppose we could add a
 --with-swig-path switch, but why not just set $PATH accordingly?

Um. Because I wasn't paying close enough attention?

While I'm displaying my ignorance, how is it I keep the $PATH  
modification local to the build? I keep my gnucash svn builds out of  
my normal path so I have fewer conflicts in my attempts at making  
fink versions work. I tend to lose track of environment changes that  
work in one instance but interfere in another. I did build swig  
1.3.29 in /opt last weekend, but I haven't built anything with it.  
Fink's latest swig is 1.3.20.



 -derek

 Quoting David Reiser [EMAIL PROTECTED]:

 can we have a --with-swig-prefix switch? Please?

 On Oct 19, 2006, at 6:34 PM, Chris Shoemaker wrote:

 Hi,
 In case you missed recent list traffic, this is just to
 announce that, yes, GnuCash has switched from g-wrap to SWIG
 ...

 Dave
 --
 David Reiser
 [EMAIL PROTECTED]


 -- 
   Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
   Member, MIT Student Information Processing Board  (SIPB)
   URL: http://web.mit.edu/warlord/PP-ASEL-IA N1NWH
   [EMAIL PROTECTED]PGP key available

Dave
--
David Reiser
[EMAIL PROTECTED]

___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel