Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 7186

Summary: missing dependency GnuCash for finance::quote perl modules
Product: Gentoo Linux Reporter: Decibels <decibels.2862>
Component: Current packagesAssignee: Gentoo Linux Gnome Desktop Team <gnome>
Status: RESOLVED FIXED    
Severity: normal CC: jap1, mcummings
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Decibels 2002-08-28 15:23:19 UTC
I made note of this in the Gentoo Forum and they said should post this here. 

Basically when you install GnuCash and use: update-finance-quote   script
it does not check to see if the libwww-perl (lwp) is installed. Therefore
cannot get quotes to work in GnuCash. It will still complain that the
finance::quote modules are not installed and not work when trying to get quotes.

In order to get quotes to work in GnuCash you have to emerge libwww-perl, either
before or after and it will work.

Also when tried to run quotes from the command line I got error that couldn't
find UserAgent.pm .  It was on the system and after libwww-perl was emerged it
worked. 

I haven't looked into the last part in depth, but it seems that the problems are
related. Not sure if finance::quote  modules OR update-finance-quote script
should contain the check for libwww-perl. I leave that to the experts.
Comment 1 Michael Cummings (RETIRED) gentoo-dev 2002-09-24 13:25:00 UTC
Is anyone looking into this (I just noticed I was cc'd on it)? Not that time is
copiusly free, but let me know if you need a hand gnome folks.
Comment 2 Spider (RETIRED) gentoo-dev 2002-09-24 14:32:35 UTC
Gnome folks is just me right now. and ska-fan  I think... and I'd welcome any
help  I get :)
Comment 3 foser (RETIRED) gentoo-dev 2002-10-14 17:27:41 UTC
Whats the status here ? I'm no perl guru (and thats an understatement).
Comment 4 foser (RETIRED) gentoo-dev 2002-10-18 18:20:18 UTC
'In order to get quotes to work in GnuCash you have to emerge libwww-perl, either
before or after and it will work.' 

in this i'd say its not an essential part and we shouldnt add another dep, maye
add a little note at the end of the build process mentioning this ? Ok with
everyone ?
Comment 5 Decibels 2002-10-18 18:33:03 UTC
I think the is Okay! I just recently put GnuCash on the 1.4rc1 system. But already
had libwww-perl installed, and everything worked fine. There was another bug on
dep of perl Date-Calc, that was fixed also. So I believe a note should work fine.

Will this be a note in the build of GnuCash (which people may forget about if
not installing the other stuff right away), or when you run the script
'update-finance-quote'. That is where I think it should be.
Comment 6 foser (RETIRED) gentoo-dev 2002-10-19 19:13:42 UTC
It's probably way easier to do my first suggestion. But if you can make a patch
for the second ? :) (i dont have gnucash)
Comment 7 Decibels 2002-10-20 21:16:56 UTC
I have been messing with 'sed' to try and append the message to the
update-finance-quotes script and not having any luck. Will write it to the
the screen, but doesn't actually write to the file. Can delete a line fine, but
not append. 

So in the mean time, I have written the developers on SourceForge asking them
about adding the line and the reason for it. Maybe they will beat me to the punch.

I haven't written a patch before, so still will see what I can do.
Comment 8 Decibels 2002-10-21 19:49:19 UTC
I talked to the Finance::Quote guy. He doesn't own the script cause it comes
with GnuCash. So I am off to see about getting them to add the notice or make it
a dep if they want.

I wrote a patch, little big for such a simple thing, but had to do some checks,..
I won't submit the patch until I get a notice from GnuCash. Then if not I may
need some help on this cause never submitted a patch before.

Comment 9 foser (RETIRED) gentoo-dev 2002-10-22 05:36:54 UTC
Sure, your efforts are appreciated. But this isn't gentoo specific, is it ? I
doubt they will add a gentoo specific note.
Comment 10 Decibels 2002-10-22 09:11:13 UTC
Well, I put it to them like this briefly.

"GnuCash doesn't depend on libwww-perl, but the scripte update-finance-quotes
does. Some disto's may install this buy default, but if they don't then
Quotes in GnuCash won't work. The developer for Finance::Quotes agrees, but
doesn't own the script.
Can something be done on your end to either add a notice that libwww-perl 
needs to be installed when running the script or add a dep if you want."

I posted that last night on their developer list. If they don't bite, then
I will see about submitting the patch.

How does that sound?
Comment 11 Decibels 2002-10-22 21:27:23 UTC
Pretty big discussion on Gnucash about libwww-perl today. 
Think something is going to be done.
Comment 12 Leonardo Boshell (RETIRED) gentoo-dev 2002-11-07 06:26:36 UTC
*** Bug 6381 has been marked as a duplicate of this bug. ***
Comment 13 foser (RETIRED) gentoo-dev 2002-12-04 08:44:41 UTC
Well, any progress here ? Or should i just add the einfo line or something ?
Comment 14 Decibels 2002-12-04 09:00:35 UTC
I am guessing let's drop the issue for now. 
Why:
 GnuCash was real interested at first, then Completely forgot the discussion
couple days later. I guess most distro's install libwww-perl by default.

 I wrote to another guy that had the duplicate bug, he never responded so I
could find out if it was a problem still existed or CPAN took care of it when
ran update-finance-quote.

 I just tried it again, but from another emerge I already had libwww-perl
installed so didn't run into the problem.

Either other people are not using GnuCash on Gentoo, not running into the
problem cause libwww-perl installed already from another emerge, or just don't
care. Let's save ourselves the headache and drop it. The script worked real well
and helped me understand using sed much better though, so did get something out
of it.

Thanks for the help though. If you agree, close it out or if want I will.

Dave
Comment 15 Decibels 2002-12-06 10:30:38 UTC
Great News, well sort of. I just received a email that it will be taken care of.
So I guess we can close this bug.

Here is the contents of the email I received:

On Mon, 2002-10-21 at 18:35, David wrote:

> Hello,
>    
>     The script that comes with GnuCash doesn't check if libwww-perl is 
> installed, which it won't work without.
> I emailed the Finance::Quote developer and he agrees that something 
> should be done, but it isn't his script.


I've added this to the list of things that Gnucash checks for before
trying to run the Finance::Quote module.

David