Proposition: make x11/nvidia-driver independent of misc/compat5x

Alexey Dokuchaev danfe at FreeBSD.org
Mon Oct 29 01:47:46 PDT 2007


On Sat, Oct 27, 2007 at 10:53:30PM -0200, Carlos A. M. dos Santos wrote:
> On 10/27/07, Carlos A. M. dos Santos <unixmania at gmail.com> wrote:
> > On 10/27/07, Alex Kozlov <spam at rm-rf.kiev.ua> wrote:
> > > On Sat, Oct 27, 2007 at 11:33:46AM -0200, Carlos A. M. dos Santos wrote:
> > > > Hello,
> > > >
> > > > Using the patch below it is possible to make x11/nvidia-driver
> > > > independent of misc/compat5x, by means of some library mapping. I did
> > > > this successfuly on 6.x but still did not test on 7.x. I would like to
> > > > hear some comments before submitting a PR with a change request.

What is the problem using compat5x in the first place?

> > > I think this is more correct variant:
> > >
> > > $cat /etc/libmap.conf
> > > #nvidia-driver
> > > [/usr/local/lib/libGL.so.1]
> > > libm.so.3       libm.so.4
> > >
> > > [/usr/local/lib/libXvMCNVIDIA.so.1]
> > > libc.so.5       libc.so.6
> > >
> > > [/usr/local/lib/libXvMCNVIDIA_dynamic.so.1]
> > > libc.so.5       libc.so.6
> > >
> > > [/usr/local/lib/libnvidia-cfg.so.1]
> > > libm.so.3       libm.so.4
> >
> > Ah, I forgot that one. Good catch.
> >
> > > [/usr/local/lib/xorg/modules/libwfb.so]
> > > libm.so.3       libm.so.4
> > > librpcsvc.so.2  librpcsvc.so.3

That's potentially unsafe to put next .so version of library when the
code expects previous one.  It *may* work, but be prepared for all sorts
of incompatibilities and ABI breakage.

./danfe


More information about the freebsd-ports mailing list