[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#597864: libproxy0 not functional without libmozjs2d



Josselin Mouette <joss@debian.org> writes:
> Le mercredi 06 octobre 2010 à 08:12 +0200, Mike Hommey a écrit :
> > Does that mean libproxy will depend (as in Depends control field) on
> > webkit ? That's going to be a problem later, because iceweasel 4.0 may use
> > libproxy (I enabled it, but I'm not entirely sure I'll keep it that way).
>
> No. It doesn’t depend on libmozjs either, it uses whatever is available
> on the system if it has been built against it.

Well, that's the bug, right? ;)

It uses what it's been built against, *if* that thing is actually
available (installed)--but it's easy to get into a situation
where that JS library *isn't* available because it's *not* installed--
and it's hard to hard to figure out that that's the reason *why*
the automatic proxy setting isn't doing anything: there's no Depends,
there's no Recommends, there's not even a Suggests, and there's not
even anything in the README that would even suggest `if you need
automatic proxy configuration to work, then you need to install
this javascript-interpreter library'.

I had to trace out the dependencies in Epiphany just to find that
libproxy was probably where I really wanted to look, and then I had to
go rummaging around inside libproxy to find that PAC-files were handled
by a module, and `pacrunner_mozjs.so' looked like it was probably
that module; and when I looked at that module with ldd, I got:

    $ ldd /usr/lib/libproxy/0.3.1/modules/pacrunner_mozjs.so 
            linux-gate.so.1 =>  (0xb76f2000)
            libmozjs.so.2d => not found
            libplds4.so.0d => /usr/lib/libplds4.so.0d (0xb76d5000)
            libplc4.so.0d => /usr/lib/libplc4.so.0d (0xb76d0000)
            libnspr4.so.0d => /usr/lib/libnspr4.so.0d (0xb769c000)
            libproxy.so.0 => /usr/lib/libproxy.so.0 (0xb7695000)
            libpthread.so.0 => /lib/i686/cmov/libpthread.so.0 (0xb767c000)
            libm.so.6 => /lib/i686/cmov/libm.so.6 (0xb7656000)
            libdl.so.2 => /lib/i686/cmov/libdl.so.2 (0xb7651000)
            libc.so.6 => /lib/i686/cmov/libc.so.6 (0xb750b000)
            /lib/ld-linux.so.2 (0xb76f3000)


"libmozjs.so.2d => not found"? So then I went and found the package
that would provide that file, installed it, and everything 2 layers
up (like my web-browser) started working.


If we can't get a Depends, can we at least get a Recommends--or even
a Suggests?

Splitting the `pacrunner' module out into a separate package that Depends
on whatever it's linked against would be workable, too, I guess--
anything would be better than `find a developer who can read the source
and analyse the linkage'.

-- 
"Don't be afraid to ask (λf.((λx.xx) (λr.f(rr))))"


Reply to: