From 7a8761222bef07367ac265546675dfc32f42789e Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Sat, 19 Oct 2019 01:09:49 +0200 Subject: [PATCH] TT#69200 Updete perl build system dependencies List all used modules, remove unused ones and add missing ones. Move some optional dependencies into suggests. Change-Id: I66966af1fb32e97cb44c15fe9aec9cac96e36050 (cherry picked from commit 080258cf927059d7839711943b146f311c8f6a09) --- Build.PL | 26 ++++++++++++++++---------- debian/control | 10 +++++++--- 2 files changed, 23 insertions(+), 13 deletions(-) diff --git a/Build.PL b/Build.PL index 8d435a4..cb1a41b 100644 --- a/Build.PL +++ b/Build.PL @@ -15,6 +15,7 @@ my $builder = Module::Build->new( test => { requires => { 'Module::Runtime' => 0, + 'Test::More' => 0, 'Test::Unit::Procedural' => 0, }, }, @@ -28,14 +29,11 @@ my $builder = Module::Build->new( # Needed by NGCP::BulkProcessor 'Config::Any' => 0, 'DBD::CSV' => '0.26', - #'DBD::ODBC' => '1.50', - #'DBD::Oracle' => '1.21', - #'DBD::Pg' => '2.17.2', 'DBD::SQLite' => '1.29', 'DBD::mysql' => '4.014', 'DBI' => '1.608', 'Data::Dump' => 0, - 'Data::Dumper::Concise' => 0, + 'Data::Rmap' => 0, 'Data::UUID' => 0, 'Data::Validate::IP' => 0, 'Date::Calc' => 0, @@ -47,16 +45,19 @@ my $builder = Module::Build->new( 'Digest::MD5' => 0, 'Email::MIME' => 0, 'Email::MIME::Attachment::Stripper' => 0, + #'Excel::Reader::XLSX' => 0, 'Gearman::Client' => 0, - #'Gearman::Task' => 0, - #'Gearman::Worker' => 0, + 'Gearman::Task' => 0, + 'Gearman::Worker' => 0, 'HTML::Entities' => 0, + 'HTML::PullParser' => 0, 'HTTP::Request' => 0, + 'HTTP::Status' => 0, 'IO::Socket::SSL' => 0, 'IO::Uncompress::Unzip' => 0, - 'IO::Uncompress::Unzip' => 0, + 'JSON' => 0, 'LWP::UserAgent' => 0, - #'List::Util' => 0, + 'List::Util' => 0, 'Locale::Recode' => 0, 'Log::Log4Perl' => 0, 'MIME::Base64' => 0, @@ -70,17 +71,22 @@ my $builder = Module::Build->new( 'Spreadsheet::ParseExcel' => 0, 'Spreadsheet::ParseExcel::FmtUnicode' => 0, 'String::MkPasswd::mkpasswd' => 0, - #'Sys::CpuAffinity' => 0, + 'Sys::CpuAffinity' => 0, 'Text::CSV_XS' => 0, 'Tie::IxHash' => 0, 'Time::HiRes' => 0, 'Time::Warp' => 0, - 'URI::Escape' => 0, + 'URI' => 0, 'URI::Find' => 0, 'UUID' => 0, 'XML::Dumper' => '0.81', 'YAML::XS' => 0, }, + suggests => { + 'DBD::ODBC' => '1.50', + 'DBD::Oracle' => '1.21', + 'DBD::Pg' => '2.17.2', + }, }, }, }, diff --git a/debian/control b/debian/control index ab56ac5..f7e5980 100644 --- a/debian/control +++ b/debian/control @@ -34,7 +34,6 @@ Depends: ${perl:Depends}, libconfig-any-perl, libdata-dump-perl, - libdata-dumper-concise-perl, libdata-rmap-perl, libdata-uuid-perl, libdata-validate-ip-perl, @@ -47,18 +46,18 @@ Depends: libdbd-csv-perl, libdbd-mysql-perl, libdbd-sqlite3-perl, - libdigest-md5-perl, libemail-mime-attachment-stripper-perl, libemail-mime-perl, libexcel-reader-xlsx-perl, libgearman-client-perl, libhtml-parser-perl, + libhttp-message-perl, libintl-perl, libio-socket-ssl-perl, + libjson-perl, liblog-log4perl-perl, libmail-imapclient-perl, libmarpa-r2-perl, - libmime-base64-perl, libmime-lite-perl, libmime-tools-perl, libnet-address-ip-local-perl, @@ -70,10 +69,15 @@ Depends: libtie-ixhash-perl, libtime-warp-perl, liburi-find-perl, + liburi-perl, libuuid-perl, libwww-perl, libxml-dumper-perl, libyaml-libyaml-perl, +Suggests: + libdbd-odbc-perl, + libdbd-orable-perl, + libdbd-pg-perl, Description: NGCP bulk processor framework perl modules This package provides the NGCP::BulkProcessor perl modules that implement a framework for parallel/distributed processing of record blocks.