Primus package bug

Vincent Cheng vincentc1208 at gmail.com
Fri Jun 14 09:57:54 UTC 2013


Hi Anton,

On Thu, Jun 13, 2013 at 11:17 AM, Anton Fedorov <datacompboy at call2ru.com> wrote:
> Hello!
>
> Primus under jessie not working with:
> ===================
> primus: fatal: failed to load any of the libraries:
> /usr/$LIB/libGL.so.1:/usr/lib/$LIB/libGL.so.1:/usr/$LIB/mesa/libGL.so.1:/usr/lib/$LIB/mesa/libGL.so.1
>  /usr/$LIB/libGL.so.1: cannot open shared object file: No such file or directory
>  /usr/lib/$LIB/libGL.so.1: cannot open shared object file: No such file or
> directory
>  /usr/$LIB/mesa/libGL.so.1: cannot open shared object file: No such file or
> directory
>  /usr/lib/$LIB/mesa/libGL.so.1: cannot open shared object file: No such file or
> directory
> ===================
>
> Trouble is:
> open("/usr/lib64/libGL.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or
> directory)
>  open("/usr/lib/lib64/libGL.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file
> or directory)
>  open("/usr/lib64/mesa/libGL.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such
> file or directory)
>  open("/usr/lib/lib64/mesa/libGL.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such
> file or directory)
>
> So, it set incorrect $LIB.

Unfortunately, I can't reproduce this at all. What I find strange is
that the dynamic linker expands $LIB to "lib64" on your machine,
whereas (if I'm not mistaken) on Debian, it should expand to the
correct multiarch triplet for you (x86_64-linux-gnu).

> Need to fix debian/rules:
>
>  # Where to put the resulting library during build
> -BUILD_LIBDIR ?= lib
> +BUILD_LIBDIR ?= lib/$(DEB_HOST_MULTIARCH)

And that shouldn't "fix" this issue anyhow. BUILD_LIBDIR is only used
to specify where we place the library in the _build_ tree, so we (or
rather, dh_install) know where to look for it when we generate the
debs.

Regards,
Vincent



More information about the pkg-nvidia-devel mailing list