Bug 237214 - stats|graphical reports fail due to missing perl modules
Summary: stats|graphical reports fail due to missing perl modules
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: otrs
Version: 6
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Mike McGrath
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-04-20 05:02 UTC by David Timms
Modified: 2007-11-30 22:12 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-04-20 13:34:42 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
diff -u patch to require perl-GDGraph (909 bytes, patch)
2007-04-20 05:06 UTC, David Timms
no flags Details | Diff

Description David Timms 2007-04-20 05:02:40 UTC
Description of problem:
Trying the agent|stats|graphs fail with:
  Module 'GD::Graph' not found!

Version-Release number of selected component (if applicable):
otrs-2.1.5-1.fc6

How reproducible:
Yes. on a minimal installation.

Steps to Reproduce:
1. yum install otrs
2. set it up
3. http://otrs/otrs/index.pl
4. stats
5. 10002 New Tickets
6. start
  
Actual results:
 Error: Module 'GD::Graph' not found!

Comment: 	
Bug Report: 	
Traceback: 	ERROR: OTRS-CGI-21 Perl: 5.8.8 OS: linux Time: Fri Apr 20 10:57:33 2007

Message: Module 'GD::Graph' not found!

Traceback (9308):
   Module: Kernel::System::Stats::GenerateGraph (v1.14.2.1) Line: 1171
   Module: Kernel::Modules::AgentStats::Run (v1.22) Line: 2063
   Module: Kernel::System::Web::InterfaceAgent::Run (v1.17.2.1) Line: 671
   Module:
ModPerl::ROOT::ModPerl::Registry::var_www_otrs_bin_cgi_2dbin_index_2epl::handler
(v) Line: 47
   Module: (eval) (v1.81) Line: 203
   Module: ModPerl::RegistryCooker::run (v1.81) Line: 203
   Module: ModPerl::RegistryCooker::default_handler (v1.81) Line: 169
   Module: ModPerl::Registry::handler (v1.99) Line: 30

Expected results:
pretty graph showing how we've saved our users.

Additional info:
Solution: yum install perl-GDGraph.
this pulls in:
  perl-GD 
  perl-GDTextUtils

Tested:
rpmbuild -ba otrs.spec
rpm -e perl-GDGraph perl-GDTextUtils perl-GD
rpm -Uvh otrs-....rpm
stats graphs work.

Comment 1 David Timms 2007-04-20 05:06:49 UTC
Created attachment 153085 [details]
diff -u patch to require perl-GDGraph

/\ patched spec tested above /\

Comment 2 Mike McGrath 2007-04-20 13:34:42 UTC
Built, should be on the mirrors soon.

Comment 3 Ralf Corsepius 2007-04-20 15:27:47 UTC
The patch is very questionable:

Module: Kernel::System::Stats::GenerateGraph (v1.14.2.1) Line: 1171ff
read:

    foreach my $Module ('GD', 'GD::Graph', $GDBackend) {
        if (!$Self->{MainObject}->Require($Module)) {
            return $Self->{LayoutObject}->FatalError();
        }

I.e. At run-time, the package searches for perl(GD) and/or perl(GD::Graph) on
perl's default module search path and not for the package perl-GDGraph.

=> the rpm-correctly way would be to 
Requires: perl(GD) perl(GD::Graph)

and not to "Requires: perl-GDGraph"

perl(...) is the rpm-notation referring to the perl-module. perl-... is the rpm
notation to refer to the package. The difference between both become apparent
when perl modules move between packages (rather unlikely in this case).



Note You need to log in before you can comment on or make changes to this bug.