Blame SOURCES/libnet-3.08-Do-not-create-Net-libnet.cfg.patch

90a40c
From a40f2774eede8e65dd6128b45525ec88f469e031 Mon Sep 17 00:00:00 2001
90a40c
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
90a40c
Date: Fri, 10 Jul 2015 13:02:00 +0200
90a40c
Subject: [PATCH 2/2] Do not create Net/libnet.cfg
90a40c
MIME-Version: 1.0
90a40c
Content-Type: text/plain; charset=UTF-8
90a40c
Content-Transfer-Encoding: 8bit
90a40c
90a40c
I will remove the Net/libnet.cfg because:
90a40c
90a40c
(1) it's content equals to default configuration hard-coded in the
90a40c
code
90a40c
(2) it's kind of configuration file we do not mark it as a configuration
90a40c
file, so it's overwritten on each update
90a40c
(3) it's loaded from directory based on Net::Config module location.
90a40c
I.e. core module will search it in core path, vendor module in vendor
90a40c
path and site module in site path.
90a40c
90a40c
perl.spec does not provide it either.
90a40c
90a40c
<https://bugzilla.redhat.com/show_bug.cgi?id=1238689>
90a40c
90a40c
Signed-off-by: Petr Písař <ppisar@redhat.com>
90a40c
---
90a40c
 Makefile.PL | 2 +-
90a40c
 1 file changed, 1 insertion(+), 1 deletion(-)
90a40c
90a40c
diff --git a/Makefile.PL b/Makefile.PL
90a40c
index 64d6959..25fc626 100644
90a40c
--- a/Makefile.PL
90a40c
+++ b/Makefile.PL
90a40c
@@ -235,7 +235,7 @@ MAIN: {
90a40c
 sub MY::post_initialize {
90a40c
     my $self = shift;
90a40c
 
90a40c
-    return '' if $self->{PERL_CORE};
90a40c
+    return '';
90a40c
 
90a40c
     if (not -f $CfgFile) {
90a40c
         my @args = qw(Configure);
90a40c
-- 
90a40c
2.5.0
90a40c