You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Max Bowsher <ma...@ukf.net> on 2004/12/04 17:19:30 UTC

svn_ver_check_list(): Why does it exist?

I can't work out why we have svn_ver_check_list().

Unless I'm missing something, it appears to be redundant:

Majors: Major numbers are ensured equal, since our shared libraries always 
feature the major version as part of the name.

Minors: If an application uses a function new in the version of subversion 
it is compiled against, then the "same or newer minor" check will be 
enforced by the OS dynamic loader. If not, then there is no reason to 
enforce the check! Our compatibility rules tell us that any app should work 
against any minor release which contains the required APIs.

Patches: Patch versions are *always* compatible, no checks required.



Unless I've missed something, we should remove all uses of 
svn_ver_check_list() and deprecate it.

Max.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: svn_ver_check_list(): Why does it exist?

Posted by Branko Čibej <br...@xbc.nu>.
Max Bowsher wrote:

> I wrote my question after *carefully* studying the code and compat 
> rules. Would you please answer it with more detail than an elaborately 
> worded "RTFM".

Ad 1: Even on ELF systems, we don't encode the version number in the 
SONAME. As far as the dynamic loader is concerned, it's always 0.0.0. 
But even if we did, Subversion works on systems that don't use ELF 
binaries; Windows being one such system, and I suspect there are others. 
So the version check done by the dynamic loader is irrelevant.
We do encode the major version in the name of the library on all systems 
I know of.

Ad 2: I guess you're thinking that we don't have to check "lib_minor >= 
my_minor" because the program will fail to start anyway if the APIs are 
missing. This isn't the case with on-demand loaded binaries; it's also 
entirely reasonable for an application to require a certain version of 
the libraries even if previous versions have all the APIs, e.g., if 
those previous versions contain a known bug.

Ad 3: The compatibility check is stricter for development versions, with 
good reason.

Many people have been bitten by mismatched library versions on their 
system, and there's at least one documented case where the version 
checks detected that and printed a better error message.

-- Brane



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: svn_ver_check_list(): Why does it exist?

Posted by Max Bowsher <ma...@ukf.net>.
Branko Čibej wrote:
> Max Bowsher wrote:
>> I can't work out why we have svn_ver_check_list().
>>
>> Unless I'm missing something, it appears to be redundant:
>>
>> Majors: Major numbers are ensured equal, since our shared libraries
>> always feature the major version as part of the name.
>>
>> Minors: If an application uses a function new in the version of
>> subversion it is compiled against, then the "same or newer minor"
>> check will be enforced by the OS dynamic loader.
>
> Which OS, and which dynamic loader? And which minor number? Please try
> to think in slightly broader terms.
>
>> If not, then there is no reason to enforce the check! Our
>> compatibility rules tell us that any app should work against any minor
>> release which contains the required APIs.
>
> No they don't. Read them again. Or rather, see how they define "contains
> the required APIs."
>
>> Patches: Patch versions are *always* compatible, no checks required.
>>
>> Unless I've missed something, we should remove all uses of
>> svn_ver_check_list() and deprecate it.
>
> You've missed a great deal. Go look at the compatibility checking code
> again, and see what it actually does.

I wrote my question after *carefully* studying the code and compat rules. 
Would you please answer it with more detail than an elaborately worded 
"RTFM".

Thankyou.

Max.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: svn_ver_check_list(): Why does it exist?

Posted by Branko Čibej <br...@xbc.nu>.
Max Bowsher wrote:

> I can't work out why we have svn_ver_check_list().
>
> Unless I'm missing something, it appears to be redundant:
>
> Majors: Major numbers are ensured equal, since our shared libraries 
> always feature the major version as part of the name.
>
> Minors: If an application uses a function new in the version of 
> subversion it is compiled against, then the "same or newer minor" 
> check will be enforced by the OS dynamic loader.

Which OS, and which dynamic loader? And which minor number? Please try 
to think in slightly broader terms.

> If not, then there is no reason to enforce the check! Our 
> compatibility rules tell us that any app should work against any minor 
> release which contains the required APIs.

No they don't. Read them again. Or rather, see how they define "contains 
the required APIs."

> Patches: Patch versions are *always* compatible, no checks required.
>
> Unless I've missed something, we should remove all uses of 
> svn_ver_check_list() and deprecate it.

You've missed a great deal. Go look at the compatibility checking code 
again, and see what it actually does.

-- Brane



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org