From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Nov 28 11:20:08 2011 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7B8FC1065677 for ; Mon, 28 Nov 2011 11:20:08 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 2C7C38FC12 for ; Mon, 28 Nov 2011 11:20:08 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id pASBK8BG072555 for ; Mon, 28 Nov 2011 11:20:08 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id pASBK8wN072553; Mon, 28 Nov 2011 11:20:08 GMT (envelope-from gnats) Resent-Date: Mon, 28 Nov 2011 11:20:08 GMT Resent-Message-Id: <201111281120.pASBK8wN072553@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, Jan Beich Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7B749106568E for ; Mon, 28 Nov 2011 11:11:06 +0000 (UTC) (envelope-from jbeich@tormail.net) Received: from server2.hudsonvalleyhost.com (server2.hudsonvalleyhost.com [66.7.195.77]) by mx1.freebsd.org (Postfix) with ESMTP id 4BE6C8FC27 for ; Mon, 28 Nov 2011 11:11:06 +0000 (UTC) Received: from [95.109.103.113] (port=44402 helo=internal.tormail.net) by server2.hudsonvalleyhost.com with esmtpsa (TLSv1:RC4-SHA:128) (Exim 4.69) (envelope-from ) id 1RUz72-002Fb2-Lx for FreeBSD-gnats-submit@freebsd.org; Mon, 28 Nov 2011 06:11:05 -0500 Received: from jbeich by internal.tormail.net with local (Exim 4.63) (envelope-from ) id 1RUz6B-0001rg-15 for FreeBSD-gnats-submit@freebsd.org; Mon, 28 Nov 2011 11:10:15 +0000 Message-Id: <1RUz6B-0001rg-15@internal.tormail.net> Date: Mon, 28 Nov 2011 14:08:30 +0300 From: Jan Beich To: FreeBSD-gnats-submit@FreeBSD.org Cc: Subject: ports/162921: [patch] devel/bglibs: unbreak build with clang X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Nov 2011 11:20:08 -0000 >Number: 162921 >Category: ports >Synopsis: [patch] devel/bglibs: unbreak build with clang >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Nov 28 11:20:07 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Jan Beich >Release: FreeBSD 10.0-CURRENT amd64 >Organization: >Environment: >Description: hasunsetenv test fails because main() has wrong return type >How-To-Repeat: http://pointyhat-west.isc.freebsd.org/errorlogs/amd64-errorlogs/e.9-exp-clang.20111122163211.pointyhat-west/bglibs-1.106,1.log >Fix: --- clang.diff begins here ---- Index: devel/bglibs/Makefile =================================================================== RCS file: /a/.csup/ports/devel/bglibs/Makefile,v retrieving revision 1.41 diff -u -p -r1.41 Makefile --- devel/bglibs/Makefile 30 May 2011 12:28:18 -0000 1.41 +++ devel/bglibs/Makefile 28 Nov 2011 11:04:09 -0000 @@ -29,4 +28,7 @@ USE_LDCONFIG= ${BGLIBS_LIB} MAN1= cli-generate.1 +post-patch: + ${REINPLACE_CMD} '/main/s/void/int/' ${WRKSRC}/sys/try*.c + do-configure: ${ECHO_CMD} "${CC} ${CFLAGS}" > ${WRKSRC}/conf-cc --- clang.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: