2008-12-27 GnuCash IRC logs
01:37:17 *** Cpt-McLANE has quit IRC
02:05:42 *** mishehu has quit IRC
03:22:33 *** MechtiIde has quit IRC
04:21:53 *** MechtiIde has joined #gnucash
05:25:02 *** bentob0x has joined #gnucash
06:00:17 *** see-g has joined #gnucash
06:13:23 *** see-g has quit IRC
06:14:18 *** Rolf2 has joined #gnucash
06:16:23 *** see-g has joined #gnucash
06:22:16 *** Rolf1 has quit IRC
06:49:18 *** palatin has joined #gnucash
07:44:33 *** see-g has quit IRC
08:07:45 *** cetterra has joined #gnucash
08:13:17 <cetterra> How can I transfer money from a Checking Account to a Credit Card account? I'm trying this, but it decreases my assets and my liabilities.
08:25:36 *** cetterra has quit IRC
08:59:26 *** warlord-afk is now known as warlord
09:04:18 *** see-g has joined #gnucash
09:14:34 *** dennis has joined #gnucash
09:34:54 *** JimRaehl has left #gnucash
09:47:45 *** JimRaehl has joined #gnucash
10:10:53 *** charly has joined #gnucash
10:32:06 *** bentob0x has quit IRC
10:40:32 *** kielein has joined #gnucash
10:53:03 *** andi5 has joined #gnucash
10:57:41 *** nomeata has joined #gnucash
11:07:05 *** kielein has quit IRC
11:07:45 *** mishehu has joined #gnucash
11:13:00 *** bentob0x has joined #gnucash
11:15:10 *** kielein has joined #gnucash
11:31:23 *** MechtiIde has quit IRC
11:35:42 *** keyline has joined #gnucash
11:44:54 *** kielein has quit IRC
12:16:55 *** andi5 has quit IRC
12:18:47 *** localhost1 has joined #gnucash
12:18:50 *** localhost has quit IRC
13:01:45 *** cphuntington97 has joined #gnucash
13:01:57 *** MechtiIde has joined #gnucash
13:07:38 <cphuntington97> I would like the summary bar Assets: to actually show "Checking Account - Credit Card". Sure, my savings account is technically an asset; but that's long term, and I don't mean to consider it during my day to day financial decisions. Likewise, my student loan is technically a liability, but I'm paying it off over the next 10 years. In my brain it is more like a monthly expense. Thoughts...?
13:17:23 *** keyline has quit IRC
13:17:41 *** keyline has joined #gnucash
13:24:42 <jsled> cphuntington97: there's no way to affect the summary bar.
13:24:48 <jsled> (short of changing the code, of course)
13:24:49 <jsled> There'
13:25:03 <jsled> I'm also not sure if an existing report will show what you're after.
13:25:18 <cphuntington97> right... and it looks like reports are tricky
13:25:57 <dennis> can gnucash work against guile 1.8.x?
13:26:15 <jsled> dennis: yes.
13:26:23 <dennis> The configure script doesn't complain but I got a compile error:
13:26:35 <dennis> ERROR: Loaded gnucash srfi-2.scm in unknown Guile version:1.8.6.
13:26:50 <dennis> If you're running a Guile newer than 1.4, then this file should
13:26:52 <dennis> not have been installed. Please report the bug.
13:27:07 <jsled> dennis: why are you building it yourself?
13:27:22 <dennis> Playing around with GC on osx
13:27:27 <dennis> have a fink install working.
13:27:38 <dennis> I'm toying with creating a dmg for OSX.
13:27:55 <dennis> but I'm working on getting a build environment that I can work w/ first.
13:28:23 <dennis> As I don't want to disk image up an entire fink distro to be the dmg contents.
13:29:33 <jsled> yup
13:29:37 * jsled goes afk. cheers
13:30:45 <dennis> guile seems to work ok.
13:31:06 <dennis> when I set up slib, I imported the slib library and ran the new-catalog function ok.
13:31:18 <dennis> I'm not a scheme guru at all though.
13:31:36 <dennis> so I'm not too sure exactly where to look to solve this build issue.
13:48:56 *** cphuntington97 has quit IRC
14:33:16 *** bentob0x has quit IRC
14:44:51 <warlord> dennis: Did you get the guile/slib ceonfigured before you ran gnucash's configure?
14:45:07 <dennis> I thought so.
14:45:09 <dennis> I'm still working on it.
14:45:22 <dennis> I've tried a guile 1.6.8 and 1.8.6
14:45:45 <dennis> I ran the (use-modules (ice-9 slib)) (require 'new-catalog) (quit) in both versions
14:45:46 <dennis> and that works
14:45:50 <dennis> and the guile shell works
14:45:59 <dennis> but I got the error w/ both versions.
14:46:16 <warlord> How do you have both versions installed?
14:48:11 <dennis> well, I tried one then the other.
14:48:18 <warlord> Are you sure that "guile" in the path matches the guile scm in the guile load path?
14:48:39 <dennis> I'm not sure exactly how to determine the 2nd.
14:51:03 <warlord> Well, srfi-2.scm is part of the guile and slib packages, as far as I can tell. On my system when I run "locate srfi-2.scm" I see:
14:51:09 <warlord> /usr/share/guile/1.8/srfi/srfi-2.scm
14:51:09 <warlord> /usr/share/slib/srfi-2.scm
14:51:23 <warlord> rpm -qf /usr/share/guile/1.8/srfi/srfi-2.scm
14:51:23 <warlord> guile-1.8.1-3.fc7
14:51:27 <warlord> rpm -qf /usr/share/slib/srfi-2.scm
14:51:28 <warlord> slib-3a4-1.fc7
14:51:39 <warlord> So there are two copies, one from guile and one from slib.
14:51:45 <dennis> is there a different slib for different guile versions?
14:51:50 <dennis> I just installed slib from a zip file.
14:52:01 <warlord> What version of slib did you install?
14:52:12 <warlord> There were (for a while) integration issues between guile and slib.
14:52:21 <dennis> 3b1
14:53:33 <dennis> Here is something.. I have /share/guile/1.8/srfi
14:53:42 <dennis> and /share/guile/slib
14:53:54 <dennis> should it be /share/guile/1.8/slib instead?
14:55:02 <warlord> I think it's reasonable to put slib into /share/guile/slib
14:55:23 <warlord> Is there a srfi-2.scm under either place?
14:55:38 <dennis> share/guile/1.8/srfi has an srfi-2.scm file
14:55:41 <dennis> slib does not
14:55:50 <dennis> sorry, incorrect, I missed it.
14:55:53 <dennis> slib has one too.
14:58:05 <warlord> Okay, so srfi is definitely there..
14:58:17 <warlord> So it sounds like gnucash isn't finding it during configure.
14:58:47 <dennis> configure:28295: checking if guile needs our copy of srfi-2
14:58:49 <dennis> configure:28299: result: no
14:59:35 <warlord> Huh! Well it seems to be installing the gnucash version of srfi-2.scm
15:00:18 <warlord> Maybe it was from a previous "make install" before you got gnucash working?
15:00:31 <warlord> did you try "rm -rf $prefix" ?
15:00:32 <dennis> I tried distclean and then reconfigure
15:00:40 <warlord> distclean isn't sufficient.
15:00:52 <warlord> the problem is that it did a "make install"
15:00:53 <dennis> if I could try installing to a different prefix
15:01:02 <dennis> but my prefix in this case would hose all my dependencies
15:01:23 <dennis> I haven't actually tried make install yet, this is during make.
15:01:49 <warlord> During Make?
15:02:06 <warlord> Show me the log
15:02:44 <dennis> Making all in engine
15:02:46 <dennis> chmod u+x ./iso-currencies-to-c
15:02:47 <dennis> GUILE_LOAD_PATH=../../lib/: srcdir=. ./iso-currencies-to-c
15:02:49 <dennis> ERROR: Loaded gnucash srfi-2.scm in unknown Guile version:1.8.6.
15:02:50 <dennis> If you're running a Guile newer than 1.4, then this file should
15:02:52 <dennis> not have been installed. Please report the bug.
15:02:54 <warlord> It looks like GNC_ADD_ON_SRFIs is non-empty.
15:02:59 <dennis> Not sure which log you want.
15:03:11 <warlord> That's the log I wanted.
15:03:47 <warlord> Now check config.log and check all the "if guile needs our copy of srfi-*.scm" and see which one is 'yes'
15:04:03 <dennis> GNC_ADD_ON_SRFIS=' srfi-1.scm'
15:04:13 <dennis> That is from my config.log
15:04:41 <dennis> it's the srfi-1.scm
15:04:54 <dennis> looks like all others are no.
15:05:18 <warlord> okay, so why is it not finding the guile version of srfi-1.scm?
15:05:26 <warlord> I have two copies of that, too:
15:05:30 <warlord> /usr/share/guile/1.8/srfi/srfi-1.scm
15:05:31 <warlord> /usr/share/slib/srfi-1.scm
15:05:49 <dennis> me too.
15:06:34 <warlord> so why does: guile -c "(use-modules (srfi srfi-1))" fail?
15:07:11 <dennis> Now we're getting somewhere: ERROR: file: "libguile-srfi-srfi-1-v-3", message: "dlopen(libguile-srfi-srfi-1-v-3.so, 9): image not found"
15:07:31 <dennis> It's looking for a .so, instead of a .dylib
15:08:21 <dennis> Perhaps a guile configure options for --enable-shared or something?
15:09:44 <dennis> I have: libguile-srfi-srfi-1-v-3.dylib libguile-srfi-srfi-1-v-3.a, etc
15:09:52 *** charly has left #gnucash
15:10:29 <warlord> here's where you might want to look at fink and see what they did.
15:10:41 <warlord> (or MacPorts)
15:10:57 <warlord> GnuCash really should remove our versions of srfi; we dont support guile 1.3 or 1.4 anymore.
15:12:08 <dennis> Looks like they've patched a couple things.
15:12:12 <dennis> fink, that is.
15:12:45 <dennis> they're using guile18-build make
15:12:51 <warlord> you might need to do the same..
15:12:52 <dennis> to build gnucash it looks like.
15:14:13 <warlord> well, i'm not sure that you necessarily need to do that per se.. (I'm not sure what guile18-build does)
15:14:31 <warlord> ... and I certainly dont do that on my Linux system.. But then again guile is in the system path.
15:14:56 <dennis> It is here too.
15:15:06 <dennis> I have $PREFIX/bin w/ guile there.
15:16:38 <warlord> ok.
15:18:13 <dennis> hm, guile18-dev is a .deb
15:18:30 <warlord> all of fink are .debs
15:18:40 <dennis> They build from source too.
15:22:23 <warlord> they do, yes.
15:22:28 <warlord> with some patches.
15:22:43 <warlord> the win32 builder also applies patches to various dependencies.
15:26:27 <dennis> All their guile build script does is set some additional paths
15:26:37 <dennis> GUILE, GUILE_CONFIG, GUILE_TOOLS etc.
15:29:18 <warlord> not sure why those are needed, you could just make sure 'guile' and 'guile-config' are in your PATH
15:30:14 <dennis> It important to have guile-1.8-tools vs guile-tools on the path
15:30:26 <dennis> the other thing they do is add an additional path that has these additional scripts
15:30:38 <dennis> where my bin only has guile-config, tools etc.
15:33:28 <warlord> I have no idea what 'guile-tools' or 'guile-1.8-tools' is..
15:35:02 <dennis> Yeah, I don't think those things are going to fix my problem.
15:37:07 <warlord> no.
15:37:18 <warlord> Check the patches that fink applies..
15:37:27 <dennis> I exported all the same variables they set and config.log still says srfi-1 is needed.
15:37:29 <warlord> They might just symlink .so -> .dylib
15:38:30 <warlord> or they might have patched the code to look for .dylib
15:38:34 <dennis> what does --disable-schemas-install do?
15:40:05 <warlord> in gnucash's configure? it's all about whether the gnucash script or your packaging post-install script runs the gconf schema installer.
15:40:24 <warlord> s/gnucash script/gnucash makefiles/
15:40:24 <dennis> ok, not related to scheme stuff then.
15:40:41 <warlord> no. schema != scheme
15:40:53 <dennis> yeah.
15:41:35 <dennis> I'm looking at the configure.in file to see why configure wants a local srfi-1.scm
15:41:55 <warlord> gnucash's? Only because the guile one is failing.
15:41:57 <dennis> which is the dylib problem you stated before right?
15:42:00 <warlord> Fix the failing guile one.
15:42:02 <warlord> Yes
15:42:21 <dennis> Wonder why srfi-1 is broken but srfi-2 and all the others work.
15:42:39 <warlord> Maybe because those others dont load a dylib?
15:43:15 <dennis> dylibs exist for others.
15:43:24 <dennis> whether or not they are loaded..
15:44:24 <warlord> But do they exist for the ones that gnucash looks for?
15:44:35 <dennis> I symlinked the dylib and it works.
15:44:58 <dennis> at least guile -c "((use-modules... etc
15:45:26 <warlord> Okay, you'll need to do that for each of your guile .dylib modules, I think.
15:45:38 <dennis> Yeah, at least for the ones gnucash wants.
15:45:45 <dennis> since I don't use guile for anything else.
15:46:33 <dennis> Is trunk much different than 2.2.8 at this point.
15:46:34 <warlord> Honestly, the best fix is a source code patch to guile to use .dylib instead of .so so you dont need to symlink.
15:46:37 <warlord> Yes.
15:46:46 <dennis> I agree on the patch.
15:47:57 <dennis> I didn't see any symlinking commands in finks scripts though.
15:48:03 <dennis> perhaps I missed them.
15:48:12 <dennis> fink has a lot of stuff I still haven't dug to the bottom of.
15:48:31 <warlord> It's unlikely that's what they're doing -- most likely the patch guile to load .dylib.
15:48:51 <warlord> Have you looked at the set of patches that fink applies?
15:49:14 <warlord> (to guile)
15:49:17 <dennis> They patched them via perl scripts and I haven't found the scripts.
15:49:25 <dennis> well, for gnucash anyway.
15:49:32 <dennis> I haven't looked over the guile stuff.
15:49:41 <warlord> You need to look at the guile source package.
15:49:43 <warlord> start there.
15:52:04 <dennis> Yes, I'd like to end up with a script that fetches dependencies and builds each package to a PREFIX, similar to what fink does, but only for required GC modules.
15:52:17 <dennis> then I'll see if I can get that onto a dmg file.
15:53:28 <warlord> Have you looked at the gnucash win32 build scripts? That's pretty much what it does.
15:53:54 <warlord> It downloads the deps.. Applies local patches to some of them, builds them to a PREFIX, then builds an installer around it.
15:54:36 <dennis> haven't looked yet.
15:54:59 <dennis> I've been looking more at the gtk-osx and jhbuild
15:55:37 <dennis> which has the ability to fetch from either tarballs or svn, as well as to apply patches.
15:55:56 <dennis> and it is python based, which I'm very comfortable with.
16:02:40 <warlord> fyi, nothing in the gnucash code uses python.
16:03:39 <dennis> shame :)
16:06:43 <warlord> not really.
16:06:54 <warlord> there are enough build-deps as-is.
16:07:16 <dennis> I was just taking a jab at guile actually.
16:07:25 <dennis> but you're right, there are a lot of deps for GC.
16:07:34 <dennis> I've spent almost all my time up to today working on deps.
16:07:40 <dennis> and finally today, I'm trying to compile GC.
16:07:50 <dennis> which seems to be working at this point.
16:07:54 <dennis> but still compiling.
16:08:03 <warlord> ... except theguile dep is broken
16:08:23 <dennis> are you referring to the dylib thing?
16:09:02 <warlord> yes
16:09:52 <dennis> a number of deps had similar problem where I needed to patch the configure scripts or whatnot.
16:10:05 <warlord> Are you keeping track of all the patches that you're applying?
16:10:17 <dennis> meticulously.
16:10:37 <dennis> and what configure flags I had to pass to the libs to compile them right too.
16:13:01 <warlord> Cool.
16:13:08 <dennis> I think it would be most preferable to use osx depenencies wherever possible.
16:13:16 <warlord> I agree...
16:13:24 <warlord> For those deps where the OSX version actually works.
16:13:27 <dennis> well, it just built.
16:13:32 <dennis> and installed
16:13:38 <warlord> Ah, but does it run?
16:13:44 <dennis> bout to find out.
16:14:09 <dennis> looks like one of my deps has a problem.
16:14:10 <dennis> libjpeg
16:14:22 <dennis> another dylib problem.
16:15:01 *** Zoolooc_ has joined #gnucash
16:16:37 <warlord> okay..
16:34:05 <dennis> Well well.. working.
16:34:46 <dennis> I compiled it against gtk-osx too.
16:39:54 <warlord> And gnucash is working
16:39:56 <warlord> ??
16:41:15 <dennis> yeah
16:41:20 <warlord> wow!
16:41:31 <warlord> you've tested the register? reports? printing?
16:41:41 <dennis> I haven't compiled in ofx yet.
16:41:48 <dennis> registers work.
16:42:23 <dennis> reports seem to work just fine.
16:43:20 <dennis> And I can command-tab between GC and my other mac programs now :)
16:44:03 <warlord> cool.
16:44:08 <warlord> ship it! :)
16:44:11 <dennis> It even opened up my money file that the fink build was using.
16:44:39 <warlord> oh, the data file would remain compatible. no reason that wouldn't work.
16:44:50 <dennis> gtk-osx uses jhbuild to build the whole thing.
16:44:54 <dennis> python based :)
16:45:03 <dennis> but I built most of the deps by hand the 1st round through
16:45:17 <warlord> does preference saving work?
16:46:35 <dennis> they seem to.
16:46:49 <dennis> I just tested out the scheduled transactions preference
16:46:53 <dennis> closed/reopened
16:47:03 <warlord> quit/restarted?
16:47:04 <dennis> but it seems all my preferences from the fink build are the same.
16:47:25 <warlord> it would probably use the same $HOME
16:47:35 *** nomeata has quit IRC
16:47:47 <warlord> so the same .gconf/.gconfd
16:47:58 <dennis> yeah
16:48:02 <dennis> same home folder.
16:49:09 <warlord> well cool! glad it works.
16:49:18 <warlord> does osx ship w/ python?
16:50:29 <dennis> yes
16:51:21 <warlord> cool
16:52:31 <dennis> I'll see if I can update or add to the wiki/MaxOSX/Quartz page
16:52:38 <dennis> it's much out of date.
16:52:43 <warlord> sure!
16:52:50 <dennis> and the modules listed need to be versioned.
16:53:04 <warlord> and if you want we can start a packaging/osx dir once you have some scripts.
16:53:18 <dennis> because the way it is set up now, it builds from svn on most of the deps
16:53:37 <warlord> oh? why svn and not a released package?
16:54:01 <dennis> you can use released packages, they just don't have the module deps set up to use them.
16:54:18 <warlord> "they" == "jhbuild"?
16:54:37 <dennis> they == the person who wrote the maxosx/quartz wiki page.
16:54:47 <warlord> oh
16:54:49 <dennis> he could have just as easily created versioned modules
16:54:59 <dennis> but by default, jhbuild uses svn for their modules
16:55:07 <dennis> so he probably just added on top of that.
16:55:21 <dennis> probem is that the page quickly becomes out of date as to what needs patched and what doesn't.
16:55:53 <dennis> the discuss page for that wiki page had some helpful hints for leopard, but I still spent a long time tinkering to get the deps built.
16:56:16 <warlord> this is why you shouldn't use svn, but instead use released tarballs.
16:56:24 <warlord> (for the deps)
16:56:27 <dennis> yes exactly.
16:58:56 <dennis> my $PREFIX dir is 412M
16:59:18 <warlord> i bet it's unstripped.
16:59:35 <dennis> yeah, I didn't do much optimization or anything.
16:59:51 <dennis> still represents all the libs/deps though.
16:59:57 <dennis> how big is the windows download?
17:00:07 <warlord> yeah, that;'s about right. i bet if you stripped it, it would be smaller.
17:00:16 <warlord> ummm...
17:01:27 <warlord> 2.2.8 setup.exe is 63633467
17:01:37 <warlord> so.. 63MB installer.
17:01:47 <warlord> i don't know what the unpackaged size is.
17:01:58 <dennis> I bet this can be comparible.
17:02:02 <warlord> my guess would be ~150MB
17:02:11 <dennis> it'd be nice to use the gtk-osx installer and just link against that.
17:02:22 <warlord> if the files get stripped it would be better.
17:02:36 <dennis> then the gnucash specific stuff wouldn't need the extra files.
17:02:36 <warlord> i have no idea how to link installers.
17:02:41 <dennis> and stripping too.
17:02:52 <dennis> I've seen a couple installers that do it.
17:03:06 <dennis> windows does it too all the time, where one package installs another.
17:03:37 <warlord> does it download the dependent one? or include it by value?
17:03:48 <warlord> .. or require the user to?
17:03:49 <warlord> or...?
17:04:12 <warlord> imho the user should only need to download 1 package from the gnucash site and it does everything.
17:04:24 <dennis> You can bundle them.
17:04:40 <warlord> (preferably not requiring a second download)
17:04:41 <dennis> or perhaps provide a smaller download for advanced users who know they already have the dep.
17:04:47 <dennis> lots of programs do that with java for instance.
17:07:12 <dennis> but in the mean time, the gtk-osx installer provides a version of gtk w/out all the necessary deps anyway so that point isn't yet really important.
17:07:45 <warlord> ok
17:09:50 *** Rolf2 has quit IRC
17:17:23 <warlord> have fun
17:17:26 *** warlord is now known as warlord-afk
17:19:04 *** keyline has quit IRC
17:25:40 *** palatin has quit IRC
17:44:13 <Guy-> warlord-afk: fwiw, pidgin (which used to be gaim and is a universal instant messenger) bundles a gtk setup on windows
17:44:45 *** warlord-afk is now known as warlord
17:44:51 <warlord> Guy-: not surprising. GnuCash does, too.
17:48:42 <Guy-> maybe I didn't follow the discussion properly, but wasn't it the question how you're supposed to bundle gtk?
17:49:06 <warlord> 1. We were talking about OSX
17:49:22 <warlord> 2. It was whether we build/bundle it ourselves or include the gtk-osx installer with our own.
17:50:30 <warlord> Anyways, gotta run.
17:50:49 *** warlord is now known as warlord-afk
17:52:51 <Guy-> OK, I wasn't paying attention then, sorry :)
18:50:16 *** see-g has quit IRC
19:07:01 *** Zoolooc_ has quit IRC
19:55:03 *** dennis has quit IRC
20:21:33 *** mincepie has quit IRC
20:22:21 *** mincepie has joined #gnucash
21:59:59 *** JimRaehl has left #gnucash
22:06:03 *** JimRaehl has joined #gnucash