ports/155938: Unbreak sysutils/pftop on 9.X

Fabian Keil fk at fabiankeil.de
Fri Mar 25 23:00:25 UTC 2011


>Number:         155938
>Category:       ports
>Synopsis:       Unbreak sysutils/pftop on 9.X
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Mar 25 23:00:24 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Fabian Keil
>Release:        9.0-CURRENT
>Organization:
>Environment:
FreeBSD r500.local 9.0-CURRENT FreeBSD 9.0-CURRENT #279 r+e9d52e4: Thu Mar 24 23:01:13 CET 2011     fk at r500.local:/usr/obj/usr/src/sys/ZOEY  amd64

>Description:
sysutils/pftop has recently been marked as broken for 9.X,
the attached patch unbreaks it again.

I only tested it on 9.0-CURRENT amd64, but I expect it to
continue working on other versions, too.
>How-To-Repeat:
Try to build the port on 9.0-CURRENT.
>Fix:


Patch attached with submission follows:

--- .zfs/snapshot/2011-03-25/sysutils/pftop/Makefile	2011-03-25 21:55:02.000000000 +0100
+++ sysutils/pftop/Makefile	2011-03-25 23:43:18.686796644 +0100
@@ -29,7 +29,7 @@
 .endif
 
 .if ${OSVERSION} >= 900000
-BROKEN=		does not compile on 9.X
+CFLAGS+=	-DHAVE_SNPRINTF=1 -DHAVE_VSNPRINTF=1
 .endif
 
 MAKE_ENV+=	__MAKE_CONF=/dev/null
@@ -41,6 +41,7 @@
 	    ${WRKSRC}/engine.c
 	@${REINPLACE_CMD} -e 's|__dead|__dead2|g' ${WRKSRC}/sf-gencode.h
 	@${REINPLACE_CMD} -e 's|__dead|__dead2|g' ${WRKSRC}/sf-gencode.c
+	@${REINPLACE_CMD} -e 's|__inline__|static __inline__|g' ${WRKSRC}/pftop.c
 	@${REINPLACE_CMD} -e 's|#include <net/if_pflog.h>||g' \
 	    ${WRKSRC}/sf-gencode.c
 


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



More information about the freebsd-ports-bugs mailing list