From owner-freebsd-ports@FreeBSD.ORG Thu Feb 23 19:56:35 2012 Return-Path: Delivered-To: ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3C6251065673; Thu, 23 Feb 2012 19:56:35 +0000 (UTC) (envelope-from jhein@symmetricom.com) Received: from duck.timing.com (duck.symmetricom.us [206.168.13.214]) by mx1.freebsd.org (Postfix) with ESMTP id F416A8FC08; Thu, 23 Feb 2012 19:56:34 +0000 (UTC) Received: from gromit.timing.com (gromit.timing.com [206.168.13.209]) by duck.timing.com (8.14.5/8.14.4) with ESMTP id q1NJuYj8090317; Thu, 23 Feb 2012 12:56:34 -0700 (MST) (envelope-from jhein@symmetricom.com) Received: from gromit.timing.com (localhost [127.0.0.1]) by gromit.timing.com (8.14.5/8.14.5) with ESMTP id q1NJuXep014132; Thu, 23 Feb 2012 12:56:33 -0700 (MST) (envelope-from jhein@gromit.timing.com) Received: (from jhein@localhost) by gromit.timing.com (8.14.5/8.14.5/Submit) id q1NJuMmF014129; Thu, 23 Feb 2012 12:56:22 -0700 (MST) (envelope-from jhein) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <20294.39398.620930.217619@gromit.timing.com> Date: Thu, 23 Feb 2012 12:56:22 -0700 From: John Hein To: Baptiste Daroussin In-Reply-To: References: <20120222222544.GA88092@azathoth.lan> <20293.31720.350021.74506@gromit.timing.com> <20120223013502.GA78308@FreeBSD.org> <20120223072132.GB88092@azathoth.lan> <20120223093421.Horde.oN2FMZjmRSRPRfoNKQ4BA-g@webmail.leidinger.net> X-Mailer: VM 8.2.0b-8.2.x-reddyuday.r1325 under 23.3.1 (i386-portbld-freebsd7.3) Cc: ports@FreeBSD.org, Alexander Leidinger , Alexey Dokuchaev , x11@FreeBSD.org Subject: Re: Fix nvidia-like ports, help needed X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Feb 2012 19:56:35 -0000 Baptiste Daroussin wrote at 11:28 +0000 on Feb 23, 2012: > On 23.02.2012 08:34, Alexander Leidinger wrote: > > Do you havea list of packages which overzrite something, respectively > > do you have a list of files which are overwriten? > > > > If we just talk about the nvidia lib, installing the mesa and nvidia > > ones into subdirectories and asking to add (or adding > > automatically/optionally) ldconfig_paths="$ldconfig_paths > > /usr/local/lib/-gl/" to rc.conf could be an option. > > Currently, no I don't have a list of packages that overwrite things, > anyway way I do really like this kind of solution, I don't know yet how > this can be automated, it really looks the right way. If the nvidia libGL can be dynamically linked with, say, a vnc server, and have it be a drop in replacement for the mesa libGL, then ldconfig_paths would be fine. If not, then those apps which need the mesa libGL would need to link with -rpath perhaps to point at the "right" libGL (or pass appropriate path info to those apps that might use dlopen(3)).