ports/162847: [update] net-mgmt/net-snmp to 5.7.1

Ryan Steinmetz zi at FreeBSD.org
Thu Nov 24 18:30:12 UTC 2011


>Number:         162847
>Category:       ports
>Synopsis:       [update] net-mgmt/net-snmp to 5.7.1
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Nov 24 18:30:11 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Ryan Steinmetz
>Release:        8.2-RELEASE
>Organization:
Rochester Institute of Technology
>Environment:
>Description:
- Update to 5.7.1

5.7.1 includes many bugfixes from the initial 5.7 release and allows us to remove a handful of local patches.

ChangeLog: http://fossies.org/unix/misc/net-snmp-5.7.1.tar.gz:a/net-snmp-5.7.1/ChangeLog
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/net-mgmt/net-snmp/Makefile,v
retrieving revision 1.194
diff -u -r1.194 Makefile
--- Makefile	24 Nov 2011 13:11:23 -0000	1.194
+++ Makefile	24 Nov 2011 16:51:58 -0000
@@ -6,8 +6,7 @@
 #
 
 PORTNAME=	snmp
-PORTVERSION=	5.7
-PORTREVISION=	5
+PORTVERSION=	5.7.1
 CATEGORIES=	net-mgmt ipv6
 MASTER_SITES=	SF/net-${PORTNAME}/net-${PORTNAME}/${PORTVERSION}
 PKGNAMEPREFIX=	net-
Index: distinfo
===================================================================
RCS file: /home/ncvs/ports/net-mgmt/net-snmp/distinfo,v
retrieving revision 1.40
diff -u -r1.40 distinfo
--- distinfo	27 Jul 2011 20:18:34 -0000	1.40
+++ distinfo	24 Nov 2011 16:52:16 -0000
@@ -1,2 +1,2 @@
-SHA256 (net-snmp-5.7.tar.gz) = 700205b76e16ce87734978520d4b2d05142abdfeaf3c268a030a63c768e73c55
-SIZE (net-snmp-5.7.tar.gz) = 6039854
+SHA256 (net-snmp-5.7.1.tar.gz) = 7c71c9650c65b715356547e20ca2dbe6313944278af8cc19c32a5337f46b181f
+SIZE (net-snmp-5.7.1.tar.gz) = 6110619
Index: pkg-plist
===================================================================
RCS file: /home/ncvs/ports/net-mgmt/net-snmp/pkg-plist,v
retrieving revision 1.59
diff -u -r1.59 pkg-plist
--- pkg-plist	13 Aug 2011 23:43:55 -0000	1.59
+++ pkg-plist	24 Nov 2011 18:05:05 -0000
@@ -186,6 +186,8 @@
 include/net-snmp/system/mips.h
 include/net-snmp/system/netbsd.h
 include/net-snmp/system/openbsd.h
+include/net-snmp/system/openbsd4.h
+include/net-snmp/system/openbsd5.h
 include/net-snmp/system/osf5.h
 include/net-snmp/system/solaris.h
 include/net-snmp/system/solaris2.3.h
@@ -236,8 +238,6 @@
 %%WITH_PERL%%%%SITE_PERL%%/%%PERL_ARCH%%/NetSNMP/default_store.pm
 %%WITH_PERL%%%%SITE_PERL%%/%%PERL_ARCH%%/SNMP.pm
 %%WITH_PERL%%%%SITE_PERL%%/%%PERL_ARCH%%/auto/Bundle/NetSNMP/.packlist
-%%WITH_PERL%%%%SITE_PERL%%/%%PERL_ARCH%%/auto/Bundle/NetSNMP/NetSNMP.bs
-%%WITH_PERL%%%%SITE_PERL%%/%%PERL_ARCH%%/auto/Bundle/NetSNMP/NetSNMP.so
 %%WITH_PERL%%%%SITE_PERL%%/%%PERL_ARCH%%/auto/NetSNMP/ASN/ASN.bs
 %%WITH_PERL%%%%SITE_PERL%%/%%PERL_ARCH%%/auto/NetSNMP/ASN/ASN.so
 %%WITH_PERL%%%%SITE_PERL%%/%%PERL_ARCH%%/auto/NetSNMP/ASN/autosplit.ix
