Fix nvidia-like ports, help needed

Baptiste Daroussin bapt at FreeBSD.org
Tue Feb 28 21:15:18 UTC 2012


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 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

Here is a patch to add support for includedir keyword to libmap.conf so that 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20120228/24aa7e9e/attachment.pgp


More information about the freebsd-ports mailing list