Date: Sun, 03 Jul 2011 10:02:25 -0500 From: Stephen Montgomery-Smith <stephen@missouri.edu> To: "bf1783@gmail.com" <bf1783@gmail.com> Cc: "freebsd-x11@FreeBSD.org" <freebsd-x11@FreeBSD.org>, "b. f." <bf1783@googlemail.com> Subject: Re: x11/nvidia-driver incompatible with portmaster? Message-ID: <4E108481.8020108@missouri.edu> In-Reply-To: <CAGFTUwMYV%2B6YBKjyjEY6_0fY_WX2Q_PQR10HPAGGeMwRFTR9FA@mail.gmail.com> References: <CAGFTUwMPV9Tge6%2BGZO879KD7dh6Sr6%2BfPGK97SGvRndBitMTjg@mail.gmail.com> <4E0FCDD1.7050809@missouri.edu> <4E0FD8DC.20700@missouri.edu> <CAGFTUwM-c4WvkX01iuDh4kWcjX8kLKv9Gm1297orPMgNyV_1Cg@mail.gmail.com> <20110703114104.GK48734@deviant.kiev.zoral.com.ua> <CAGFTUwM2VMBsWmxQ70PkNcDfPb_JOBUw7N1wZOVsXfPPSQic1g@mail.gmail.com> <CAGFTUwMYV%2B6YBKjyjEY6_0fY_WX2Q_PQR10HPAGGeMwRFTR9FA@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4E108481.8020108>
