Bug#712666: Info received (Bug#712666: primus: fatal: failed to load PRIMUS_LOAD_GLOBAL)

Mathieu Malaterre malat at debian.org
Wed Jun 19 09:28:19 UTC 2013


On Wed, Jun 19, 2013 at 11:21 AM, Vincent Cheng <vincentc1208 at gmail.com> wrote:
> On Tue, Jun 18, 2013 at 5:50 AM, Mathieu Malaterre <malat at debian.org> wrote:
>> I would say that d/control is incomplete, it should read:
>>
>> Package: primus-libs
>> Architecture: i386 amd64
>> Depends: ${shlibs:Depends}, ${misc:Depends}, libglapi-mesa
>>
>> Here is what i see:
>>
>> $ strings /usr/lib/primus/libGL.so.1 | grep glapi
>> libglapi.so.0
>>
>>
>> Comments ?
>
> Why does dpkg-shlibdeps not add libglapi-mesa as a dependency / how
> can I get dpkg-shlibdeps to do that? I'd much rather avoid hardcoding
> dependencies if at all possible.

Simply because the lib is never linked in. It is dlopen'ed:

$ grep -r PRIMUS_LOAD_GLOBAL *
libglfork.cpp:    needed_global(dlopen(getconf(PRIMUS_LOAD_GLOBAL),
RTLD_LAZY | RTLD_GLOBAL)),

dpkg-shlibdeps simply read the output of readelf -d /usr/lib/bla.so.
So in this case yes you have to explicitly add the Depends yourself
-IMHO-. Maybe there are other way to do it, but I do not know.

HTH



More information about the pkg-nvidia-devel mailing list