From owner-freebsd-ports-bugs@FreeBSD.ORG Sun Jan 5 18:10:01 2014 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 082B9A8F for ; Sun, 5 Jan 2014 18:10:01 +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)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id DBAE416B4 for ; Sun, 5 Jan 2014 18:10:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id s05IA07B084938 for ; Sun, 5 Jan 2014 18:10:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id s05IA0Ua084937; Sun, 5 Jan 2014 18:10:00 GMT (envelope-from gnats) Resent-Date: Sun, 5 Jan 2014 18:10:00 GMT Resent-Message-Id: <201401051810.s05IA0Ua084937@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, KATO Tsuguru 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 EB454737 for ; Sun, 5 Jan 2014 18:00:32 +0000 (UTC) Received: from omta01.auone-net.jp (mail-or1-f17.auone-net.jp [106.187.231.17]) by mx1.freebsd.org (Postfix) with ESMTP id BD762165F for ; Sun, 5 Jan 2014 18:00:32 +0000 (UTC) Received: from coppermine.my.domain (ZT034124.ppp.dion.ne.jp [59.128.34.124]) by omta01.auone-net.jp (au one net mail) with ESMTP id 4A3EC980016 for ; Mon, 6 Jan 2014 03:00:31 +0900 (JST) Message-Id: <20140106025436.b622cb870a66cd9196ac392b@yahoo.com> Date: Mon, 6 Jan 2014 02:54:36 +0900 From: KATO Tsuguru To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/185500: emulators/xbraitenberg: 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: Sun, 05 Jan 2014 18:10:01 -0000 >Number: 185500 >Category: ports >Synopsis: emulators/xbraitenberg: 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: Sun Jan 05 18:10:00 UTC 2014 >Closed-Date: >Last-Modified: >Originator: KATO Tsuguru >Release: FreeBSD 8.4-RELEASE-p4 i386 >Organization: >Environment: >Description: - Fix build with clang New file: files/patch-permstr.hh >How-To-Repeat: >Fix: diff -urN /usr/ports/emulators/xbraitenberg/Makefile emulators/xbraitenberg/Makefile --- /usr/ports/emulators/xbraitenberg/Makefile 2013-11-06 22:06:18.000000000 +0900 +++ emulators/xbraitenberg/Makefile 2014-01-06 00:00:00.000000000 +0900 @@ -8,12 +8,16 @@ MASTER_SITES= http://www.lcdf.org/~eddietwo/xbraitenberg/ MAINTAINER= ports@FreeBSD.org -COMMENT= A Braitenberg vehicle simulator with pseudo-physics +COMMENT= Braitenberg vehicle simulator with pseudo-physics USE_XORG= x11 ice sm xext GNU_CONFIGURE= yes +CONFIGURE_ENV= ac_cv_fpermissive=no PLIST_FILES= bin/xbraitenberg -NO_STAGE= yes +post-patch: + @${REINPLACE_CMD} -e \ + '/operator bool() const/d' ${WRKSRC}/operator.hh + .include diff -urN /usr/ports/emulators/xbraitenberg/files/patch-permstr.hh emulators/xbraitenberg/files/patch-permstr.hh --- /usr/ports/emulators/xbraitenberg/files/patch-permstr.hh 1970-01-01 09:00:00.000000000 +0900 +++ emulators/xbraitenberg/files/patch-permstr.hh 2014-01-06 00:00:00.000000000 +0900 @@ -0,0 +1,22 @@ +--- permstr.hh.orig ++++ permstr.hh +@@ -4,6 +4,10 @@ + #include + #include + ++class PermString; ++ ++PermString permprintf(const char *, ...); ++ + class PermString { struct Doodad; public: + + typedef Doodad *Capsule; +@@ -91,7 +95,7 @@ + inline int + hashcode(PermString s) + { +- return (int)(s.cc()); ++ return (int)(size_t)(s.cc()); + } + + #endif >Release-Note: >Audit-Trail: >Unformatted: