From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Apr 11 20:20:00 2014 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.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 81CEEA51 for ; Fri, 11 Apr 2014 20:20:00 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (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 5EF2D1889 for ; Fri, 11 Apr 2014 20:20:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.8/8.14.8) with ESMTP id s3BKK0Mr005492 for ; Fri, 11 Apr 2014 20:20:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.8/8.14.8/Submit) id s3BKK04g005491; Fri, 11 Apr 2014 20:20:00 GMT (envelope-from gnats) Resent-Date: Fri, 11 Apr 2014 20:20:00 GMT Resent-Message-Id: <201404112020.s3BKK04g005491@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, Pawel Pekala 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 9C1A0566 for ; Fri, 11 Apr 2014 20:15:56 +0000 (UTC) Received: from cgiserv.freebsd.org (cgiserv.freebsd.org [IPv6:2001:1900:2254:206a::50:4]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 890751842 for ; Fri, 11 Apr 2014 20:15:56 +0000 (UTC) Received: from cgiserv.freebsd.org ([127.0.1.6]) by cgiserv.freebsd.org (8.14.8/8.14.8) with ESMTP id s3BKFuNx050562 for ; Fri, 11 Apr 2014 20:15:56 GMT (envelope-from nobody@cgiserv.freebsd.org) Received: (from nobody@localhost) by cgiserv.freebsd.org (8.14.8/8.14.8/Submit) id s3BKFunY050558; Fri, 11 Apr 2014 20:15:56 GMT (envelope-from nobody) Message-Id: <201404112015.s3BKFunY050558@cgiserv.freebsd.org> Date: Fri, 11 Apr 2014 20:15:56 GMT From: Pawel Pekala To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/188476: [PATCH] sysutils/bbcp fix build with clang X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Apr 2014 20:20:00 -0000 >Number: 188476 >Category: ports >Synopsis: [PATCH] sysutils/bbcp fix build with 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: Fri Apr 11 20:20:00 UTC 2014 >Closed-Date: >Last-Modified: >Originator: Pawel Pekala >Release: 10.0 >Organization: >Environment: FreeBSD caprica.slowicza.org 10.0-STABLE FreeBSD 10.0-STABLE #2 r262297: Fri Feb 21 17:42:25 CET 2014 root@caprica.slowicza.org:/usr/obj/usr/src/sys/GENERIC i386 >Description: - Fix build with clang on 10.0 and upwards - Convert port to current standards - Add staging support >How-To-Repeat: >Fix: Patch attached with submission follows: Index: Makefile =================================================================== --- Makefile (wersja 351019) +++ Makefile (kopia robocza) @@ -13,22 +13,23 @@ LICENSE= BSD +USES= tar:xz + BUILD_WRKSRC= ${WRKSRC}/src +MAKE_ARGS= BSDcc=${CC} BSDCC=${CXX} + PLIST_FILES= bin/bbcp PORTDOCS= ${PORTNAME}.pdf -USE_XZ= yes -NO_STAGE= yes - OPTIONS_DEFINE= DOCS -.include +post-patch: + @${REINPLACE_CMD} 's|main|int &|' ${WRKSRC}/src/bbcp.C do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/bin/FreeBSD/bbcp ${PREFIX}/bin -.if ${PORT_OPTIONS:MDOCS} - ${MKDIR} ${DOCSDIR} - ${INSTALL_DATA} ${DISTDIR}/${PORTNAME}-20100818.pdf ${DOCSDIR}/${PORTNAME}.pdf -.endif + ${INSTALL_PROGRAM} ${WRKSRC}/bin/FreeBSD/bbcp ${STAGEDIR}${PREFIX}/bin + ${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${DISTDIR}/${PORTNAME}-20100818.pdf \ + ${STAGEDIR}${DOCSDIR}/${PORTNAME}.pdf .include >Release-Note: >Audit-Trail: >Unformatted: