FreeBSD is now moving to the CLANG/LLVM compiler architecture. Ports should be built with CLANG without errors, and ports that fail are buggy. A source file contained in games/netrek-client-cow makes incorrect use of inline functions. This wasn't a problem for GCC, but turned out to be a problem for CLANG. Fix: Apply the attached patch to games/netrek-client-cow. Patch attached with submission follows: How-To-Repeat: Append the following to /etc/make.conf: CC=clang CXX=clang++ CPP=clang-cpp Try to build games/netrek-client-cow (it won't work).
Responsible Changed From-To: freebsd-ports-bugs->miwi miwi@ wants his PRs (via the GNATS Auto Assign Tool)
Responsible Changed From-To: miwi->freebsd-ports-bugs Over to maintainer.
Responsible Changed From-To: freebsd-ports-bugs->ak I'll take it.
Hi Unfortunately, your patch doesn't work with base gcc: http://redports.org/buildarchive/20120805195954-63377/ What do you think about attached patch? -- Alex
Author: ak Date: Sun Aug 5 22:14:38 2012 New Revision: 302137 URL: http://svn.freebsd.org/changeset/ports/302137 Log: - Fix build with clang PR: ports/169179 Submitted by: Kevin Zheng <kevinz5000@gmail.com> (maintainer) Modified: head/games/netrek-client-cow/Makefile (contents, props changed) Modified: head/games/netrek-client-cow/Makefile ============================================================================== --- head/games/netrek-client-cow/Makefile Sun Aug 5 21:10:33 2012 (r302136) +++ head/games/netrek-client-cow/Makefile Sun Aug 5 22:14:38 2012 (r302137) @@ -25,6 +25,8 @@ CONFIGURE_ARGS+= NORSA='\#' post-patch: ${REINPLACE_CMD} -e 's|ushort damage|unsigned short damage|' \ ${WRKSRC}/short.c + ${REINPLACE_CMD} -e 's|inline void|void|' \ + ${WRKSRC}/local.[ch] ${REINPLACE_CMD} -e 's|/usr|${PREFIX}|' \ ${WRKSRC}/x11sprite.c ${WRKSRC}/netrek-client-cow.desktop ${REINPLACE_CMD} -e 's|games|bin|' \ _______________________________________________ svn-ports-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-ports-all To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
State Changed From-To: open->closed Committed, with minor changes. Thanks!