--DocE+STaALJfprDB
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
On Thu, Jun 26, 2014 at 03:59:49PM +0000, Alexey Dokuchaev wrote:
> On Thu, Jun 26, 2014 at 05:44:16PM +0200, Baptiste Daroussin wrote:
> > As long as cc is supported upstream, boost being a nightmare to maintain I
> > will reject all patches that are not accepted upstream first, otherwise
> > bumping to 1.56 will be painful.
>
> I'm currently trying to build it on PowerPC without any patches to the Boost
> itself (only patching boost-all/compiled.mk). I'll follow up as soon as I
> get any results.
It seems that disabling Boost.Log is enough to allow Boost to build with a
system compiler on PowerPC (gcc4.2). I've used attached patch. Not sure
how many ports actually need Boost.Log though, but I definitely like that
my stable/8 also can be kept gcc47/clang-free now. ;-)
../danfe
--DocE+STaALJfprDB
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment; filename="boost-de-cxx11.diff"
Index: boost-all/compiled.mk
===================================================================
--- boost-all/compiled.mk (revision 361325)
+++ boost-all/compiled.mk (working copy)
@@ -1,7 +1,7 @@
USE_LDCONFIG= yes
PKGMESSAGE= ${WRKDIR}/pkg-message
BJAM= bjam
-USES+= compiler:c++11-lang
+USES+= compiler
PLIST_SUB+= BOOST_SHARED_LIB_VER=${PORTVERSION} COMPAT_LIB_VER=5
@@ -11,7 +11,7 @@
.include <bsd.port.pre.mk>
BJAM_ARGS= --layout=system \
- --prefix=${PREFIX} \
+ --prefix=${PREFIX}
.if ${ARCH} == amd64
BJAM_ARGS+= cxxflags=-fPIC
Index: boost-libs/Makefile
===================================================================
--- boost-libs/Makefile (revision 361325)
+++ boost-libs/Makefile (working copy)
@@ -14,17 +14,22 @@
ICU_DESC= Boost.Regex with ICU unicode support
.include "${.CURDIR}/../boost-all/common.mk"
-
.include "${.CURDIR}/../boost-all/compiled.mk"
BJAM_ARGS+= --without-python
+
+# Hack for FreeBSD 8.4 (gcc42)
+BJAM_ARGS+= --without-log
+PLIST_SUB+= LOG="@comment "
+
+LOCALE="@comment " LOG="@comment "
.if defined(X_BUILD_FOR)
BJAM_ARGS+= --without-context --without-coroutine \
- --without-locale --without-log
+ --without-locale
PLIST_SUB+= COROUTINE="@comment " CONTEXT="@comment " \
- LOCALE="@comment " LOG="@comment "
+ LOCALE="@comment "
.else
-PLIST_SUB+= COROUTINE="" CONTEXT="" LOCALE="" LOG=""
+PLIST_SUB+= COROUTINE="" CONTEXT="" LOCALE=""
.endif
.if ${PORT_OPTIONS:MICU}
--DocE+STaALJfprDB
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org"
--DocE+STaALJfprDB--