wok-next rev 19722

Up net-snmp (5.7.3)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed May 24 18:42:05 2017 +0200 (2017-05-24)
parents 9d88fcaa58be
children 8349c568aa66
files net-snmp/receipt net-snmp/stuff/Fix-Perl-module-compilation.patch
line diff
     1.1 --- a/net-snmp/receipt	Wed May 24 17:53:32 2017 +0200
     1.2 +++ b/net-snmp/receipt	Wed May 24 18:42:05 2017 +0200
     1.3 @@ -1,7 +1,7 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="net-snmp"
     1.7 -VERSION="5.6.1"
     1.8 +VERSION="5.7.3"
     1.9  CATEGORY="network"
    1.10  SHORT_DESC="snmp tools"
    1.11  MAINTAINER="allan316@gmail.com"
    1.12 @@ -17,7 +17,8 @@
    1.13  # Rules to configure and make the package.
    1.14  compile_rules()
    1.15  {
    1.16 -	cd $src
    1.17 +	# Apply a fix from Debian
    1.18 +	patch -p1 < $stuff/Fix-Perl-module-compilation.patch
    1.19  	./configure \
    1.20  		--prefix=/usr \
    1.21  		--with-default-snmp-version="1" \
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/net-snmp/stuff/Fix-Perl-module-compilation.patch	Wed May 24 18:42:05 2017 +0200
     2.3 @@ -0,0 +1,182 @@
     2.4 +From 4e793461e96a2b4fd81142ab312d074d5c8841fa Mon Sep 17 00:00:00 2001
     2.5 +From: Bart Van Assche <bvanassche@acm.org>
     2.6 +Date: Sat, 23 Jul 2016 18:41:10 -0700
     2.7 +Subject: [PATCH] CHANGES: BUG: 2712: Fix Perl module compilation
     2.8 +
     2.9 +Avoid that building the Net-SNMP Perl modules fails as follows:
    2.10 +
    2.11 +ERROR from evaluation of /sources/net-snmp-5.7.3/perl/ASN/Makefile.PL: Bizarre \ copy of HASH in list assignment at /usr/lib/perl5/site_perl/5.24.0/Carp.pm line\ 229.
    2.12 +
    2.13 +See also https://sourceforge.net/p/net-snmp/bugs/2712/.
    2.14 +---
    2.15 + perl/ASN/Makefile.PL                 | 4 +---
    2.16 + perl/Makefile.PL                     | 4 +---
    2.17 + perl/OID/Makefile.PL                 | 5 +----
    2.18 + perl/SNMP/Makefile.PL                | 5 +----
    2.19 + perl/TrapReceiver/Makefile.PL        | 5 +----
    2.20 + perl/agent/Makefile.PL               | 5 +----
    2.21 + perl/agent/Support/Makefile.PL       | 5 +----
    2.22 + perl/agent/default_store/Makefile.PL | 5 +----
    2.23 + perl/default_store/Makefile.PL       | 6 +-----
    2.24 + 9 files changed, 9 insertions(+), 35 deletions(-)
    2.25 +
    2.26 +diff --git a/perl/ASN/Makefile.PL b/perl/ASN/Makefile.PL
    2.27 +index f895a41..0e52b3a 100644
    2.28 +--- a/perl/ASN/Makefile.PL
    2.29 ++++ b/perl/ASN/Makefile.PL
    2.30 +@@ -7,9 +7,7 @@ my $lib_version;
    2.31 + # See lib/ExtUtils/MakeMaker.pm for details of how to influence
    2.32 + # the contents of the Makefile that is written.
    2.33 + 
    2.34 +-%MakeParams = InitMakeParams();
    2.35 +-
    2.36 +-WriteMakefile(%MakeParams);
    2.37 ++WriteMakefile(InitMakeParams());
    2.38 + 
    2.39 + Check_Version();
    2.40 + 
    2.41 +diff --git a/perl/Makefile.PL b/perl/Makefile.PL
    2.42 +index f70f991..ac36c15 100644
    2.43 +--- a/perl/Makefile.PL
    2.44 ++++ b/perl/Makefile.PL
    2.45 +@@ -3,9 +3,7 @@ use Config;
    2.46 + use Getopt::Long;
    2.47 + require 5;
    2.48 + 
    2.49 +-%MakeParams = InitMakeParams();
    2.50 +-
    2.51 +-WriteMakefile(%MakeParams);
    2.52 ++WriteMakefile(InitMakeParams());
    2.53 + 
    2.54 + sub InitMakeParams {
    2.55 +     $nsconfig="net-snmp-config"; # in path by default
    2.56 +diff --git a/perl/OID/Makefile.PL b/perl/OID/Makefile.PL
    2.57 +index 5d94338..676c439 100644
    2.58 +--- a/perl/OID/Makefile.PL
    2.59 ++++ b/perl/OID/Makefile.PL
    2.60 +@@ -6,11 +6,8 @@ require 5;
    2.61 + use Config;
    2.62 + use Getopt::Long;
    2.63 + my $lib_version;
    2.64 +-my %MakeParams = ();
    2.65 + 
    2.66 +-%MakeParams = InitMakeParams();
    2.67 +-
    2.68 +-WriteMakefile(%MakeParams);
    2.69 ++WriteMakefile(InitMakeParams());
    2.70 + 
    2.71 + Check_Version();
    2.72 + 
    2.73 +diff --git a/perl/SNMP/Makefile.PL b/perl/SNMP/Makefile.PL
    2.74 +index 928cb67..d7b5a2a 100644
    2.75 +--- a/perl/SNMP/Makefile.PL
    2.76 ++++ b/perl/SNMP/Makefile.PL
    2.77 +@@ -3,15 +3,12 @@ require 5;
    2.78 + use Config;
    2.79 + use Getopt::Long;
    2.80 + my $lib_version;
    2.81 +-my %MakeParams = ();
    2.82 + my $opts;
    2.83 + 
    2.84 + # See lib/ExtUtils/MakeMaker.pm for details of how to influence
    2.85 + # the contents of the Makefile that is written.
    2.86 + 
    2.87 +-%MakeParams = InitMakeParams();
    2.88 +-
    2.89 +-WriteMakefile(%MakeParams);
    2.90 ++WriteMakefile(InitMakeParams());
    2.91 + 
    2.92 + Check_Version();
    2.93 + 
    2.94 +diff --git a/perl/TrapReceiver/Makefile.PL b/perl/TrapReceiver/Makefile.PL
    2.95 +index 5c9463a..0af6aaf 100644
    2.96 +--- a/perl/TrapReceiver/Makefile.PL
    2.97 ++++ b/perl/TrapReceiver/Makefile.PL
    2.98 +@@ -3,11 +3,8 @@ require 5;
    2.99 + use Config;
   2.100 + use Getopt::Long;
   2.101 + my $lib_version;
   2.102 +-my %MakeParams = ();
   2.103 + 
   2.104 +-%MakeParams = InitMakeParams();
   2.105 +-
   2.106 +-WriteMakefile(%MakeParams);
   2.107 ++WriteMakefile(InitMakeParams());
   2.108 + 
   2.109 + Check_Version();
   2.110 + 
   2.111 +diff --git a/perl/agent/Makefile.PL b/perl/agent/Makefile.PL
   2.112 +index b4b358a..fe105ea 100644
   2.113 +--- a/perl/agent/Makefile.PL
   2.114 ++++ b/perl/agent/Makefile.PL
   2.115 +@@ -3,11 +3,8 @@ require 5;
   2.116 + use Config;
   2.117 + use Getopt::Long;
   2.118 + my $lib_version;
   2.119 +-my %MakeParams = ();
   2.120 + 
   2.121 +-%MakeParams = InitMakeParams();
   2.122 +-
   2.123 +-WriteMakefile(%MakeParams);
   2.124 ++WriteMakefile(InitMakeParams());
   2.125 + 
   2.126 + Check_Version();
   2.127 + 
   2.128 +diff --git a/perl/agent/Support/Makefile.PL b/perl/agent/Support/Makefile.PL
   2.129 +index 3a4f200..0dcb3f6 100644
   2.130 +--- a/perl/agent/Support/Makefile.PL
   2.131 ++++ b/perl/agent/Support/Makefile.PL
   2.132 +@@ -3,14 +3,11 @@ require 5;
   2.133 + use Config;
   2.134 + use Getopt::Long;
   2.135 + my $lib_version;
   2.136 +-my %MakeParams = ();
   2.137 + 
   2.138 + # See lib/ExtUtils/MakeMaker.pm for details of how to influence
   2.139 + # the contents of the Makefile that is written.
   2.140 + 
   2.141 +-%MakeParams = InitMakeParams();
   2.142 +-
   2.143 +-WriteMakefile(%MakeParams);
   2.144 ++WriteMakefile(InitMakeParams());
   2.145 + 
   2.146 + Check_Version();
   2.147 + 
   2.148 +diff --git a/perl/agent/default_store/Makefile.PL b/perl/agent/default_store/Makefile.PL
   2.149 +index 67d5ff0..5c6a5d6 100644
   2.150 +--- a/perl/agent/default_store/Makefile.PL
   2.151 ++++ b/perl/agent/default_store/Makefile.PL
   2.152 +@@ -3,11 +3,8 @@ require 5;
   2.153 + use Config;
   2.154 + use Getopt::Long;
   2.155 + my $lib_version;
   2.156 +-my %MakeParams = ();
   2.157 + 
   2.158 +-%MakeParams = InitMakeParams();
   2.159 +-
   2.160 +-WriteMakefile(%MakeParams);
   2.161 ++WriteMakefile(InitMakeParams());
   2.162 + 
   2.163 + Check_Version();
   2.164 + 
   2.165 +diff --git a/perl/default_store/Makefile.PL b/perl/default_store/Makefile.PL
   2.166 +index 54996ab..221d4ed 100644
   2.167 +--- a/perl/default_store/Makefile.PL
   2.168 ++++ b/perl/default_store/Makefile.PL
   2.169 +@@ -3,12 +3,8 @@ require 5;
   2.170 + use Config;
   2.171 + use Getopt::Long;
   2.172 + my $lib_version;
   2.173 +-my %MakeParams = ();
   2.174 +-
   2.175 +-%MakeParams = InitMakeParams();
   2.176 +-
   2.177 +-WriteMakefile(%MakeParams);
   2.178 + 
   2.179 ++WriteMakefile(InitMakeParams());
   2.180 + 
   2.181 + sub InitMakeParams {
   2.182 +     my $opts;
   2.183 +-- 
   2.184 +2.9.3
   2.185 +