From owner-svn-ports-all@FreeBSD.ORG Sat Jul 5 23:55:32 2014 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B4626F67; Sat, 5 Jul 2014 23:55:32 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 881E82B4C; Sat, 5 Jul 2014 23:55:32 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s65NtW3s051864; Sat, 5 Jul 2014 23:55:32 GMT (envelope-from adamw@svn.freebsd.org) Received: (from adamw@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s65NtWTl051862; Sat, 5 Jul 2014 23:55:32 GMT (envelope-from adamw@svn.freebsd.org) Message-Id: <201407052355.s65NtWTl051862@svn.freebsd.org> From: Adam Weinberger Date: Sat, 5 Jul 2014 23:55:32 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r360850 - in head/net-mgmt/sendip: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Jul 2014 23:55:32 -0000 Author: adamw Date: Sat Jul 5 23:55:31 2014 New Revision: 360850 URL: http://svnweb.freebsd.org/changeset/ports/360850 QAT: https://qat.redports.org/buildarchive/r360850/ Log: Fix build with gcc by adding some compiler flags. PR: ports/191426 Submitted by: Marco Steinbach (maintainer) Modified: head/net-mgmt/sendip/Makefile head/net-mgmt/sendip/files/patch-Makefile Modified: head/net-mgmt/sendip/Makefile ============================================================================== --- head/net-mgmt/sendip/Makefile Sat Jul 5 23:47:48 2014 (r360849) +++ head/net-mgmt/sendip/Makefile Sat Jul 5 23:55:31 2014 (r360850) @@ -3,7 +3,7 @@ PORTNAME= sendip PORTVERSION= 2.5 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= net-mgmt ipv6 MASTER_SITES= http://www.earth.li/projectpurple/files/ @@ -14,15 +14,21 @@ LICENSE= GPLv2 BUILD_DEPENDS= help2man:${PORTSDIR}/misc/help2man -USES= gmake perl5 +USES= gmake perl5 compiler USE_LDCONFIG= yes +.include + +.if ${COMPILER_TYPE} == clang +CFLAGS+= -Wno-empty-body -Wno-constant-conversion +.endif + post-install: - ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/sendip + @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/sendip .for slib in ipv4.so ipv6.so icmp.so tcp.so udp.so rip.so ripng.so ntp.so \ bgp.so - ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/sendip/${slib} + @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/sendip/${slib} .endfor -.include +.include Modified: head/net-mgmt/sendip/files/patch-Makefile ============================================================================== --- head/net-mgmt/sendip/files/patch-Makefile Sat Jul 5 23:47:48 2014 (r360849) +++ head/net-mgmt/sendip/files/patch-Makefile Sat Jul 5 23:55:31 2014 (r360850) @@ -19,7 +19,7 @@ -CFLAGS= -fPIC -fsigned-char -pipe -Wall -Wpointer-arith -Wwrite-strings \ - -Wstrict-prototypes -Wnested-externs -Winline -Werror -g -Wcast-align \ - -DSENDIP_LIBS=\"$(LIBDIR)\" -+CFLAGS+= -fPIC -fsigned-char -pipe -Wall -Wpointer-arith -Wwrite-strings -Wno-empty-body -Wno-constant-conversion \ ++CFLAGS+= -fPIC -fsigned-char -pipe -Wall -Wpointer-arith -Wwrite-strings \ + -Wstrict-prototypes -Wnested-externs -Winline -Werror -Wcast-align \ + -DSENDIP_LIBS=\"${LIBDIR}\" #-Wcast-align causes problems on solaris, but not serious ones