ports/180263: [patch] net-mgmt/dhcdrop: add USE_CSTD=gnu89 for clang
Tijl Coosemans
tijl at FreeBSD.org
Thu Jul 4 15:30:00 UTC 2013
>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 at 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:
More information about the freebsd-ports-bugs
mailing list