On 2011-05-23 Jonathan Nieder wrote:
> Lasse Collin wrote:
> > This made me think, what should I do when I extend old functions
> > e.g. by adding support for a new flag? It doesn't affect backward
> > compatibility, but it means that new applications that use the new
> > functionality won't work with older liblzma versions. Should this
> > kind of extensions be visible in symbol versions too, or is
> > incrementing the minor soname enough?
> 
> The old version of the function would return LZMA_OPTIONS_ERROR,
> right?  So just incrementing the minor library version seems safe
> enough. :)

Right.

> If on the other hand you want to make running a new program with the
> old library into a hard error, then the only ways I know are ugly.

I suppose it's not required. On the other hand, I have understood that 
some systems will give a warning or error at program startup if the 
program was linked against newer minor soname than what is currently 
installed.

-- 
Lasse Collin  |  IRC: Larhzu @ IRCnet & Freenode

Reply via email to