Blame SOURCES/net-snmp-5.8-cflags.patch

23ac29
diff -urNp a/net-snmp-config.in b/net-snmp-config.in
23ac29
--- a/net-snmp-config.in	2018-07-18 13:43:12.264426052 +0200
23ac29
+++ b/net-snmp-config.in	2018-07-18 13:52:06.917089518 +0200
23ac29
@@ -140,10 +140,10 @@ else
23ac29
       ;;
23ac29
     #################################################### compile
23ac29
     --base-cflags)
23ac29
-      echo @CFLAGS@ @CPPFLAGS@ -I${NSC_INCLUDEDIR}
23ac29
+      echo -I${NSC_INCLUDEDIR}
23ac29
       ;;
23ac29
     --cflags|--cf*)
23ac29
-      echo @CFLAGS@ @DEVFLAGS@ @CPPFLAGS@ -I. -I${NSC_INCLUDEDIR}
23ac29
+      echo @DEVFLAGS@ -I. -I${NSC_INCLUDEDIR}
23ac29
       ;;
23ac29
     --srcdir)
23ac29
       echo $NSC_SRCDIR
23ac29
diff -urNp a/perl/agent/default_store/Makefile.PL b/perl/agent/default_store/Makefile.PL
23ac29
--- a/perl/agent/default_store/Makefile.PL	2018-07-18 13:43:12.170426290 +0200
23ac29
+++ b/perl/agent/default_store/Makefile.PL	2018-07-18 13:51:31.812176486 +0200
23ac29
@@ -83,7 +83,7 @@ sub AgentDefaultStoreInitMakeParams {
23ac29
                 " " . $Params{'LIBS'};
23ac29
 	    $Params{'CCFLAGS'} = "-I../../../include " . $Params{'CCFLAGS'};
23ac29
 	}
23ac29
-	$Params{'CCFLAGS'} =~ s/ -W(all|inline|strict-prototypes|write-strings|cast-qual|no-char-subscripts)//g; # ignore developer warnings
23ac29
+	$Params{'CCFLAGS'} =~ s/ -W(inline|strict-prototypes|write-strings|cast-qual|no-char-subscripts)//g; # ignore developer warnings
23ac29
         $Params{'CCFLAGS'} .= ' -Wformat';
