Fix nvidia-like ports, help needed

Ade Lovett ade at
Fri Feb 24 00:18:27 UTC 2012

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
> and adding:
> or something like that.

Going that route is likely to be messy given the current monolithic 

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.


More information about the freebsd-ports mailing list