ports/121375: net-mgmt/net-snmp4 broken on freebsd 7 [with patch]
Christopher Cowart
ccowart at rescomp.berkeley.edu
Wed Mar 5 01:20:01 UTC 2008
>Number: 121375
>Category: ports
>Synopsis: net-mgmt/net-snmp4 broken on freebsd 7 [with patch]
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Wed Mar 05 01:20:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator: Christopher Cowart
>Release: 7.0
>Organization:
RSSP-IT
>Environment:
FreeBSD dev-wifi-aux-2.rescomp.berkeley.edu 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Tue Mar 4 04:49:44 PST 2008 root at dev-wifi-aux-2.rescomp.berkeley.edu:/usr/obj/usr/src/sys/AUX_DEV i386
>Description:
When installing the port, it refuses, because BROKEN=YES for 7.0-REL.
>How-To-Repeat:
make -C /usr/ports/net-mgmt/net-snmp4 install
>Fix:
Attached. Had to patch the sources to include the openssl/des.h header.
Patch attached with submission follows:
diff -Nrub net-snmp4/Makefile /tmp/ccowart/net-snmp4/Makefile
--- net-snmp4/Makefile 2007-07-27 04:59:28.000000000 -0700
+++ /tmp/ccowart/net-snmp4/Makefile 2008-03-04 17:04:12.000000000 -0800
@@ -7,7 +7,7 @@
PORTNAME= ucd-snmp
PORTVERSION= 4.2.6
-PORTREVISION= 7
+PORTREVISION= 8
CATEGORIES= net-mgmt ipv6
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= net-snmp
@@ -101,10 +101,6 @@
.include <bsd.port.pre.mk>
-.if ${OSVERSION} >= 700019
-BROKEN= Does not compile on FreeBSD >= 7.0
-.endif
-
.if ${OSVERSION} >= 600000
CFLAGS+= -Dfreebsd5
.endif
diff -Nrub net-snmp4/files/patch-scapi.c /tmp/ccowart/net-snmp4/files/patch-scapi.c
--- net-snmp4/files/patch-scapi.c 1969-12-31 16:00:00.000000000 -0800
+++ /tmp/ccowart/net-snmp4/files/patch-scapi.c 2008-03-04 16:57:17.000000000 -0800
@@ -0,0 +1,10 @@
+--- ../../work/ucd-snmp-4.2.6/snmplib/scapi.c 2001-10-01 02:52:49.000000000 -0700
++++ snmplib/scapi.c 2008-03-04 16:41:52.000000000 -0800
+@@ -56,6 +56,7 @@
+ #include <openssl/hmac.h>
+ #include <openssl/evp.h>
+ #include <openssl/rand.h>
++#include <openssl/des.h>
+ #endif
+
+ #ifdef QUITFUN
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list