x11/nvidia-driver incompatible with portmaster?
Stephen Montgomery-Smith
stephen at missouri.edu
Sun Jul 3 15:02:27 UTC 2011
On 07/03/2011 08:33 AM, b. f. wrote:
> On 7/3/11, b. f.<bf1783 at 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
More information about the freebsd-x11
mailing list