Re: Naming library with proper SONAME

Pau Garcia i Quiles <[email protected]>
Newsgroups gmane.comp.lang.lua.bind.user
Message-ID <[email protected]>
On Wed, Mar 11, 2009 at 12:25 AM, Roberto C. Sánchez
<[email protected]> wrote:
> On Wed, Mar 11, 2009 at 12:02:09AM +0100, Pau Garcia i Quiles wrote:
>>
>> Read:
>> http://www.elpauer.org/?p=230
>>
>> "If your library version is the same as your soname version, you have
>> not understood a thing of what I said above" :-)
>>
>> Soversion should be a *single* unsigned int, starting from 0.
>>
>> Why using the version number as the soversion is a bad, bad idea?
>> Because bumping soversion means you have broken binary compatibility.
>> Now, let's imagine this scenario:
>>
>> luabind version      ABI break?    soversion
>> ------------------------       -----------------    ----------------
>>
>> 0.8.1                       N/A               0
>> 0.8.2                       no                 0
>> 0.9.0                       no                 0
>> 0.9.1                       yes                1
>> 0.10.0                     yes                2
>> etc
>>
>> "ABI break?" = "is this version binary compatible with the previous version?"
>>
>> See? From 0.8.1 to 0.8.2, and from 0.8.2 to 0.9.0 luabind did not
>> break ABI, so there was no need to bump soversion. If you were using
>> the luabind version number as the soversion, you would be saying "I'm
>> breaking ABI with every luabind release", which is not true.
>>
>
> I completely understand.  However, what the luabind upstream developers
> are proposing is to have the version be the SONAME.  I understand that
> it is "wrong."  However, I am simply packaging for Debian. I am simply
> trying to guage people's feelings with regard to SONAME issue as it
> pertains to the package's suitability to be in Debian.

Ideally upstream (Daniel) should change his mind and use an unsigned
int as the soname, instead of the version.

For a library I package ( http://packages.debian.org/witty) I worked
with upstream. After exchanging a few e-mails and clarifications, they
understood soversioning very well and adopted a proper sonaming
scheme.

-- 
Pau Garcia i Quiles
http://www.elpauer.org
(Due to my workload, I may need 10 days to answer)

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.