Re: libsdl2 port question

2021-11-14 Thread Ryan Schmidt
On Nov 14, 2021, at 04:53, Gerben Wierda wrote:

> I was just curious: why does the libsdl2 port which is at version 2.0.16 
> install 2.0.0 libraries? How does that happen? Just learning.

There is no reason why the version of a port needs to have any relationship 
whatsoever with the version of the library(ies) that port installs.

For example, the libiconv port, version 1.16, installs a libiconv.dylib library 
having major version 2 and minor version 9.1.0.

If you have questions about why the versioning of a particular library is the 
way that it is, you should ask the developers of that library.

Re: libsdl2 port question

2021-11-14 Thread Bill Cole

On 2021-11-14 at 05:53:21 UTC-0500 (Sun, 14 Nov 2021 11:53:21 +0100)
Gerben Wierda via macports-users 
is rumored to have said:

I was just curious: why does the libsdl2 port which is at version 
2.0.16 install 2.0.0 libraries? How does that happen? Just learning.


I assume you mean the fact that the actual dylib file is named 
/opt/local/lib/libSDL2-2.0.0.dylib


It is a norm for dynamically loaded libraries to include a symlink with 
their base name (i.e. /opt/local/lib/libSDL2.dylib) and sometimes 
additional symlinks with partial versions in their names, with the 
versions being indicators of binary compatibility rather than 
whole-project code revision. This allows for multiple incompatible 
versions of the same shared library to be installed simultaneously, with 
the runtime loader picking which version to attempt to load by the name 
linked in the executable. This is a pattern/norm, not a fixed standard, 
so exactly how a specific library handles the possibility of future 
version incompatibility can vary a bit. The libsdl2 devs have apparently 
decided to leave the name of the real library with the lowest version 
that remains compatible with the current version rather than doing 
anything more complex. Others (e.g. pth) use distinct versioning for 
their library names.



--
Bill Cole
b...@scconsult.com or billc...@apache.org
(AKA @grumpybozo and many *@billmail.scconsult.com addresses)
Not Currently Available For Hire


libsdl2 port question

2021-11-14 Thread Gerben Wierda via macports-users
I was just curious: why does the libsdl2 port which is at version 2.0.16 
install 2.0.0 libraries? How does that happen? Just learning.

Gerben Wierda (LinkedIn )
R Enterprise Architecture  (main site)
Book: Chess and the Art of Enterprise Architecture 
Book: Mastering ArchiMate