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.
Created attachment 153085 [details] diff -u patch to require perl-GDGraph /\ patched spec tested above /\
Built, should be on the mirrors soon.
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).