From owner-freebsd-ports@FreeBSD.ORG Tue Feb 28 21:15:18 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 1B361106564A; Tue, 28 Feb 2012 21:15:18 +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 D9F238FC16; Tue, 28 Feb 2012 21:15:17 +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 q1SLFH9B039737; Tue, 28 Feb 2012 21:15:17 GMT (envelope-from bapt@FreeBSD.org) Received: (from bapt@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q1SLFH0A039735; Tue, 28 Feb 2012 21:15:17 GMT (envelope-from bapt@FreeBSD.org) X-Authentication-Warning: freefall.freebsd.org: bapt set sender to bapt@FreeBSD.org using -f Date: Tue, 28 Feb 2012 22:15:14 +0100 From: Baptiste Daroussin To: Ade Lovett Message-ID: <20120228211513.GD99283@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="hoZxPH4CaxYzWscb" 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: Tue, 28 Feb 2012 21:15:18 -0000 --hoZxPH4CaxYzWscb 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 Here is a patch to add support for includedir keyword to libmap.conf so tha= t we can add: includedir /usr/local/etc/libmap.d into libmap.conf and then nvidia driver could add a ${LOCALBASE}/etc/libmap.d/nvidia containing: libGL.so.1 libGL-nvidia.so.1 http://people.freebsd.org/~bapt/libmap-support-includedir.diff Any remarks? regards, Bapt --hoZxPH4CaxYzWscb Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (FreeBSD) iEYEARECAAYFAk9NQ+EACgkQ8kTtMUmk6EwwwgCcCE2xXxj6Nhtzm6oNJvQBqWD5 pNMAn0G9rp5Nus9mXX9sGPA80Aj5Sufk =VKwK -----END PGP SIGNATURE----- --hoZxPH4CaxYzWscb--