Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Jul 2014 14:44:38 +0000
From:      Alexey Dokuchaev <danfe@FreeBSD.org>
To:        Baptiste Daroussin <bapt@FreeBSD.org>
Cc:        FreeBSD PowerPC ML <freebsd-ppc@FreeBSD.ORG>, Nathan Whitehorn <nwhitehorn@freebsd.org>, FreeBSD Mailing List <freebsd-ports@FreeBSD.ORG>, Justin Hibbits <chmeeedalf@gmail.com>
Subject:   Re: Boost 1.55.0 (Was: Re: PowerPC Packages)
Message-ID:  <20140714144438.GA82573@FreeBSD.org>
In-Reply-To: <20140626155949.GA86806@FreeBSD.org>
References:  <539DC0C5.60603@freebsd.org> <20140623131222.GA26450@FreeBSD.org> <20140625073340.GA57075@FreeBSD.org> <20140625072305.45baf39b@zhabar.att.net> <20140626100258.GA47002@FreeBSD.org> <53AC3DB2.3070902@freebsd.org> <20140626154416.GD24440@ivaldir.etoilebsd.net> <20140626155949.GA86806@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140714144438.GA82573>