diff options
author | Dylan Hardison <dylan@mozilla.com> | 2016-02-23 22:23:20 +0100 |
---|---|---|
committer | Dylan Hardison <dylan@mozilla.com> | 2016-02-23 22:23:20 +0100 |
commit | 2c33712dc066463ab9741a009e56d9a5c2ffedf6 (patch) | |
tree | 0be4c1368181648d715a35fd077324d3db0e4dc7 /contrib | |
parent | a8adffb5ba7161a9ac491cca98d880577c1ab2fc (diff) | |
download | bugzilla-2c33712dc066463ab9741a009e56d9a5c2ffedf6.tar.gz bugzilla-2c33712dc066463ab9741a009e56d9a5c2ffedf6.tar.xz |
Bug 1246528 - Use Makefile.PL and allow Bugzilla use cpanm-compatible local dependencies
r=dkl,a=dylan
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/bzdbcopy.pl | 2 | ||||
-rwxr-xr-x | contrib/console.pl | 2 | ||||
-rwxr-xr-x | contrib/convert-workflow.pl | 2 | ||||
-rwxr-xr-x | contrib/extension-convert.pl | 2 | ||||
-rwxr-xr-x | contrib/fixperms.pl | 2 | ||||
-rwxr-xr-x | contrib/merge-users.pl | 2 | ||||
-rwxr-xr-x | contrib/recode.pl | 7 | ||||
-rwxr-xr-x | contrib/sendbugmail.pl | 2 | ||||
-rwxr-xr-x | contrib/sendunsentbugmail.pl | 2 | ||||
-rwxr-xr-x | contrib/syncLDAP.pl | 2 |
10 files changed, 13 insertions, 12 deletions
diff --git a/contrib/bzdbcopy.pl b/contrib/bzdbcopy.pl index fcdbefd56..73160cf6a 100755 --- a/contrib/bzdbcopy.pl +++ b/contrib/bzdbcopy.pl @@ -10,7 +10,7 @@ use 5.10.1; use strict; use warnings; -use lib qw(. lib); +use lib qw(. lib local/lib/perl5); use Bugzilla; use Bugzilla::Constants; use Bugzilla::DB; diff --git a/contrib/console.pl b/contrib/console.pl index fe2342cd9..b2060bbdb 100755 --- a/contrib/console.pl +++ b/contrib/console.pl @@ -10,7 +10,7 @@ use warnings; use File::Basename; BEGIN { chdir dirname($0) . "/.."; } -use lib qw(. lib); +use lib qw(. lib local/lib/perl5); use Bugzilla; use Bugzilla::Constants; diff --git a/contrib/convert-workflow.pl b/contrib/convert-workflow.pl index d9bffb7bb..1cbabca37 100755 --- a/contrib/convert-workflow.pl +++ b/contrib/convert-workflow.pl @@ -10,7 +10,7 @@ use 5.10.1; use strict; use warnings; -use lib qw(. lib); +use lib qw(. lib local/lib/perl5); use Bugzilla; use Bugzilla::Config qw(:admin); diff --git a/contrib/extension-convert.pl b/contrib/extension-convert.pl index 91a77b839..d4f29d855 100755 --- a/contrib/extension-convert.pl +++ b/contrib/extension-convert.pl @@ -10,7 +10,7 @@ use 5.10.1; use strict; use warnings; -use lib qw(. lib); +use lib qw(. lib local/lib/perl5); use Bugzilla; use Bugzilla::Constants; diff --git a/contrib/fixperms.pl b/contrib/fixperms.pl index 33b042c66..a6e31fe70 100755 --- a/contrib/fixperms.pl +++ b/contrib/fixperms.pl @@ -10,7 +10,7 @@ use 5.10.1; use strict; use warnings; -use lib qw(. lib); +use lib qw(. lib local/lib/perl5); use Bugzilla; use Bugzilla::Install::Filesystem qw(fix_all_file_permissions); diff --git a/contrib/merge-users.pl b/contrib/merge-users.pl index 86b209ab2..8e13b0934 100755 --- a/contrib/merge-users.pl +++ b/contrib/merge-users.pl @@ -31,7 +31,7 @@ merge-users.pl - Merge two user accounts. =cut -use lib qw(. lib); +use lib qw(. lib local/lib/perl5); use Bugzilla; use Bugzilla::Constants; diff --git a/contrib/recode.pl b/contrib/recode.pl index e6da47b92..edd9fe423 100755 --- a/contrib/recode.pl +++ b/contrib/recode.pl @@ -10,7 +10,7 @@ use 5.10.1; use strict; use warnings; -use lib qw(. lib); +use lib qw(. lib local/lib/perl5); use Bugzilla; use Bugzilla::Constants; @@ -88,17 +88,18 @@ if (exists $switch{'charset'}) { } if ($switch{'guess'}) { - if (!eval { require Encode::Detect::Detector }) { + if (!Bugzilla->has_feature('detect_charset')) { my $root = ROOT_USER; print STDERR <<EOT; Using --guess requires that Encode::Detect be installed. To install Encode::Detect, run the following command: - $^X install-module.pl Encode::Detect + cpanm --installdeps --with-feature=detect_charset -l local . EOT exit; } + require Encode::Detect; } my %overrides; diff --git a/contrib/sendbugmail.pl b/contrib/sendbugmail.pl index 223d91f6c..c48a6f713 100755 --- a/contrib/sendbugmail.pl +++ b/contrib/sendbugmail.pl @@ -10,7 +10,7 @@ use 5.10.1; use strict; use warnings; -use lib qw(. lib); +use lib qw(. lib local/lib/perl5); use Bugzilla; use Bugzilla::Util; diff --git a/contrib/sendunsentbugmail.pl b/contrib/sendunsentbugmail.pl index b9034aa8d..639762af9 100755 --- a/contrib/sendunsentbugmail.pl +++ b/contrib/sendunsentbugmail.pl @@ -10,7 +10,7 @@ use 5.10.1; use strict; use warnings; -use lib qw(. lib); +use lib qw(. lib local/lib/perl5); use Bugzilla; use Bugzilla::Constants; diff --git a/contrib/syncLDAP.pl b/contrib/syncLDAP.pl index f618624ec..872dbc3d7 100755 --- a/contrib/syncLDAP.pl +++ b/contrib/syncLDAP.pl @@ -10,7 +10,7 @@ use 5.10.1; use strict; use warnings; -use lib qw(. lib); +use lib qw(. lib local/lib/perl5); use Net::LDAP; use Bugzilla; |