Date: Mon, 6 Jan 2014 02:54:36 +0900 From: KATO Tsuguru <tkato432@yahoo.com> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/185500: emulators/xbraitenberg: Fix build with clang Message-ID: <20140106025436.b622cb870a66cd9196ac392b@yahoo.com> Resent-Message-ID: <201401051810.s05IA0Ua084937@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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 <bsd.port.mk> 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 <cstddef> + #include <cstdarg> + ++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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140106025436.b622cb870a66cd9196ac392b>