From owner-freebsd-ports@FreeBSD.ORG Fri Feb 24 12:25:30 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 3556C1065672; Fri, 24 Feb 2012 12:25:30 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id EFAFA8FC0C; Fri, 24 Feb 2012 12:25:29 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q1OCPT0k054724; Fri, 24 Feb 2012 12:25:29 GMT (envelope-from bapt@FreeBSD.org) Received: (from bapt@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q1OCPTlU054723; Fri, 24 Feb 2012 12:25:29 GMT (envelope-from bapt@FreeBSD.org) X-Authentication-Warning: freefall.freebsd.org: bapt set sender to bapt@FreeBSD.org using -f Date: Fri, 24 Feb 2012 13:25:25 +0100 From: Baptiste Daroussin To: Ade Lovett Message-ID: <20120224122524.GC14803@azathoth.lan> 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> <4F46D751.2090100@FreeBSD.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="TiqCXmo5T1hvSQQg" Content-Disposition: inline In-Reply-To: <4F46D751.2090100@FreeBSD.org> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-ports@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: Fri, 24 Feb 2012 12:25:30 -0000 --TiqCXmo5T1hvSQQg Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Feb 23, 2012 at 04:18:25PM -0800, Ade Lovett wrote: > On 2/23/2012 13:14, Baptiste Daroussin wrote: > > Another solution could be to add an entry (and drop it in deinstallatio= n 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. >=20 > Going that route is likely to be messy given the current monolithic=20 > /etc/libmap{,32}.conf >=20 > You'd most likely want ${LOCALBASE}/etc/libmap.conf.d/* (in a similar=20 > manner to etc/periodic, etc/rc.d and so on). Whether the code that=20 > currently handles libmap.conf is itself extended to use this directory=20 > structure is open for discussion. An alternate method could perhaps be= =20 > a 'genlibmap' command which takes /etc/libmap.conf and this directory=20 > structure to create a /var/run/libmap.conf which is actually used by rtld. >=20 > Having potentially multiple ports dinking _directly_ with=20 > /etc/libmap.conf will result in considerable foot shooting. >=20 > -aDe I agree with that, currently we can have LIBMAP env variable to append anto= her libmap.conf file to the /etc/libmap.conf, So we have two option, convert the LIBMAP variable to a PATH-like variable, (don't like this very much) or add an "includedir" keyword to libmap.conf t= hen the code will go thought the includedir and parse all the .conf files avail= able in that directory. the second seems pretty easy, I'll write a PoC for it as soon as I can regards, Bapt --TiqCXmo5T1hvSQQg Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (FreeBSD) iEYEARECAAYFAk9HgbQACgkQ8kTtMUmk6ExP1gCgsPSkcOH6T8+E+mhOr6yY3cp2 s2gAn1GqGhBOL2yX1L+VT8+Mn3H4mzOa =qE/u -----END PGP SIGNATURE----- --TiqCXmo5T1hvSQQg--