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

Re: The *.so files

From: Greg Stein <gstein_at_lyra.org>
Date: 2002-11-06 23:16:45 CET

On Wed, Nov 06, 2002 at 09:22:35PM +0000, Joe Orton wrote:
> On Wed, Nov 06, 2002 at 12:37:21PM -0800, Greg Stein wrote:
> > On Wed, Nov 06, 2002 at 07:31:50PM +0100, Oden Eriksson wrote:
> > > I have packaged subversion v0.14.5 r3578 for Mandrake Linux 9.0/Cooker, but
> > > stumbled upon an issue. The common practise in Mandrake Linux is to package
> > > the "*.so" files in a devel subpackage.
> >
> > Um. I suspect that you have that backwards. Typically, the regular package
> > has the *.so files, and -devel has the .a and .la files.
>
> A library libfoo.so goes in the -devel package since it's only needed
> when compiling against -lfoo, and is just a symlink to libfoo.x.y; just
> libfoo.so.x and libfoo.so.x.y go in the main package.

Gotcha. Somebody else pointed this out, too. I wasn't aware of the
convention. Thx.

> SVN treats ra_dav and ra_local as libraries, but really they are
> loadable modules - I think this is where the disconnect is happening.

They *can* be loadable modules. Normally, we just link them in. But if you
pass --enable-dso to ./configure, then it will stop linking them in. When
doing so, however, the DSO loader must be able to find them. I'm not sure
what the Linux rules are for that. I suspect the paths in ld.so.conf and/or
LD_LIBRARY_PATH.

How were the Mandrake packages set up? Do they use that configure switch?

[looking in packages/mandrake/ ...]

Ah. I see that it *is* used.

> For a loadable module, you always need the .so. (and can usually discard
> the .la and .a completely)

And since the switch *is* active, then yes: the .so will be needed.

> The loadable modules should really go in %{_libdir}/subversion/*.so,
> though you'd probably need to modify the ra loader to look in the right
> place.

Yah, sounds about right. Any ideas on how to get the system to "look in the
right place" ? It it simply a matter of passing an absolute path to the
loader?

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Nov 6 23:16:02 2002

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.