[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: libtool and sonames



Torsten Landschoff <torsten@debian.org> writes:

> Hi Federico, 
> 
> On Fri, Jul 14, 2000 at 04:43:49PM +0200, Federico Di Gregorio wrote:
> > 	i am packaging a libtoolized library and i am havin some problems
> > on how to name the resulting package. the program (elastiC) is in early
> > beta and the libelastic API changes quite a lot. at now the libtool
> > -version-info is 14:1:0, resulting in libelastic.so.14.0.1. so should
> > i name the package libelastic14? but next version will have 15:1:0
> > (the API changes quite a lot as i said), resulting in libelastic.so.15.0.2 
> > and so on...
> 
> That's not the SONAME of the library. You can query it by using 
> $ objdump -p $file|grep SONAME
> with $file being the name of the library. What you are seeing as extension
> of libelastic.so is the libtool internal versioning info (like you can 
> find in many other libraries, see e.g. /usr/lib/libgtk-1.2.so.0.5.3).
>
This is wrong, IMHO. The libtool version info is encoded into the
SONAME AFAIK. The first part of the libtool version info is the 'major
library version', which happens to be also the last part of the
SONAME.

> > 	i would very much prefer to version the library 0.14, 0.15 
> > (or 0.0.14, 0.0.15) and so on, switching to 1.x.x when backward
> > incompatibilities are added (plain old debian way.) what should i do?
> > simply go on and enforce my own versioning scheme? any good algorithm
> > to choose version numbers from libtool version info?
>
I would call it libelastic#, # being the major version (interface
version). Otherwise it is not possible to have apps that use different
versions.

On the other hand, if this is a new, in-the-flux library, there won't
be many apps, and most likely no closed-source ones. Thus that may not
be an issue and you can call it libelastic, and adding versions to the
name once it has stabled a little.


> I would expect that libelastic does not yet have a version like 
> 0.14 attached. They are probably using only libtool versioning which 
> does not fit well into Debian package names - they are not using the
> -release option.
>
It should have SONAME libelastic.so.14 (libtool _does_ attach sonames,
there is not even an option to turn it off IIRC).

Andy
-- 
Andreas Rottmann     | Dru@ICQ      | 54523380@ICQ | a.rottmann@gmx.at
Pfeilgasse 4-6/725   | A-1080 Wien  | Austria      | Europe
http://www.8ung.at/rotty            | GnuPG Key: www.8ung.at/rotty/dru.asc
Fingerprint          | 3E9A C485 49A4 1D17 2EA7  2BA7 22AE C9BF 8173 6279
[one of 78,35% Austrians who didn´t vote for Haider!]



Reply to: