From owner-freebsd-ppc@FreeBSD.ORG Mon Jul 14 14:44:38 2014 Return-Path: Delivered-To: freebsd-ppc@FreeBSD.ORG Received: by hub.freebsd.org (Postfix, from userid 1033) id 7BA2CAE1; Mon, 14 Jul 2014 14:44:38 +0000 (UTC) Date: Mon, 14 Jul 2014 14:44:38 +0000 From: Alexey Dokuchaev To: Baptiste Daroussin Subject: Re: Boost 1.55.0 (Was: Re: PowerPC Packages) Message-ID: <20140714144438.GA82573@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> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="DocE+STaALJfprDB" Content-Disposition: inline In-Reply-To: <20140626155949.GA86806@FreeBSD.org> User-Agent: Mutt/1.5.23 (2014-03-12) Cc: FreeBSD PowerPC ML , FreeBSD Mailing List , Justin Hibbits X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Jul 2014 14:44:38 -0000 --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 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--