From owner-freebsd-x11@FreeBSD.ORG Sun Jul 3 15:02:27 2011 Return-Path: Delivered-To: freebsd-x11@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 03F30106564A for ; Sun, 3 Jul 2011 15:02:27 +0000 (UTC) (envelope-from stephen@missouri.edu) Received: from wilberforce.math.missouri.edu (wilberforce.math.missouri.edu [128.206.184.213]) by mx1.freebsd.org (Postfix) with ESMTP id BCC5E8FC0A for ; Sun, 3 Jul 2011 15:02:26 +0000 (UTC) Received: from [127.0.0.1] (wilberforce.math.missouri.edu [128.206.184.213]) by wilberforce.math.missouri.edu (8.14.4/8.14.4) with ESMTP id p63F2P2R062923; Sun, 3 Jul 2011 10:02:25 -0500 (CDT) (envelope-from stephen@missouri.edu) Message-ID: <4E108481.8020108@missouri.edu> Date: Sun, 03 Jul 2011 10:02:25 -0500 From: Stephen Montgomery-Smith User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.17) Gecko/20110516 Thunderbird/3.1.10 MIME-Version: 1.0 To: "bf1783@gmail.com" References: <4E0FCDD1.7050809@missouri.edu> <4E0FD8DC.20700@missouri.edu> <20110703114104.GK48734@deviant.kiev.zoral.com.ua> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: "freebsd-x11@FreeBSD.org" , "b. f." Subject: Re: x11/nvidia-driver incompatible with portmaster? X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Jul 2011 15:02:27 -0000 On 07/03/2011 08:33 AM, b. f. wrote: > On 7/3/11, b. f. 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