From nobody@FreeBSD.org  Wed Mar  5 01:15:23 2008
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 7B08C1065876
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  5 Mar 2008 01:15:23 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 67DEF8FC18
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  5 Mar 2008 01:15:23 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m251CNd1065910
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 5 Mar 2008 01:12:23 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.2/8.14.1/Submit) id m251CNB3065909;
	Wed, 5 Mar 2008 01:12:23 GMT
	(envelope-from nobody)
Message-Id: <200803050112.m251CNB3065909@www.freebsd.org>
Date: Wed, 5 Mar 2008 01:12:23 GMT
From: Christopher Cowart <ccowart@rescomp.berkeley.edu>
To: freebsd-gnats-submit@FreeBSD.org
Subject: net-mgmt/net-snmp4 broken on freebsd 7 [with patch]
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         121375
>Category:       ports
>Synopsis:       [patch] net-mgmt/net-snmp4 broken on freebsd 7
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    ehaupt
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Mar 05 01:20:01 UTC 2008
>Closed-Date:    Thu Mar 06 00:18:08 CET 2008
>Last-Modified:  Wed Mar  5 23:20:00 UTC 2008
>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@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:
Responsible-Changed-From-To: freebsd-ports-bugs->ehaupt 
Responsible-Changed-By: ehaupt 
Responsible-Changed-When: Wed Mar 5 23:06:54 CET 2008 
Responsible-Changed-Why:  
I will take care of it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=121375 
State-Changed-From-To: open->closed 
State-Changed-By: ehaupt 
State-Changed-When: Thu Mar 6 00:16:27 CET 2008 
State-Changed-Why:  
Committed with modifications, thanks! 

Modifications: 
pkg-plist and Makefile needed some adjustments in order to cleanup properly 
after uninstall. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=121375 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/121375: commit references a PR
Date: Wed,  5 Mar 2008 23:16:15 +0000 (UTC)

 ehaupt      2008-03-05 23:16:10 UTC
 
   FreeBSD ports repository
 
   Modified files:
     net-mgmt/net-snmp4   Makefile pkg-plist 
   Added files:
     net-mgmt/net-snmp4/files patch-scapi.c 
   Log:
   Unbreak on 7.0
   
   PR:             121375 (based on)
   Submitted by:   Christopher Cowart <ccowart@rescomp.berkeley.edu>
   
   Revision  Changes    Path
   1.107     +8 -5      ports/net-mgmt/net-snmp4/Makefile
   1.1       +10 -0     ports/net-mgmt/net-snmp4/files/patch-scapi.c (new)
   1.25      +3 -3      ports/net-mgmt/net-snmp4/pkg-plist
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
