ports/185500: emulators/xbraitenberg: Fix build with clang
KATO Tsuguru
tkato432 at yahoo.com
Sun Jan 5 18:10:01 UTC 2014
>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 at 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:
More information about the freebsd-ports-bugs
mailing list