Blame SOURCES/HTTP-Daemon-6.04-EU-MM-is-not-deprecated.patch

82f162
From 30b91a0898e50874886343b66d27f78eaf960faf Mon Sep 17 00:00:00 2001
82f162
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
82f162
Date: Tue, 2 Apr 2019 16:54:42 +0200
82f162
Subject: [PATCH] EU::MM is not deprecated
82f162
MIME-Version: 1.0
82f162
Content-Type: text/plain; charset=UTF-8
82f162
Content-Transfer-Encoding: 8bit
82f162
82f162
Contrary to the warning in the Makefile.PL, only ExtUtils::MakeMaker
82f162
is a full-fledged system. Module::Build is not maintained anymore and
82f162
Module::Build::Tiny contains design flaws regarding XS compilation.
82f162
82f162
Signed-off-by: Petr Písař <ppisar@redhat.com>
82f162
---
82f162
 Makefile.PL | 61 -----------------------------------------------------
82f162
 1 file changed, 61 deletions(-)
82f162
82f162
diff --git a/Makefile.PL b/Makefile.PL
82f162
index 5915c46..e98af42 100644
82f162
--- a/Makefile.PL
82f162
+++ b/Makefile.PL
82f162
@@ -9,67 +9,6 @@ use warnings;
82f162
 use 5.006;
82f162
 use ExtUtils::MakeMaker;
82f162
 
82f162
-BEGIN {
82f162
-my %configure_requires = (
82f162
-    'ExtUtils::MakeMaker' => '0',
82f162
-    'Module::Build::Tiny' => '0.034',
82f162
-);
82f162
-
82f162
-my %errors = map {
82f162
-    eval "require $_; $_->VERSION($configure_requires{$_}); 1";
82f162
-    $_ => $@,
82f162
-} keys %configure_requires;
82f162
-
82f162
-if (grep { $_ } values %errors)
82f162
-{
82f162
-    warn "Errors from configure prereqs:\n"
82f162
-        . do {
82f162
-            require Data::Dumper; Data::Dumper->new([ \%errors ])->Indent(2)->Terse(1)->Sortkeys(1)->Dump;
82f162
-        };
82f162
-}
82f162
-
82f162
-if (not $ENV{PERL_MM_FALLBACK_SILENCE_WARNING})
82f162
-{
82f162
-    warn <<'EOW';
82f162
-*** WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING ***
82f162
-
82f162
-If you're seeing this warning, your toolchain is really, really old* and
82f162
-you'll almost certainly have problems installing CPAN modules from this
82f162
-century. But never fear, dear user, for we have the technology to fix this!
82f162
-
82f162
-If you're using CPAN.pm to install things, then you can upgrade it using:
82f162
-
82f162
-    cpan CPAN
82f162
-
82f162
-If you're using CPANPLUS to install things, then you can upgrade it using:
82f162
-
82f162
-    cpanp CPANPLUS
82f162
-
82f162
-If you're using cpanminus, you shouldn't be seeing this message in the first
82f162
-place, so please file an issue on github.
82f162
-
82f162
-If you're using a packaging tool through a unix distribution, this issue
82f162
-should be reported to the package manager.
82f162
-
82f162
-If you're installing manually, please retrain your fingers to run Build.PL
82f162
-when present instead of Makefile.PL.
82f162
-
82f162
-This public service announcement was brought to you by the Perl Toolchain
82f162
-Gang, the irc.perl.org #toolchain IRC channel, and the number 42.
82f162
-
82f162
-----
82f162
-
82f162
-* Alternatively, you are doing something overly clever, in which case you
82f162
-should consider setting the 'prefer_installer' config option in CPAN.pm, or
82f162
-'prefer_makefile' in CPANPLUS, to 'mb" and '0' respectively.
82f162
-
82f162
-You can also silence this warning for future installations by setting the
82f162
-PERL_MM_FALLBACK_SILENCE_WARNING environment variable.
82f162
-EOW
82f162
-    sleep 10 if -t STDIN && (-t STDOUT || !(-f STDOUT || -c STDOUT));
82f162
-}
82f162
-} # end BEGIN
82f162
-
82f162
 my %WriteMakefileArgs = (
82f162
   "ABSTRACT" => "A simple http server class",
82f162
   "AUTHOR" => "Gisle Aas <gisle\@activestate.com>",
82f162
-- 
82f162
2.20.1
82f162