aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2013-01-06 00:25:35 +0100
committerFrédéric Buclin <LpSolit@gmail.com>2013-01-06 00:25:35 +0100
commitc0bb8832ebf01682c5b39472aec6395d7fceada8 (patch)
treea6e78d300019065365f78a2085c5f4decce9f018 /Bugzilla
parentBug 824262: Querying for strings in comments is now ultra slow (diff)
downloadbugzilla-c0bb8832ebf01682c5b39472aec6395d7fceada8.tar.gz
bugzilla-c0bb8832ebf01682c5b39472aec6395d7fceada8.tar.bz2
bugzilla-c0bb8832ebf01682c5b39472aec6395d7fceada8.zip
Bug 826678: Disable warnings about the deprecated Return::Value module when loading Email::Send
r=wicked a=LpSolit
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Config/MTA.pm6
-rw-r--r--Bugzilla/Install/Requirements.pm7
-rw-r--r--Bugzilla/Mailer.pm6
3 files changed, 19 insertions, 0 deletions
diff --git a/Bugzilla/Config/MTA.pm b/Bugzilla/Config/MTA.pm
index bf038cf49..8184b9f5e 100644
--- a/Bugzilla/Config/MTA.pm
+++ b/Bugzilla/Config/MTA.pm
@@ -10,6 +10,12 @@ package Bugzilla::Config::MTA;
use strict;
use Bugzilla::Config::Common;
+# Return::Value 1.666002 pollutes the error log with warnings about this
+# deprecated module. We have to set NO_CLUCK = 1 before loading Email::Send
+# to disable these warnings.
+BEGIN {
+ $Return::Value::NO_CLUCK = 1;
+}
use Email::Send;
our $sortkey = 1200;
diff --git a/Bugzilla/Install/Requirements.pm b/Bugzilla/Install/Requirements.pm
index 0cdc3b291..493b78edd 100644
--- a/Bugzilla/Install/Requirements.pm
+++ b/Bugzilla/Install/Requirements.pm
@@ -22,6 +22,13 @@ use List::Util qw(max);
use Safe;
use Term::ANSIColor;
+# Return::Value 1.666002 pollutes the error log with warnings about this
+# deprecated module. We have to set NO_CLUCK = 1 before loading Email::Send
+# in have_vers() to disable these warnings.
+BEGIN {
+ $Return::Value::NO_CLUCK = 1;
+}
+
use base qw(Exporter);
our @EXPORT = qw(
REQUIRED_MODULES
diff --git a/Bugzilla/Mailer.pm b/Bugzilla/Mailer.pm
index 5ef731063..64640150b 100644
--- a/Bugzilla/Mailer.pm
+++ b/Bugzilla/Mailer.pm
@@ -23,6 +23,12 @@ use Encode qw(encode);
use Encode::MIME::Header;
use Email::Address;
use Email::MIME;
+# Return::Value 1.666002 pollutes the error log with warnings about this
+# deprecated module. We have to set NO_CLUCK = 1 before loading Email::Send
+# to disable these warnings.
+BEGIN {
+ $Return::Value::NO_CLUCK = 1;
+}
use Email::Send;
sub MessageToMTA {