Re: x11/nvidia-driver incompatible with portmaster?

[ Available lists | Index of freebsd-x11 | Month of Jul 2011 | Week of 3 Jul 2011 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Stephen Montgomery-Smith <stephen@missouri.edu>
Date
3 Jul 2011 15:02:27
Subject
Re: x11/nvidia-driver incompatible with portmaster?
Message-ID
4E108481.8020108@missouri.edu

In reply to

[ Hide this part ]
On 07/03/2011 08:33 AM, b. f. wrote:
> On 7/3/11, b. f.<bf1783@googlemail.com> wrote:

>> 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;
>
> On second thought the renaming of these libraries is not very
> convenient, since they are built by nvidia, and not necessary if their
> mesa/xorg counterparts already have different names.

Another reason to stick to the first renaming scheme is that it will be
very easy to implement using pre-install and post-install, rather than
using patches to Makefiles.

pre-install deletes any existing symlinks libglx.so.1 (just in case the
Makefile complains that it cannot overwrite the symlink). post-install
renames libglx.so.1 to libglx-whatever.so.1. Then post-install runs the
create-gl-symlink.sh script that graphics/libGL has installed. The
create-gl-symlink.sh script is also executed by @exec and @unexec in
pkg-plist.

The create-gl-symlink.sh also deletes the symlinks if there is nothing
to link to, and this keeps tinderbox happy.

And then Kostik can easily overwrite these symlinks with his start-up
script.

Stephen


Elapsed time: 0.995 seconds