Bug 237214 - stats|graphical reports fail due to missing perl modules
stats|graphical reports fail due to missing perl modules
Status: CLOSED NEXTRELEASE
Product: Fedora
Classification: Fedora
Component: otrs (Show other bugs)
6
All Linux
medium Severity medium
: ---
: ---
Assigned To: Mike McGrath
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2007-04-20 01:02 EDT by David Timms
Modified: 2007-11-30 17:12 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2007-04-20 09:34:42 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


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

  None (edit)
Description David Timms 2007-04-20 01:02:40 EDT
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 01:06:49 EDT
Created attachment 153085 [details]
diff -u patch to require perl-GDGraph

/\ patched spec tested above /\
Comment 2 Mike McGrath 2007-04-20 09:34:42 EDT
Built, should be on the mirrors soon.
Comment 3 Ralf Corsepius 2007-04-20 11:27:47 EDT
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.