23ac29
 	if ($Params{'LIBS'} eq "" || $Params{'CCFLAGS'} eq "") {
23ac29
 	    die "You need to install net-snmp first (I can't find net-snmp-config)";
23ac29
diff -urNp a/perl/agent/Makefile.PL b/perl/agent/Makefile.PL
23ac29
--- a/perl/agent/Makefile.PL	2018-07-18 13:43:12.169426292 +0200
23ac29
+++ b/perl/agent/Makefile.PL	2018-07-18 13:52:53.884973275 +0200
23ac29
@@ -98,7 +98,7 @@ sub AgentInitMakeParams {
23ac29
 	    $Params{'LIBS'} = `$opts->{'nsconfig'} --libdir` . $Params{'LIBS'};
23ac29
 #	    $Params{'PREREQ_PM'} = {'NetSNMP::OID' => '0.1'};
23ac29
 	}
23ac29
-	$Params{'CCFLAGS'} =~ s/ -W(all|inline|strict-prototypes|write-strings|cast-qual|no-char-subscripts)//g; # ignore developer warnings
23ac29
+	$Params{'CCFLAGS'} =~ s/ -W(inline|strict-prototypes|write-strings|cast-qual|no-char-subscripts)//g; # ignore developer warnings
23ac29
         $Params{'CCFLAGS'} .= ' -Wformat';
23ac29
 	if ($Params{'LIBS'} eq "" || $Params{'CCFLAGS'} eq "") {
23ac29
 	    die "You need to install net-snmp first (I can't find net-snmp-config)";
23ac29
diff -urNp a/perl/agent/Support/Makefile.PL b/perl/agent/Support/Makefile.PL
23ac29
--- a/perl/agent/Support/Makefile.PL	2018-07-18 13:43:12.169426292 +0200
23ac29
+++ b/perl/agent/Support/Makefile.PL	2018-07-18 13:53:11.414929921 +0200
23ac29
@@ -90,7 +90,7 @@ sub SupportInitMakeParams {
23ac29
             " " . $Params{'LIBS'};
23ac29
 	$Params{'CCFLAGS'} = "-I../../include " . $Params{'CCFLAGS'};
23ac29
       }
23ac29
-      $Params{'CCFLAGS'} =~ s/ -W(all|inline|strict-prototypes|write-strings|cast-qual|no-char-subscripts)//g; # ignore developer warnings
23ac29
+      $Params{'CCFLAGS'} =~ s/ -W(inline|strict-prototypes|write-strings|cast-qual|no-char-subscripts)//g; # ignore developer warnings
23ac29
       $Params{'CCFLAGS'} .= ' -Wformat';
23ac29
       if ($Params{'LIBS'} eq "" || $Params{'CCFLAGS'} eq "") {
23ac29
 	die "You need to install net-snmp first (I can't find net-snmp-config)";
23ac29
diff -urNp a/perl/ASN/Makefile.PL b/perl/ASN/Makefile.PL
23ac29
--- a/perl/ASN/Makefile.PL	2018-07-18 13:43:12.171426287 +0200
23ac29
+++ b/perl/ASN/Makefile.PL	2018-07-18 13:53:46.652842822 +0200
23ac29
@@ -93,7 +93,7 @@ sub AsnInitMakeParams {
23ac29
             " " . $Params{'LIBS'};
23ac29
 	$Params{'CCFLAGS'} = "-I../../include " . $Params{'CCFLAGS'};
23ac29
       }
23ac29
-      $Params{'CCFLAGS'} =~ s/ -W(all|inline|strict-prototypes|write-strings|cast-qual|no-char-subscripts)//g; # ignore developer warnings
23ac29
+      $Params{'CCFLAGS'} =~ s/ -W(inline|strict-prototypes|write-strings|cast-qual|no-char-subscripts)//g; # ignore developer warnings
23ac29
       $Params{'CCFLAGS'} .= ' -Wformat';
23ac29
       if ($Params{'LIBS'} eq "" || $Params{'CCFLAGS'} eq "") {
23ac29
 	die "You need to install net-snmp first (I can't find net-snmp-config)";
23ac29
diff -urNp a/perl/default_store/Makefile.PL b/perl/default_store/Makefile.PL
23ac29
--- a/perl/default_store/Makefile.PL	2018-07-18 13:43:12.175426277 +0200
23ac29
+++ b/perl/default_store/Makefile.PL	2018-07-18 13:54:20.814758441 +0200
23ac29
@@ -83,7 +83,7 @@ sub DefaultStoreInitMakeParams {
23ac29
                 " " . $Params{'LIBS'};
23ac29
 	    $Params{'CCFLAGS'} = "-I../../include " . $Params{'CCFLAGS'};
23ac29
 	}
23ac29
-	$Params{'CCFLAGS'} =~ s/ -W(all|inline|strict-prototypes|write-strings|cast-qual|no-char-subscripts)//g; # ignore developer warnings
23ac29
+	$Params{'CCFLAGS'} =~ s/ -W(inline|strict-prototypes|write-strings|cast-qual|no-char-subscripts)//g; # ignore developer warnings
23ac29
         $Params{'CCFLAGS'} .= ' -Wformat';
23ac29
 	if ($Params{'LIBS'} eq "" || $Params{'CCFLAGS'} eq "") {
23ac29
 	    die "You need to install net-snmp first (I can't find net-snmp-config)";
23ac29
diff -urNp a/perl/OID/Makefile.PL b/perl/OID/Makefile.PL
23ac29
--- a/perl/OID/Makefile.PL	2018-07-18 13:43:12.175426277 +0200
23ac29
+++ b/perl/OID/Makefile.PL	2018-07-18 13:54:43.348702811 +0200
23ac29
@@ -90,7 +90,7 @@ sub OidInitMakeParams {
23ac29
 #	} else {
23ac29
 #	    $Params{'PREREQ_PM'} = {'SNMP' => '5.0'};
23ac29
 	}
23ac29
-	$Params{'CCFLAGS'} =~ s/ -W(all|inline|strict-prototypes|write-strings|cast-qual|no-char-subscripts)//g; # ignore developer warnings
23ac29
+	$Params{'CCFLAGS'} =~ s/ -W(inline|strict-prototypes|write-strings|cast-qual|no-char-subscripts)//g; # ignore developer warnings
23ac29
         $Params{'CCFLAGS'} .= ' -Wformat';
23ac29
 	if ($Params{'LIBS'} eq "" || $Params{'CCFLAGS'} eq "") {
23ac29
 	    die "You need to install net-snmp first (I can't find net-snmp-config)";
23ac29
diff -urNp a/perl/SNMP/Makefile.PL b/perl/SNMP/Makefile.PL
23ac29
--- a/perl/SNMP/Makefile.PL	2018-07-18 13:43:12.173426282 +0200
23ac29
+++ b/perl/SNMP/Makefile.PL	2018-07-18 13:55:07.220643903 +0200
23ac29
@@ -103,7 +103,7 @@ sub SnmpInitMakeParams {
23ac29
 #	} else {
23ac29
 #	    $Params{'PREREQ_PM'} = { 'NetSNMP::default_store' => 0.01 };
23ac29
 	}
23ac29
-	$Params{'CCFLAGS'} =~ s/ -W(all|inline|strict-prototypes|write-strings|cast-qual|no-char-subscripts)//g; # ignore developer warnings
23ac29
+	$Params{'CCFLAGS'} =~ s/ -W(inline|strict-prototypes|write-strings|cast-qual|no-char-subscripts)//g; # ignore developer warnings
23ac29
         $Params{'CCFLAGS'} .= ' -Wformat';
23ac29
 	if (!$ENV{'NETSNMP_PREFIX'}) {
23ac29
 	    $prefix            = `$opts->{'nsconfig'} --prefix`;
23ac29
diff -urNp a/perl/TrapReceiver/Makefile.PL b/perl/TrapReceiver/Makefile.PL
23ac29
--- a/perl/TrapReceiver/Makefile.PL	2018-07-18 13:43:12.172426285 +0200
23ac29
+++ b/perl/TrapReceiver/Makefile.PL	2018-07-18 13:55:43.100647233 +0200
23ac29
@@ -132,7 +132,7 @@ sub TrapReceiverInitMakeParams {
23ac29
             $Params{'LIBS'} = `$opts->{'nsconfig'} --libdir` . " $Params{'LIBS'}";
23ac29
         }
23ac29
 
23ac29
-	$Params{'CCFLAGS'} =~ s/ -W(all|inline|strict-prototypes|write-strings|cast-qual|no-char-subscripts)//g; # ignore developer warnings
23ac29
+	$Params{'CCFLAGS'} =~ s/ -W(inline|strict-prototypes|write-strings|cast-qual|no-char-subscripts)//g; # ignore developer warnings
23ac29
         $Params{'CCFLAGS'} .= ' -Wformat';
23ac29
 	if ($Params{'CCFLAGS'} eq "") {
23ac29
 	    die "You need to install net-snmp first (I can't find net-snmp-config)";