x11/nvidia-driver incompatible with portmaster?

b. f. bf1783 at googlemail.com
Sun Jul 3 12:45:51 UTC 2011


On 7/3/11, Kostik Belousov <kostikbel at gmail.com> wrote:
> On Sun, Jul 03, 2011 at 03:54:15AM +0000, b. f. wrote:
>> On 7/3/11, Stephen Montgomery-Smith <stephen at missouri.edu> wrote:
>> > On 07/02/2011 09:02 PM, Stephen Montgomery-Smith wrote:
>> >> On 07/02/2011 08:39 PM, b. f. wrote:
...
>
> That said, there is absolutely no need in any static linker tricks,
> esp. a heavy one like filters or linker scripts. A symlink named

What is the overhead of rtld filtering?

> libGL.so would be enough for the static linker, pointing to any
> of two libraries. And symlink libGL.so.1 would be also enough
> for dynamic linker.
>
> The real issue with xorg-server, mesa and nvidia driver is only
> the overwrite of extensions/libglx.so and lib/libGL.so.1. If
> this can be somewhat solved by the packaging system, that would
> be great. On my hybrid laptop I have to manually manage the
> said symlinks (actually, with the rc script that verifies
> the list of pci devices and arranges the symlinks).

So basically, you would prefer that we:

patch xorg-server so that it installs, e.g.,
${PREFIX}/lib/xorg/modules/extensions/libglx-xorg.so.1 instead of
${PREFIX}/lib/xorg/modules/extensions/libglx.so.1, and points the
symlink ${PREFIX}/lib/xorg/modules/extensions/libglx-xorg.so at the
former;

patch libGL so that it installs, e.g., ${PREFIX}/lib/libGL-mesa.so.1
instead of ${PREFIX}/lib/libGL.so.1, and points the symlink
${PREFIX}/lib/libGL.so at the former;

and patch nvidia-driver so that it installs, e.g.,
${PREFIX}/lib/xorg/modules/extensions/libglx-nvidia.so.1 instead of
${PREFIX}/lib/xorg/modules/extensions/libglx.so.1, and
${PREFIX}/lib/libGL-nvidia.so.1 instead of ${PREFIX}/lib/libGL.so.1;
and during installation it overwrites the
${PREFIX}/lib/xorg/modules/extensions/libglx-xorg.so and
${PREFIX}/lib/libGL.so symlinks, redirecting them to the corresponding
nvidia libraries; while during deinstallation it changes them to point
to the mesa/xorg libraries?

And corresponding redirection to handle the libtool archive file?

b.


More information about the freebsd-x11 mailing list