Date: Fri, 24 Feb 2012 13:25:25 +0100 From: Baptiste Daroussin <bapt@FreeBSD.org> To: Ade Lovett <ade@FreeBSD.org> Cc: freebsd-ports@FreeBSD.org Subject: Re: Fix nvidia-like ports, help needed Message-ID: <20120224122524.GC14803@azathoth.lan> In-Reply-To: <4F46D751.2090100@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> <d0ee88b5486535475f0c1c4bf5ecea55@etoilebsd.net> <20294.39398.620930.217619@gromit.timing.com> <20120223211406.GA14803@azathoth.lan> <4F46D751.2090100@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120224122524.GC14803>