From owner-freebsd-ports@FreeBSD.ORG Thu May 14 00:15:30 2009 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 15BAD106566B for ; Thu, 14 May 2009 00:15:30 +0000 (UTC) (envelope-from mezz7@cox.net) Received: from eastrmmtao105.cox.net (eastrmmtao105.cox.net [68.230.240.47]) by mx1.freebsd.org (Postfix) with ESMTP id 9F0298FC15 for ; Thu, 14 May 2009 00:15:29 +0000 (UTC) (envelope-from mezz7@cox.net) Received: from eastrmimpo03.cox.net ([68.1.16.126]) by eastrmmtao105.cox.net (InterMail vM.7.08.02.01 201-2186-121-102-20070209) with ESMTP id <20090514001528.FUSD8364.eastrmmtao105.cox.net@eastrmimpo03.cox.net>; Wed, 13 May 2009 20:15:28 -0400 Received: from localhost ([68.103.37.153]) by eastrmimpo03.cox.net with bizsmtp id rCFU1b00A3JFCbG02CFUQp; Wed, 13 May 2009 20:15:29 -0400 X-Authority-Analysis: v=1.0 c=1 a=HJZtWW4gJwcA:10 a=rjVLpwGc5MAA:10 a=pGLkceISAAAA:8 a=6I5d2MoRAAAA:8 a=AIPdC31oAAAA:8 a=kviXuzpPAAAA:8 a=7m6YOkPdHwn32Dd6V1UA:9 a=5paF0SVYGFRdxds7U5BPN3UN0HQA:4 a=RKotsY-GodYA:10 a=MSl-tDqOz04A:10 a=4vB-4DCPJfMA:10 a=SV7veod9ZcQA:10 a=3xb9-hJ51WDQ-TOI:21 a=wH2rwRRpDGkx7M2C:21 X-CM-Score: 0.00 Date: Wed, 13 May 2009 19:15:36 -0500 To: "Alexander Churanov" From: "Jeremy Messenger" Content-Type: text/plain; format=flowed; delsp=yes; charset=utf-8 MIME-Version: 1.0 References: <3cb459ed0905130926n32def691ycecd043f70e522fc@mail.gmail.com> Content-Transfer-Encoding: 7bit Message-ID: In-Reply-To: <3cb459ed0905130926n32def691ycecd043f70e522fc@mail.gmail.com> User-Agent: Opera Mail/9.64 (Linux) Cc: ports@freebsd.org Subject: Re: devel/boost: what's proper shared library version? 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, 14 May 2009 00:15:30 -0000 On Wed, 13 May 2009 11:26:56 -0500, Alexander Churanov wrote: > Hi folks! > > I'm currently working on boost-1.39 port. > The wiki http://wiki.freebsd.org/BoostPortingProject reflects most > recent project status. > And there is a question: what is the proper value for shared libraries > installed by boost? > > As I can see from CVS, devel/boost started setting shared library > version explicitly since 1.32. > It was 2 for 1.32, then 3 for 1.33, then remained 3 till 1.35. > When updating to 1.37 I've changed it to 4, just made +1. > > Now It's not clear what version should be used for 1.39. > Boost.org provides no binary compatibility between versions of their > libraries. > It seems the best solution is to modify shared libraries version on > each version update from boost. > > The choices are: > 1) Just increment number further. It would be 5 for 1.39 This is a correct choice. But you only need to bump it if newer version break the ABI. If the binary of library is compatibility, then do not bump it. > 2) Use what's boost installer provides (currently so.1.39.0) You can try ltverhack (must have USE_AUTOTOOLS=libtool:15 with it) in bsd.gnome.mk, it's what near all GNOME and a some outside ports use to get same .so.N as Linux. Like our glib2/gtk2 has .so.0 just like Linux. If the ltverhack doesn't work then stick with manual. By the way, ltverhack fix libtool bug for FreeBSD to get correct .so.N. > 3) Use own numbering system, linked to version of boost. For example: > so.1390 No. This is very ugly, because its force all ports to rebuild at the each time when boost update. It's not need to bump if ABI is compatibility. > I don't like option (1), because *so version is not related to version > of libraries. The library version is unrelated with release version. It's merely an ABI version, so it bumps when ABI break in the next update. > For the (2) I've heard that on FreeBSD version must be a single number. > I've never seen versions like 1390, as suggested in option (3). > > What approach to follow? > > Sincerely, > Alexander Churanov, > maintainer of devel/boost -- mezz7@cox.net - mezz@FreeBSD.org FreeBSD GNOME Team http://www.FreeBSD.org/gnome/ - gnome@FreeBSD.org