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 9:01 AM, Goswin von Brederlow <[email protected]> wrote:
> Roberto C. Sánchez <[email protected]> writes:
>
>> [My apologies in advance for the cross-posting.]
>>
>> On Tue, Mar 10, 2009 at 10:42:36AM +0100, Daniel Wallin wrote:
>>> Roberto C. Sánchez wrote:
>>> >>
>>> > So, I've been trying to build the Debian package with the latest from
>>> > the 0.8 branch on github.  It seems like the SONAME thing is not
>>> > completely resolved.  I am seeing this after building:
>>> >
>>> > roberto@miami:~/src/luabind-upstream$ objdump -p ./bin/gcc-4.3.2/debug/libluabindd.so.0.8.0 |grep SONAME
>>> >   SONAME      libluabindd.so.0.8.0
>>>
>>> Yes, that's the expected result, isn't it? The reasoning was that it's
>>> too difficult to have ABI-compatibility, so we just use the complete
>>> version number as the SONAME. "bjam install" will create the unversioned
>>> symlink.
>>>
>>
>> I am curious as to what people generally think of how the libluabind
>> SONAME will be going forward.  I know that certain packages (like
>> libssl) have the complete version in the SONAME, but I can't imagine
>> that this is a really good idea.  Is this a showstopper for having
>> libluabind in Debian, or just for a stable release?  Is this
>> discouraged, but otherwise permissible?
>>
>> I've looked in the Debian library packaging guide and it does not say
>> one way or the other.
>>
>> I'd appreciate any insights and/or comments.
>>
>> Regards,
>>
>> -Roberto
>
> The ABI needs to be compatible across all versions with the same
> SONAME. If that means every upstream release gets a new SONAME than I
> curse upstream for breaking their ABI all the time but the SONAME
> would still be right. This should not really be a showstopper but
> maintaining this won't be too easy. Every new upstream release will
> need a binary package name change, NEW procesing and a library
> transition.  You better hope that the API doesn't change as often so
> binNMUs can be done.
>
> One would hope that at some point there will be a libluabindd 1.0.0
> which would then have a more stable ABI.

There is an easy solution for that in Debian: package luabind as a
static library and forget about sonames. That's exactly what I plan to
do with the upcoming witty3 packages, as upstream told me Wt 3.0 will
break ABI very often.

-- 
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.