From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Jul 4 16:10:02 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id D1A8B9A3 for ; Thu, 4 Jul 2013 16:10:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 9B0D31F0E for ; Thu, 4 Jul 2013 16:10:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r64GA2Be091418 for ; Thu, 4 Jul 2013 16:10:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r64GA2xB091417; Thu, 4 Jul 2013 16:10:02 GMT (envelope-from gnats) Resent-Date: Thu, 4 Jul 2013 16:10:02 GMT Resent-Message-Id: <201307041610.r64GA2xB091417@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Tijl Coosemans Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 0053B915 for ; Thu, 4 Jul 2013 16:08:39 +0000 (UTC) (envelope-from tijl@coosemans.org) Received: from mailrelay006.isp.belgacom.be (mailrelay006.isp.belgacom.be [195.238.6.172]) by mx1.freebsd.org (Postfix) with ESMTP id 973D51EF1 for ; Thu, 4 Jul 2013 16:08:39 +0000 (UTC) Received: from 139.159-241-81.adsl-dyn.isp.belgacom.be (HELO kalimero.tijl.coosemans.org) ([81.241.159.139]) by relay.skynet.be with ESMTP; 04 Jul 2013 18:08:37 +0200 Received: from kalimero.tijl.coosemans.org (kalimero.tijl.coosemans.org [127.0.0.1]) by kalimero.tijl.coosemans.org (8.14.7/8.14.7) with ESMTP id r64G8VeH007489 for ; Thu, 4 Jul 2013 18:08:36 +0200 (CEST) (envelope-from tijl@kalimero.tijl.coosemans.org) Received: (from tijl@localhost) by kalimero.tijl.coosemans.org (8.14.7/8.14.7/Submit) id r64G8Vjs007488; Thu, 4 Jul 2013 18:08:31 +0200 (CEST) (envelope-from tijl) Message-Id: <201307041608.r64G8Vjs007488@kalimero.tijl.coosemans.org> Date: Thu, 4 Jul 2013 18:08:31 +0200 (CEST) From: Tijl Coosemans To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.114 Subject: ports/180269: [patch] sysutils/pftop: set CSTD=gnu89 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Tijl Coosemans List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Jul 2013 16:10:02 -0000 >Number: 180269 >Category: ports >Synopsis: [patch] sysutils/pftop: set CSTD=gnu89 >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 Jul 04 16:10:02 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Tijl Coosemans >Release: FreeBSD 10.0-CURRENT i386 >Organization: >Environment: >Description: Problems with inline and clang are because clang defaults to C99. Instead of patching the code just use C89. >How-To-Repeat: >Fix: --- pftop.patch begins here --- Index: sysutils/pftop/Makefile =================================================================== --- sysutils/pftop/Makefile (revision 322214) +++ sysutils/pftop/Makefile (working copy) @@ -34,6 +34,7 @@ CFLAGS+= -DHAVE_FINE_GRAINED_LOCKING=1 EXTRA_PATCHES+= ${FILESDIR}/extra-patch-engine.c +MAKE_ARGS+= CSTD=gnu89 MAKE_ENV+= __MAKE_CONF=/dev/null PLIST_FILES= sbin/pftop @@ -43,7 +44,6 @@ post-patch: ${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 ||g' \ ${WRKSRC}/sf-gencode.c --- pftop.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: