[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[PATCH] Load .so.0 not .so

From: Ben Reser <ben_at_reser.org>
Date: 2003-12-24 05:15:25 CET

This is currently creating an icky problem for me on Mandrake 9.2 and
newer. .so files that are symlinks are considered development files and
automatically cause the package to provide devel(libfoo-MAJOR) and
automatically require a similar dependency on every library that they
depend upon.

If we use the library naming that APR is using (see the Library Naming
section of http://apr.apache.org/versioning.html) then the first integer
after the .so will always be 0. Given that we're currently naming libs:
libsvn_foo-1.so.0.0.0 it seems that we are indeed following this

If this could be applied to the 1.0-stabilization it would be make a
very happy camper.

 .so symlinks should only be development files amd shouldn't be required
at runtime. Assuming we follow APR library versioning conventions we be
loading .so.0 instead of .so.

* subversion/libsvn_ra/ra_loader.c
  (load_ra_module): Try to load libsvn_ra_foo-MAJOR.so.0
    instead of libsvn_ra_foo-MAJOR.so

Index: subversion/libsvn_ra/ra_loader.c
--- subversion/libsvn_ra/ra_loader.c (revision 8075)
+++ subversion/libsvn_ra/ra_loader.c (working copy)
@@ -97,7 +97,7 @@
     apr_status_t status;
     /* ### fix the .so part */
- libname = apr_psprintf (pool, "libsvn_ra_%s-%d.so",
+ libname = apr_psprintf (pool, "libsvn_ra_%s-%d.so.0",
                             ra_name, SVN_VER_LIBRARY);
     funcname = apr_psprintf (pool, "svn_ra_%s_init", ra_name);

Ben Reser <ben@reser.org>
"Conscience is the inner voice which warns us somebody may be looking."
- H.L. Mencken
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Dec 24 05:16:01 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.