Finance::Quote support requires libcrypt-ssleay-perl, but gnucash doesn't require it.

Bug #54820 reported by Adam Buchbinder
8
Affects Status Importance Assigned to Milestone
gnucash (Debian)
Fix Released
Unknown
gnucash (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: gnucash

On a system without Crypt::SSLeay installed, gnucash's Finance::Quote support is broken. To demonstrate, install gnucash 2.0.0-1ubuntu1 on a system that does not have libcrypt-ssleay-perl installed, and run /usr/bin/gnc-fq-check:

$ /usr/bin/gnc-fq-check

You need to install the following Perl modules:
  Crypt::SSLeay

Use your system's package manager to install them,
or run 'gnc-fq-update' as root.
missing-lib

In the GUI, Finance::Quote simply doesn't load. A simple workaround is to install the package libcrypt-ssleay-perl, which provides Crypt:SSLeay. Finance::Quote support then works as it should.

Changed in gnucash:
status: Unknown → Unconfirmed
Revision history for this message
andi5 (andi5) wrote :

Seems to be a bug in the Crypt::SSLeay CPAN package that is fixed in debian/ubuntu packages. See
http://www.linuxfromscratch.org/blfs/view/svn/general/perl-modules.html
http://librarian.launchpad.net/1407790/crypt-ssleay_0.51-5.diff.gz

It is definitely no bug in the gnucash package :)

Changed in gnucash:
status: Unconfirmed → Rejected
Revision history for this message
Adam Buchbinder (adam-buchbinder) wrote :

The problem cannot be a bug in Crypt::SSLeay, because Crypt::SSLeay is not being installed in the first place, though gnucash requires it for full functionality. The problem is that the libcrypt-ssleay-perl is not installed by the gnucash package; the bug, then, is in gnucash.

Changed in gnucash:
status: Rejected → Unconfirmed
Revision history for this message
andi5 (andi5) wrote :

OK, I will stop rejecting bugs ;-)

I assumed you did what gnc-fq-check told you, namely run "gnc-fq-update" as root. If you do this, you will see that Crypt::SSLeay is not installed, since there is indeed a bug in the CPAN package.

So now i suppose (hopefully correctly) that you want gnucash to depend on libcrypt-ssleay-perl. I would rather propose to make libfinance-quote-perl to depend on it.

What do you think?

PS: From the release notes of FQ 1.12:
* Makefile.PL: State the dependency on Crypt::SSLeay that several modules now have.

Revision history for this message
Adam Buchbinder (adam-buchbinder) wrote :

My current understanding is:

* Finance::Quote will work on its own without Crypt::SSLeay.

* gnucash will not support Finance::Quote unless Crypt::SSLeay is installed.

Based on this, it seems to me that as Crypt::SSLeay support is peculiar to gnucash's particular use of Finance::Quote, it should be required directly by gnucash.

I believe, but am not quite certain, that Finance::Quote has certain capabilities that are only available with Crypt::SSLeay installed. I would guess that in this case, libfinance-quote-perl should recommend but not require libcrypt-ssleay-perl. Is this how the recommends/requires policy works?

Revision history for this message
andi5 (andi5) wrote :

I know that edgy has FQ 1.11 included, but i still vote for filing this bug to libfinance-quote-perl, based on the following quote of the author/maintainer(?) of FQ, David Hampton, in http://lists.gnucash.org/pipermail/gnucash-user/2006-August/017434.html

"""[...] install the perl Crypt::SSLeay module. This module is required by the latest version of Finance::Quote (v1.12), so the scripts in gnucash 2.0 were updated to check for it as well."""

Changed in gnucash:
status: Unconfirmed → Fix Released
Revision history for this message
andi5 (andi5) wrote :

Adam, I guess you are fine with Debian's solution, right? :)
Closing, fixed in 2.0.1-2.

Changed in gnucash:
status: Unconfirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.