ports/80374: net-mgmt/net-snmp4: unbreak build on FreeBSD >= 6.x
Johan van Selst
johans at stack.nl
Tue Apr 26 19:50:07 UTC 2005
>Number: 80374
>Category: ports
>Synopsis: net-mgmt/net-snmp4: unbreak build on FreeBSD >= 6.x
>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: Tue Apr 26 19:50:06 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: Johan van Selst
>Release: FreeBSD 5.4-STABLE i386
>Organization:
>Environment:
System: FreeBSD mud.stack.nl 5.4-STABLE FreeBSD 5.4-STABLE #1: Fri Apr 15 14:21:39 CEST 2005 johans at mud.stack.nl:/usr/obj/usr/src/sys/mud i386
>Description:
Building is the same as on FreeBSD 5.x
Fix: make sure the source knows this still works the same
>How-To-Repeat:
>Fix:
The code checks on several places for defines like 'freebsd4'
and 'freebsd5'. Since compiling for 6.x works the same as 5.x,
just define 'freebsd5' during the compilation as well.
diff -uNr net-snmp4/Makefile net-snmp4/Makefile
--- net-snmp4/Makefile Tue Apr 26 19:33:02 2005
+++ net-snmp4/Makefile Tue Apr 26 19:40:20 2005
@@ -79,7 +79,7 @@
.include <bsd.port.pre.mk>
.if ${OSVERSION} >= 600000
-BROKEN= "Does not build on FreeBSD >= 6.x"
+CFLAGS+= -Dfreebsd5
.endif
.if ${OSVERSION} >= 400014
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list