Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 Jul 2013 17:27:26 +0200 (CEST)
From:      Tijl Coosemans <tijl@FreeBSD.org>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/180263: [patch] net-mgmt/dhcdrop: add USE_CSTD=gnu89 for clang
Message-ID:  <201307041527.r64FRQ50007046@kalimero.tijl.coosemans.org>
Resent-Message-ID: <201307041530.r64FU0k9083945@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         180263
>Category:       ports
>Synopsis:       [patch] net-mgmt/dhcdrop: add USE_CSTD=gnu89 for clang
>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 15:30:00 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.
By adding USE_CSTD=gnu89 the post-patch target can be removed.
>How-To-Repeat:
>Fix:

--- dhcdrop.patch begins here ---
Index: net-mgmt/dhcdrop/Makefile
===================================================================
--- net-mgmt/dhcdrop/Makefile	(revision 322214)
+++ net-mgmt/dhcdrop/Makefile	(working copy)
@@ -10,6 +10,7 @@ MAINTAINER=	ffault@gmail.com
 COMMENT=	Tool for searching and suppressing false DHCP servers
 
 USE_BZIP2=	yes
+USE_CSTD=	gnu89
 GNU_CONFIGURE=	yes
 
 MAN8=		${PORTNAME}.8
@@ -26,9 +27,4 @@ STATIC_DESC=	Build a static version of d
 CONFIGURE_ARGS+=--enable-static-build
 .endif
 
-post-patch:
-	@${REINPLACE_CMD} -e \
-		's,inline void rand_ether_addr,static void rand_ether_addr,' \
-			${WRKSRC}/src/dhcdrop.[c,h]
-
 .include <bsd.port.mk>
--- dhcdrop.patch ends here ---

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201307041527.r64FRQ50007046>