@@ -308,6 +308,7 @@
 %%DATADIR%%/mib2c-data/generic-get-decl.m2i
 %%DATADIR%%/mib2c-data/generic-get-long.m2i
 %%DATADIR%%/mib2c-data/generic-get-oid.m2i
+%%DATADIR%%/mib2c-data/generic-get-U64.m2i
 %%DATADIR%%/mib2c-data/generic-header-bottom.m2i
 %%DATADIR%%/mib2c-data/generic-header-top.m2i
 %%DATADIR%%/mib2c-data/generic-source-includes.m2i
Index: files/extra-patch-local:Makefile.in
===================================================================
RCS file: /home/ncvs/ports/net-mgmt/net-snmp/files/extra-patch-local:Makefile.in,v
retrieving revision 1.4
diff -u -r1.4 extra-patch-local:Makefile.in
--- files/extra-patch-local:Makefile.in	27 Jul 2011 20:18:35 -0000	1.4
+++ files/extra-patch-local:Makefile.in	24 Nov 2011 16:55:52 -0000
@@ -1,5 +1,5 @@
---- local/Makefile.in.orig	2011-07-27 08:56:11.000000000 -0300
-+++ local/Makefile.in	2011-07-27 08:56:22.000000000 -0300
+--- ./local/Makefile.in.orig	2011-11-24 11:55:41.000000000 -0500
++++ ./local/Makefile.in	2011-11-24 11:55:48.000000000 -0500
 @@ -16,7 +16,7 @@
  #
  SNMPCONFPATH=@SNMPCONFPATH@
Index: files/patch-Makefile.in
===================================================================
RCS file: files/patch-Makefile.in
diff -N files/patch-Makefile.in
--- files/patch-Makefile.in	27 Jul 2011 20:18:35 -0000	1.13
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,11 +0,0 @@
---- Makefile.in.orig	2011-07-01 19:35:46.000000000 -0300
-+++ Makefile.in	2011-07-27 09:02:01.000000000 -0300
-@@ -19,7 +19,7 @@
- INCLUDESUBDIR=system
- INCLUDESUBDIRHEADERS= aix.h bsd.h bsdi3.h bsdi4.h bsdi.h cygwin.h \
- 	darwin.h darwin7.h darwin8.h darwin9.h darwin10.h dragonfly.h dynix.h \
--	freebsd2.h freebsd3.h freebsd4.h freebsd5.h freebsd6.h freebsd.h \
-+	freebsd2.h freebsd3.h freebsd4.h freebsd5.h freebsd6.h freebsd7.h freebsd8.h freebsd9.h freebsd.h \
- 	generic.h \
- 	hpux.h irix.h linux.h mingw32.h mips.h netbsd.h openbsd.h osf5.h \
- 	solaris2.3.h solaris2.4.h solaris2.5.h solaris2.6.h \
Index: files/patch-agent-mibgroup-hardware-fsys-fsys_getfsstats.c
===================================================================
RCS file: /home/ncvs/ports/net-mgmt/net-snmp/files/patch-agent-mibgroup-hardware-fsys-fsys_getfsstats.c,v
retrieving revision 1.2
diff -u -r1.2 patch-agent-mibgroup-hardware-fsys-fsys_getfsstats.c
--- files/patch-agent-mibgroup-hardware-fsys-fsys_getfsstats.c	1 Nov 2011 22:31:03 -0000	1.2
+++ files/patch-agent-mibgroup-hardware-fsys-fsys_getfsstats.c	24 Nov 2011 17:01:26 -0000
@@ -1,6 +1,6 @@
---- agent/mibgroup/hardware/fsys/fsys_getfsstats.c.orig	2011-07-02 00:35:46.000000000 +0200
-+++ agent/mibgroup/hardware/fsys/fsys_getfsstats.c	2011-10-27 17:32:32.000000000 +0200
-@@ -150,13 +150,13 @@
+--- ./agent/mibgroup/hardware/fsys/fsys_getfsstats.c.orig	2011-11-24 12:01:07.000000000 -0500
++++ ./agent/mibgroup/hardware/fsys/fsys_getfsstats.c	2011-11-24 12:01:20.000000000 -0500
+@@ -150,9 +150,9 @@
          if (!entry)
              continue;
  
