Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Nov 2013 15:23:56 GMT
From:      Steve Wills <swills@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/184146: [PATCH] net-mgmt/net-snmp: fix build on 11-CURRENT
Message-ID:  <201311211523.rALFNuj8096189@meatwad.mouf.net>
Resent-Message-ID: <201311211600.rALG00ql006809@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         184146
>Category:       ports
>Synopsis:       [PATCH] net-mgmt/net-snmp: fix build on 11-CURRENT
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Nov 21 16:00:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Steve Wills
>Release:        FreeBSD 11.0-CURRENT amd64
>Organization:
>Environment:
System: FreeBSD meatwad.mouf.net 11.0-CURRENT FreeBSD 11.0-CURRENT #1 r257562M: Sun Nov  3 02:13:41
>Description:
- Fix build on 11-CURRENT

Port maintainer (zi@FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.99_8 (mode: change, diff: SVN)
>How-To-Repeat:
>Fix:

--- net-snmp-5.7.2_3.patch begins here ---
Index: Makefile
===================================================================
--- Makefile	(revision 334495)
+++ Makefile	(working copy)
@@ -150,6 +150,10 @@
 NET_SNMP_PERSISTENTDIR?=/var/net-snmp
 NET_SNMP_WITH_MIB_MODULE_LIST+=	host disman/event-mib mibII/mta_sendmail mibII/tcpTable ucd-snmp/diskio
 
+.if ( ${OSVERSION} >= 1100001 )
+CFLAGS+=	-D_WANT_IFADDR
+.endif
+
 .if ${OSVERSION} >= 700028
 NET_SNMP_WITH_MIB_MODULE_LIST+=	sctp-mib
 .endif
Index: files/patch-freebsd11.h
===================================================================
--- files/patch-freebsd11.h	(revision 0)
+++ files/patch-freebsd11.h	(working copy)
@@ -0,0 +1,6 @@
+--- include/net-snmp/system/freebsd11.h.orig	2013-11-20 14:36:43.000000000 +0000
++++ include/net-snmp/system/freebsd11.h	2013-11-20 14:37:22.000000000 +0000
+@@ -0,0 +1,3 @@
++/* freebsd9 is a superset of freebsd11 */
++#include "freebsd9.h"
++#define freebsd11 freebsd11

Property changes on: files/patch-freebsd11.h
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: fbsd:nokeywords
## -0,0 +1 ##
+yes
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
--- net-snmp-5.7.2_3.patch ends here ---

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201311211523.rALFNuj8096189>