From owner-freebsd-ports@FreeBSD.ORG Thu Feb 9 20:08:11 2012 Return-Path: Delivered-To: freebsd-ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 186111065673; Thu, 9 Feb 2012 20:08:11 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 2B0908FC13; Thu, 9 Feb 2012 20:08:09 +0000 (UTC) Received: from porto.starpoint.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id WAA05150; Thu, 09 Feb 2012 22:08:08 +0200 (EET) (envelope-from avg@FreeBSD.org) Received: from localhost ([127.0.0.1]) by porto.starpoint.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1RvaHm-0005hU-Lz; Thu, 09 Feb 2012 22:08:08 +0200 Message-ID: <4F3427A3.6050407@FreeBSD.org> Date: Thu, 09 Feb 2012 22:08:03 +0200 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:10.0) Gecko/20120202 Thunderbird/10.0 MIME-Version: 1.0 To: Baptiste Daroussin References: <4F188891.1050204@FreeBSD.org> <20120119224423.GL4729@azathoth.lan> <4F1918B1.6000603@FreeBSD.org> <20120123171803.GC72126@azathoth.lan> <4F1DCF90.9040702@FreeBSD.org> <20120123212554.GF72126@azathoth.lan> <4F1E6662.8050303@FreeBSD.org> <20120124081455.GI72126@azathoth.lan> In-Reply-To: <20120124081455.GI72126@azathoth.lan> X-Enigmail-Version: 1.3.5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Alexander Churanov , freebsd-ports@FreeBSD.org Subject: Re: boost 1.48.0 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Feb 2012 20:08:11 -0000 on 24/01/2012 10:14 Baptiste Daroussin said the following: > On Tue, Jan 24, 2012 at 10:05:54AM +0200, Andriy Gapon wrote: >> on 23/01/2012 23:25 Baptiste Daroussin said the following: >>> I agree this was a fast patching to be able to use it for libreoffice, >>> we should for have a closer look at it. >> >> And, just in case, what I did was put the following line into >> tools/build/v2/user-config.jam: using gcc : 4.6 : g++46 ; >> >> But this is not flexible enough, it seems. > > From what I've looked at this is the right solution: modifying > user-config.jam, we should just be able to do it a flexible way :) Another issue. We definitely need a variant of one patch from the current boost version: --- boostcpp.jam.orig 2012-02-09 19:58:58.785939710 +0200 +++ boostcpp.jam 2012-02-09 19:59:27.145935374 +0200 @@ -154,7 +154,7 @@ rule tag ( name : type ? : property-set # suffixes either. Pgi compilers can not accept library with version # suffix. if $(type) = SHARED_LIB && - ( ! ( [ $(property-set).get ] in windows cygwin darwin aix ) && + ( ! ( [ $(property-set).get ] in windows cygwin darwin aix freebsd ) && ! ( [ $(property-set).get ] in pgi ) ) { result = $(result).$(BOOST_VERSION) ; Without this patch we get the following: $ readelf -a /usr/local/lib/libboost_program_options.so.4| fgrep SONAME 0x000000000000000e (SONAME) Library soname: [libboost_program_options.so.1.48.0] But the libraries are installed as .so and .so.4 (current BOOST_SHARED_LIB_VER). Because of the SONAME the run-time linker seems to look for .so.1.48.0 files. Another approach to patching this issue could be replacing $(BOOST_VERSION) with a value of BOOST_SHARED_LIB_VER, so that SONAME entry has a .so.4 form. With the above path the do-install target for shared libs should be changed to this: do-install: # Install libraries .for lib in ${BOOST_LIBS} ${INSTALL_LIB} ${WRKSRC}/stage/lib/libboost_${lib}.so ${PREFIX}/lib/libboost_${lib}.so.${BOOST_SHARED_LIB_VER} -- Andriy Gapon