@@ -12,14 +12,3 @@
          entry->device[sizeof(entry->device)-1] = '\0';
          entry->units = stats[i].f_bsize;    /* or f_frsize */
          entry->size  = stats[i].f_blocks;
--        entry->used  = stats[i].f_bfree;
-+        entry->used  = stats[i].f_blocks - stats[i].f_bfree;
-         entry->avail = stats[i].f_bavail;
-         entry->inums_total = stats[i].f_files;
-         entry->inums_avail = stats[i].f_ffree;
-@@ -175,4 +175,5 @@
-         }
-         netsnmp_fsys_calculate32(entry);
-     }
-+    free(stats);
- }
Index: files/patch-agent-mibgroup-ucd-snmp_disk_hw.c
===================================================================
RCS file: files/patch-agent-mibgroup-ucd-snmp_disk_hw.c
diff -N files/patch-agent-mibgroup-ucd-snmp_disk_hw.c
--- files/patch-agent-mibgroup-ucd-snmp_disk_hw.c	1 Nov 2011 22:31:03 -0000	1.2
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,13 +0,0 @@
---- agent/mibgroup/ucd-snmp/disk_hw.c.orig	2011-07-02 00:35:46.000000000 +0200
-+++ agent/mibgroup/ucd-snmp/disk_hw.c	2011-10-06 19:17:46.000000000 +0200
-@@ -245,7 +245,9 @@
- 
- 
- static int _percent( int value, int total ) {
--    return (int)( value * 100 ) / total;
-+    if (!total)
-+	return 100;
-+    return (int)(( (int64_t) value * 100 ) / total);
- }
- 
- static netsnmp_fsys_info **
Index: files/patch-agent__mibgroup__mibII__tcp.c
===================================================================
RCS file: files/patch-agent__mibgroup__mibII__tcp.c
diff -N files/patch-agent__mibgroup__mibII__tcp.c
--- files/patch-agent__mibgroup__mibII__tcp.c	24 Nov 2011 13:06:52 -0000	1.1
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,20 +0,0 @@
---- ./agent/mibgroup/mibII/tcp.c.orig	2011-11-24 07:57:25.000000000 -0500
-+++ ./agent/mibgroup/mibII/tcp.c	2011-11-24 07:57:51.000000000 -0500
-@@ -92,7 +92,7 @@
- int  hz = 1000;
- #endif
- 
--#ifdef NETSNMP_FEATURE_REMOVE_TCP_COUNT_CONNECTIONS
-+#ifndef NETSNMP_FEATURE_REMOVE_TCP_COUNT_CONNECTIONS
- extern int TCP_Count_Connections( void );
- #endif /* NETSNMP_FEATURE_REMOVE_TCP_COUNT_CONNECTIONS */
-         /*********************
-@@ -373,7 +373,7 @@
- #ifdef NETSNMP_FEATURE_CHECKING
-         netsnmp_feature_want(tcp_count_connections)
- #endif
--#ifdef NETSNMP_FEATURE_HAS_TCP_COUNT_CONNECTIONS
-+#ifndef NETSNMP_FEATURE_REMOVE_TCP_COUNT_CONNECTIONS
-         ret_value = TCP_Count_Connections();
- #else /*  NETSNMP_FEATURE_HAS_TCP_COUNT_CONNECTIONS */
-         ret_value = 0;
Index: files/patch-agent_read_config.c
===================================================================
RCS file: files/patch-agent_read_config.c
diff -N files/patch-agent_read_config.c
--- files/patch-agent_read_config.c	28 Jul 2011 12:41:50 -0000	1.3
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,14 +0,0 @@
---- ./agent/agent_read_config.c.orig	2011-07-07 15:30:36.000000000 -0700
-+++ agent/agent_read_config.c	2011-07-07 15:35:57.000000000 -0700
-@@ -5,7 +5,11 @@
- #include <net-snmp/net-snmp-config.h>
- #include <net-snmp/net-snmp-features.h>
- 
-+#if HAVE_SYS_PARAM_H
-+#include <sys/param.h>
-+#else
- #include <sys/types.h>
-+#endif
- #if HAVE_STDLIB_H
- #include <stdlib.h>
- #endif
Index: files/patch-parse.c
===================================================================
RCS file: files/patch-parse.c
diff -N files/patch-parse.c
--- files/patch-parse.c	28 Jul 2011 12:41:50 -0000	1.3
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,169 +0,0 @@
---- snmplib/parse.c
-+++ snmplib/parse.c
-@@ -3902,8 +3902,13 @@ read_module_internal(const char *name)
-                 return MODULE_ALREADY_LOADED;
-             }
-             if ((fp = fopen(mp->file, "r")) == NULL) {
-+                int rval;
-+                if (errno == ENOTDIR || errno == ENOENT)
-+                    rval = MODULE_NOT_FOUND;
-+                else
-+                    rval = MODULE_LOAD_FAILED;
-                 snmp_log_perror(mp->file);
--                return MODULE_LOAD_FAILED;
-+                return rval;
-             }
-             mp->no_imports = 0; /* Note that we've read the file */
-             File = mp->file;
-@@ -3917,10 +3922,7 @@ read_module_internal(const char *name)
-             File = oldFile;
-             mibLine = oldLine;
-             current_module = oldModule;
--            if (np != NULL)
--                return MODULE_LOADED_OK;
--            else if (gMibError == MODULE_SYNTAX_ERROR) 
--                return MODULE_SYNTAX_ERROR;
-+            return gMibError ? gMibError : MODULE_LOADED_OK;
-         }
- 
-     return MODULE_NOT_FOUND;
-@@ -4339,6 +4341,7 @@ parse(FILE * fp, struct node *root)
-         case END:
-             if (state != IN_MIB) {
-                 print_error("Error, END before start of MIB", NULL, type);
-+                gMibError = MODULE_SYNTAX_ERROR;
-                 return NULL;
-             } else {
-                 struct module  *mp;
-@@ -4403,6 +4406,7 @@ parse(FILE * fp, struct node *root)
-                 nnp = parse_macro(fp, name);
-                 if (nnp == NULL) {
-                     print_error("Bad parse of MACRO", NULL, type);
-+                    gMibError = MODULE_SYNTAX_ERROR;
-                     /*
-                      * return NULL;
-                      */
-@@ -4427,6 +4431,7 @@ parse(FILE * fp, struct node *root)
-                 type = get_token(fp, token, MAXTOKEN);
-             if (type == ENDOFFILE) {
-                 print_error("Expected \"}\"", token, type);
-+                gMibError = MODULE_SYNTAX_ERROR;
-                 return NULL;
-             }
-             type = get_token(fp, token, MAXTOKEN);
-@@ -4436,6 +4441,7 @@ parse(FILE * fp, struct node *root)
-         case DEFINITIONS:
-             if (state != BETWEEN_MIBS) {
-                 print_error("Error, nested MIBS", NULL, type);
-+                gMibError = MODULE_SYNTAX_ERROR;
-                 return NULL;
-             }
-             state = IN_MIB;
-@@ -4460,6 +4466,7 @@ parse(FILE * fp, struct node *root)
-             nnp = parse_objecttype(fp, name);
-             if (nnp == NULL) {
-                 print_error("Bad parse of OBJECT-TYPE", NULL, type);
-+                gMibError = MODULE_SYNTAX_ERROR;
-                 return NULL;
-             }
-             break;
-@@ -4467,6 +4474,7 @@ parse(FILE * fp, struct node *root)
-             nnp = parse_objectgroup(fp, name, OBJECTS, &objects);
-             if (nnp == NULL) {
-                 print_error("Bad parse of OBJECT-GROUP", NULL, type);
-+                gMibError = MODULE_SYNTAX_ERROR;
-                 return NULL;
-             }
-             break;
-@@ -4474,6 +4482,7 @@ parse(FILE * fp, struct node *root)
-             nnp = parse_objectgroup(fp, name, NOTIFICATIONS, &notifs);
-             if (nnp == NULL) {
-                 print_error("Bad parse of NOTIFICATION-GROUP", NULL, type);
-+                gMibError = MODULE_SYNTAX_ERROR;
-                 return NULL;
-             }
-             break;
-@@ -4481,6 +4490,7 @@ parse(FILE * fp, struct node *root)
-             nnp = parse_trapDefinition(fp, name);
-             if (nnp == NULL) {
-                 print_error("Bad parse of TRAP-TYPE", NULL, type);
-+                gMibError = MODULE_SYNTAX_ERROR;
-                 return NULL;
-             }
-             break;
-@@ -4488,6 +4498,7 @@ parse(FILE * fp, struct node *root)
-             nnp = parse_notificationDefinition(fp, name);
-             if (nnp == NULL) {
-                 print_error("Bad parse of NOTIFICATION-TYPE", NULL, type);
-+                gMibError = MODULE_SYNTAX_ERROR;
-                 return NULL;
-             }
-             break;
-@@ -4495,6 +4506,7 @@ parse(FILE * fp, struct node *root)
-             nnp = parse_compliance(fp, name);
-             if (nnp == NULL) {
-                 print_error("Bad parse of MODULE-COMPLIANCE", NULL, type);
-+                gMibError = MODULE_SYNTAX_ERROR;
-                 return NULL;
-             }
-             break;
-@@ -4502,6 +4514,7 @@ parse(FILE * fp, struct node *root)
-             nnp = parse_capabilities(fp, name);
-             if (nnp == NULL) {
-                 print_error("Bad parse of AGENT-CAPABILITIES", NULL, type);
-+                gMibError = MODULE_SYNTAX_ERROR;
-                 return NULL;
-             }
-             break;
-@@ -4509,6 +4522,7 @@ parse(FILE * fp, struct node *root)
-             nnp = parse_macro(fp, name);
-             if (nnp == NULL) {
-                 print_error("Bad parse of MACRO", NULL, type);
-+                gMibError = MODULE_SYNTAX_ERROR;
-                 /*
-                  * return NULL;
-                  */
-@@ -4520,6 +4534,7 @@ parse(FILE * fp, struct node *root)
-             nnp = parse_moduleIdentity(fp, name);
-             if (nnp == NULL) {
-                 print_error("Bad parse of MODULE-IDENTITY", NULL, type);
-+                gMibError = MODULE_SYNTAX_ERROR;
-                 return NULL;
-             }
-             break;
-@@ -4527,6 +4542,7 @@ parse(FILE * fp, struct node *root)
-             nnp = parse_objectgroup(fp, name, OBJECTS, &objects);
-             if (nnp == NULL) {
-                 print_error("Bad parse of OBJECT-IDENTITY", NULL, type);
-+                gMibError = MODULE_SYNTAX_ERROR;
-                 return NULL;
-             }
-             break;
-@@ -4534,16 +4550,19 @@ parse(FILE * fp, struct node *root)
-             type = get_token(fp, token, MAXTOKEN);
-             if (type != IDENTIFIER) {
-                 print_error("Expected IDENTIFIER", token, type);
-+                gMibError = MODULE_SYNTAX_ERROR;
-                 return NULL;
-             }
-             type = get_token(fp, token, MAXTOKEN);
-             if (type != EQUALS) {
-                 print_error("Expected \"::=\"", token, type);
-+                gMibError = MODULE_SYNTAX_ERROR;
-                 return NULL;
-             }
-             nnp = parse_objectid(fp, name);
-             if (nnp == NULL) {
-                 print_error("Bad parse of OBJECT IDENTIFIER", NULL, type);
-+                gMibError = MODULE_SYNTAX_ERROR;
-                 return NULL;
-             }
-             break;
-@@ -4555,6 +4574,7 @@ parse(FILE * fp, struct node *root)
-             break;
-         default:
-             print_error("Bad operator", token, type);
-+            gMibError = MODULE_SYNTAX_ERROR;
-             return NULL;
-         }
-         if (nnp) {
Index: files/patch-snmp_vars.c
===================================================================
RCS file: files/patch-snmp_vars.c
diff -N files/patch-snmp_vars.c
--- files/patch-snmp_vars.c	28 Jul 2011 12:41:50 -0000	1.3
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,12 +0,0 @@
---- ./agent/snmp_vars.c.orig	2011-07-07 15:37:08.000000000 -0700
-+++ agent/snmp_vars.c	2011-07-07 15:37:14.000000000 -0700
-@@ -62,6 +62,9 @@
-  */
- 
- #include <net-snmp/net-snmp-config.h>
-+#if HAVE_SYS_PARAM_H
-+#include <sys/param.h>
-+#endif
- #if HAVE_STRING_H
- #include <string.h>
- #endif


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list