On Wed, Jun 19, 2013 at 11:21 AM, Vincent Cheng <vincentc1...@gmail.com> wrote: > On Tue, Jun 18, 2013 at 5:50 AM, Mathieu Malaterre <ma...@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 -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org