LibSDL dependants

Ryan Schmidt ryandesign at macports.org
Sat Jan 21 16:22:49 PST 2012


On Jan 21, 2012, at 17:50, Dominik Reichardt wrote:

> Ryan Schmidt wrote:
> 
>> On Jan 21, 2012, at 13:58, Dominik Reichardt wrote:
>> 
>>> Don't all the dependants on libSDL need a version bump too? Especially the SDL satellite libs libSDL_net, libSDL_ttf, libSDL_mixer, etc...
>> 
>> Why do you think they do? Did the library version change?
> 
> Yes libSDL was updated to 1.2.15 from 1.2.14 yesterday (a much wanted release as it fixes fullscreen for SDL apps on Lion). I *think* the dependants need an update too but I'm not 100% sure whether that's really needed. That's why I asked ;)

Right, that's a minor version update. If the libsdl developers are following sensible version numbering practices, 1.2.15 should be fully backward-compatible with 1.2.14. Let's have a look:

$ port -q installed libsdl
  libsdl @1.2.14_9+universal+x11 (active)
$ otool -L /opt/local/lib/libSDL.dylib | head -n 2
/opt/local/lib/libSDL.dylib:
	/opt/local/lib/libSDL-1.2.0.dylib (compatibility version 12.0.0, current version 12.3.0)
$ sudo port -u upgrade libsdl
[snip]
$ port -q installed libsdl
  libsdl @1.2.15_0+universal+x11 (active)
$ otool -L /opt/local/lib/libSDL.dylib | head -n 2
/opt/local/lib/libSDL.dylib:
	/opt/local/lib/libSDL-1.2.0.dylib (compatibility version 12.0.0, current version 12.4.0)

As you see, the compatibility version is the same, so no revbump is needed. Now, if libsdl had been updated to 1.3, the library version probably would have changed, since 1.3 has been in development forever and we already know it's drastically different from the 1.2 series, so that would indeed have required a revbump of all ports using it.




More information about the macports-users mailing list