From nobody@FreeBSD.org  Mon Feb  4 05:25:21 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115])
	by hub.freebsd.org (Postfix) with ESMTP id 779F67FE
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  4 Feb 2013 05:25:21 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 53F86DDF
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  4 Feb 2013 05:25:21 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.5/8.14.5) with ESMTP id r145PLwP037378
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 4 Feb 2013 05:25:21 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.5/8.14.5/Submit) id r145PLfN037377;
	Mon, 4 Feb 2013 05:25:21 GMT
	(envelope-from nobody)
Message-Id: <201302040525.r145PLfN037377@red.freebsd.org>
Date: Mon, 4 Feb 2013 05:25:21 GMT
From: Chen Xu <windoze.net@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Boost-all cannot use libc++
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         175814
>Category:       ports
>Synopsis:       devel/boost-all cannot use libc++
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    office
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Feb 04 05:30:00 UTC 2013
>Closed-Date:    
>Last-Modified:  Thu Apr  4 12:40:00 UTC 2013
>Originator:     Chen Xu
>Release:        9-STABLE
>Organization:
0d0a.com
>Environment:
FreeBSD u.0d0a.com 9.1-STABLE FreeBSD 9.1-STABLE #2 r245897: Fri Jan 25 15:47:24 CST 2013     chenxu@u.0d0a.com:/usr/obj/usr/src/sys/GENERIC  amd64

>Description:
devel/boost-* hardcoded BJAM_ARGS in compiled.mk, there is no way to customize this arguments, thus cannot use c++11/libc++

>How-To-Repeat:
Build and install devel/boost-* ports, check /usr/local/lib/libboost_*.so, they are all linked to libstdc++ regardless what compilation/linking flags are set
>Fix:
Change devel/boost-all/compiled.mk, use "BJAM_ARGS += ..." instead of "BAJM_ARGS = ...", then we can effectively set "BJAMS_ARGS=..." in /etc/make.conf

Patch attached with submission follows:

--- devel/boost-all/compiled.mk	2013-02-04 11:22:08.525015918 +0800
+++ devel/boost-all/compiled.mk.orig	2013-02-04 13:19:38.019015963 +0800
@@ -9,7 +9,7 @@
 PKG_MESSAGE_FILE_THREADS=	${PORTSDIR}/devel/boost-all/pkg-message.threads
 PKG_MESSAGE_FILE_PYTHON=	${PORTSDIR}/devel/boost-all/pkg-message.python
 
-BJAM_ARGS+=	--layout=system \
+BJAM_ARGS=	--layout=system \
 		--prefix=${PREFIX}
 
 .if ${ARCH} == amd64


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->office 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Mon Feb 4 20:49:24 UTC 2013 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=175814 

From: Baptiste Daroussin <bapt@freebsd.org>
To: bug-followup@freebsd.org, windoze.net@gmail.com
Cc:  
Subject: Re: ports/175814: devel/boost-all cannot use libc
Date: Tue, 5 Feb 2013 08:19:29 +0100

 The right fix would be to correctly pass the defauls/make.conf's
 CXXFLAGS directly to bjam, should not be that much complicated, but I
 have no time to this right now.
 
 I already to it for fPIC
 regards,
 Bapt

From: Volodymyr Kostyrko <c.kworr@gmail.com>
To: bug-followup@FreeBSD.org, windoze.net@gmail.com
Cc:  
Subject: Re: ports/175814: devel/boost-all cannot use libc++
Date: Thu, 04 Apr 2013 15:30:10 +0300

 This is a multi-part message in MIME format.
 --------------080509060107060801010107
 Content-Type: text/plain; charset=UTF-8; format=flowed
 Content-Transfer-Encoding: 7bit
 
 Hello.
 
 Here is a small patch that adds an option to compile boost with libc++.
 
 Actually I stumbled upon this report while trying to open mine.
 
 The patch is fairly simple. If anyone wants a good catch on how to pass 
 CXXFLAGS and LDFLAGS down to BJAM feel free to modify it.
 
 -- 
 Sphinx of black quartz, judge my vow.
 
 --------------080509060107060801010107
 Content-Type: text/plain; charset=UTF-8;
  name="boost.txt"
 Content-Transfer-Encoding: base64
 Content-Disposition: attachment;
  filename="boost.txt"
 
 SW5kZXg6IC91c3IvcG9ydHMvZGV2ZWwvYm9vc3QtYWxsL2NvbXBpbGVkLm1rCj09PT09PT09
 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
 PT09PT0KLS0tIC91c3IvcG9ydHMvZGV2ZWwvYm9vc3QtYWxsL2NvbXBpbGVkLm1rCShyZXZp
 c2lvbiAzMTU3MTQpCisrKyAvdXNyL3BvcnRzL2RldmVsL2Jvb3N0LWFsbC9jb21waWxlZC5t
 awkod29ya2luZyBjb3B5KQpAQCAtMTMsOSArMTMsMTUgQEAKIAkJLS1wcmVmaXg9JHtQUkVG
 SVh9CiAKIC5pZiAke0FSQ0h9ID09IGFtZDY0Ci1CSkFNX0FSR1MrPQljeHhmbGFncz0tZlBJ
 QworQkpBTV9BUkdTX0NYWEZMQUdTPS1mUElDCiAuZW5kaWYKIAorLmlmICR7UE9SVF9PUFRJ
 T05TOk1MSUJDWFh9CitCSkFNX0FSR1MrPQljeHhmbGFncz0iJHtCSkFNX0FSR1NfQ1hYRkxB
 R1N9IC1zdGRsaWI9bGliYysrIC1zdGQ9YysrMTEiIGxpbmtmbGFncz0iLXN0ZGxpYj1saWJj
 KysiCisuZWxzZQorQkpBTV9BUkdTKz0JY3h4ZmxhZ3M9IiR7QkpBTV9BUkdTX0NYWEZMQUdT
 fSIKKy5lbmRpZgorCiBOT19DQ0FDSEU9C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