Re: Splitting up a library without breaking ABI?



Le mardi 23 août 2011 à 10:20 +0200, Stef Walter a écrit : 
> Is there a way to split a library into two without breaking ABI?
> 
> The current pkg-config file library is libgcr-3.so. Would it work to
> have libgcr-3.so depend on the two new libraries (eg: libgcr-base-3.so,
> libgcr-gtk-3.so).

What I have already seen working is libgcr-3.so keeping some of the
symbols, depending on libgcr-base-3.so with the others. But I don’t see
a reason why it wouldn’t work at the moment.

And I really mean “at the moment”; in the future the dynamic linker
might stop automatically looking for symbols in indirect dependencies,
since AFAIK it is not part of its specification to do so.

> Or is this just not worth it, and I'll just worry about preserving API
> backwards compatibility in such a split and not ABI?

Given the low number of affected packages, you might not want to bother.

Cheers,
-- 
 .''`.      Josselin Mouette
: :' :
`. `'
  `-

Attachment: signature.asc
Description: This is a digitally signed message part



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