[Koha-devel] Sorting out Koha's dependecies

Edgar Fuß ef at math.uni-bonn.de
Fri Jul 22 13:54:48 CEST 2011


In the course of importing Koha 3.4.2 into the NetBSD pkgsrc collection, I tried to sort out the required Perl modules.
I compared a hand-crafted list (obtained by grep'ing) with C4/Installer/PerlDependencies.pm and it looks like I've found some mis-matches.

1. The following modules are listed in $PERL_DEPS, but I can't find any place where they are actually being used:

DBD::mysql
DateTime
Email::Date
GD::Barcode::UPCE
PDF::API2::Simple
PDF::API2::Util
XML::RSS

2. The following modules are NOT listed in $PERL_DEPS, though it appears to me they are, in fact, used (maybe in dead code?) in the listed file(s):

Archive::Zip	C4/ImportExportFramework.pm
Cache::Memcached	C4/Auth.pm, C4/Cache/Memcached.pm
File::Slurp	misc/load_testing/benchmark_webservices.pl
HTML::Entities	C4/Acquisition.pm, C4/ILSDI/Services.pm
HTML::Tree	misc/translator/text-extract.pl
HTTPD::Bench::ApacheBench	misc/load_testing/benchmark_circulation.pl
MARC::Lint	misc/cronjobs/MARC21_parse_test.pl
Mail::RFC822::Address	misc/cronjobs/smsoverdues.pl
SQL::Statement	C4/ImportExportFramework.pm
Test::Class::Load	t/db_dependent/database_dependent.pl
Test::Exception	selenium/PERL/Members/FilterMembers.pl, selenium/PERL/Members/AddMember.pl, selenium/PERL/Members/Searchmember.pl
Test::WWW::Selenium	selenium/PERL/Members/FilterMembers.pl, selenium/PERL/Members/AddMember.pl, selenium/PERL/Members/Searchmember.pl
Unix::Syslog	misc/bin/zebraqueue_daemon.pl
Win32::Process	sms/sms_listen_windows_start.pl

3. The following CORE modules are listed in $PERL_DEPS. This may be intentional:

CGI::Carp
Digest::MD5
Digest::SHA
File::Temp
Getopt::Long
Getopt::Std
IPC::Cmd
List::Util
Locale::Language
MIME::Base64
MIME::QuotedPrint
POSIX
Storable
Term::ANSIColor
Test
Test::Harness
Test::More
Text::Wrap
Time::HiRes
Time::localtime
Unicode::Normalize

4. It appears to be inconsistent whether $PERL_DEPS lists the modules actually use'd or require'd (i.e., ZOOM) or those modules' base modules (i.e., Net::Z3950::ZOOM).

Thanks for any clarification.


More information about the Koha-devel mailing list