Date: Tue, 1 Aug 2017 16:58:58 +0000 (UTC) From: Raphael Kubo da Costa <rakuco@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r447032 - head/graphics/animorph Message-ID: <201708011658.v71GwwsW030786@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: rakuco Date: Tue Aug 1 16:58:58 2017 New Revision: 447032 URL: https://svnweb.freebsd.org/changeset/ports/447032 Log: Explicitly build with -std=gnu++03. The port fails to build with C++11 and later. GCC 6 uses -std=gnu++14 by default, and fails like this: xmlParser.cpp: In function 'char* stringDup(const char*, int)': xmlParser.cpp:464:36: error: cast from 'std::nullptr_t' to 'char' loses precision [-fpermissive] lpszNew[cbData] = (XMLCHAR)NULL; Since this version of animorph is from 2007 and the code has completely changed upstream (it does not even use C++ anymore), there is little point in fixing the code instead of just making it build like it did before. PR: 219279 Approved by: portmgr (blanket approval) Modified: head/graphics/animorph/Makefile Modified: head/graphics/animorph/Makefile ============================================================================== --- head/graphics/animorph/Makefile Tue Aug 1 16:48:08 2017 (r447031) +++ head/graphics/animorph/Makefile Tue Aug 1 16:58:58 2017 (r447032) @@ -17,6 +17,7 @@ USES= pkgconfig gmake libtool USE_LDCONFIG= yes INSTALL_TARGET= install-strip USE_GCC= any # otherwise graphics/makehuman won't link +USE_CXXSTD= gnu++03 # The port is not compatible with C++11 and later. CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201708011658.v71GwwsW030786>