Fix nvidia-like ports, help needed

Baptiste Daroussin bapt at
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
> > and adding:
> >
> >
> >
> > 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

Any remarks?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url :

More information about the freebsd-ports mailing list