"Kevin Coffman" <[EMAIL PROTECTED]> writes:
> On Fri, Aug 1, 2008 at 9:41 AM, Paul Collins <[EMAIL PROTECTED]> wrote:
>> "Kevin Coffman" <[EMAIL PROTECTED]> writes:
>>
>>> Did you run ldconfig?  I was trying to find the right thing to force
>>> that, but from what I saw, when you install in /usr/local/lib, libtool
>>> knows better.  If anyone has the answer on that, let me know.
>>
>> The convention on Debian seems to be to install plugins as
>> /usr/lib/${packagename}/${plugin}.so and dlopen them with an absolute path.
>
> OK, I'll update the code and put out a -0.22 ASAP, but it might not be
> for a few days.

Having had some sleep, I realized a quicker fix is to just change the
dlopen calls to do e.g. dlopen("libfoo.so.0", ...).  This would avoid
any tussling with libtool and the autogar, which is always a plus.

I've tried that out here and it works nicely.  Patch below.

> BTW, this is the kind of comments I was looking for since putting the
> beta out in April, but received none.  I guess I was asking in the
> wrong places.  :-/

You may have to just be bold and trick people into testing your betas by
calling them releases.  I'm happy to complain about anything that ends
up in Debian unstable, but I tend not to grab stuff from upstream much.


--- libnfsidmap-0.21/libnfsidmap.c~     2008-08-02 10:52:00.289845221 +1200
+++ libnfsidmap-0.21/libnfsidmap.c      2008-08-02 10:47:50.647889312 +1200
@@ -101,7 +101,7 @@
        char plgname[128];
        int ret = 0;
 
-       snprintf(plgname, sizeof(plgname), "%s%s.so", PLUGIN_PREFIX, method);
+       snprintf(plgname, sizeof(plgname), "%s%s.so.0", PLUGIN_PREFIX, method);
 
        dl = dlopen(plgname, RTLD_NOW | RTLD_LOCAL);
        if (dl == NULL) {


-- 
Paul Collins
Wellington, New Zealand

Dag vijandelijk luchtschip de huismeester is dood



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to