From owner-freebsd-ports@FreeBSD.ORG Fri Feb 24 00:18:27 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4327E10656A6 for ; Fri, 24 Feb 2012 00:18:27 +0000 (UTC) (envelope-from ade@FreeBSD.org) Received: from panix.lovett.com (panix.lovett.com [166.84.7.128]) by mx1.freebsd.org (Postfix) with ESMTP id 187F58FC1C for ; Fri, 24 Feb 2012 00:18:26 +0000 (UTC) Received: from nat-dip4.cfw-a-gci.corp.yahoo.com ([209.131.62.113] helo=[10.72.180.251]) by panix.lovett.com with esmtpa (Exim 4.77 (FreeBSD)) (envelope-from ) id 1S0irh-000268-TJ for freebsd-ports@freebsd.org; Fri, 24 Feb 2012 00:18:26 +0000 Message-ID: <4F46D751.2090100@FreeBSD.org> Date: Thu, 23 Feb 2012 16:18:25 -0800 From: Ade Lovett User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0.1) Gecko/20120208 Thunderbird/10.0.1 MIME-Version: 1.0 To: freebsd-ports@freebsd.org 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> <20294.39398.620930.217619@gromit.timing.com> <20120223211406.GA14803@azathoth.lan> In-Reply-To: <20120223211406.GA14803@azathoth.lan> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: Fri, 24 Feb 2012 00:18:27 -0000 On 2/23/2012 13:14, Baptiste Daroussin wrote: > Another solution could be to add an entry (and drop it in deinstallation to > libmap.conf) when installing the nvidia driver, in that case installing it ad > libGL-nvidia.so.1 and adding: > > libGL.so.1 libGL-nvidia.so.1 > > or something like that. Going that route is likely to be messy given the current monolithic /etc/libmap{,32}.conf You'd most likely want ${LOCALBASE}/etc/libmap.conf.d/* (in a similar manner to etc/periodic, etc/rc.d and so on). Whether the code that currently handles libmap.conf is itself extended to use this directory structure is open for discussion. An alternate method could perhaps be a 'genlibmap' command which takes /etc/libmap.conf and this directory structure to create a /var/run/libmap.conf which is actually used by rtld. Having potentially multiple ports dinking _directly_ with /etc/libmap.conf will result in considerable foot shooting. -aDe