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

2007-10-27 Thread Alex Kozlov
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.
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

[/usr/local/lib/xorg/modules/libwfb.so]
libm.so.3   libm.so.4
librpcsvc.so.2  librpcsvc.so.3


--
Adios
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


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

2007-10-27 Thread RW
On Sat, 27 Oct 2007 11:33:46 -0200
"Carlos A. M. dos Santos" <[EMAIL PROTECTED]> 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.

Personally I'd rather keep misc/compat5x than have the hassle of
maintaining libmap.conf
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


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

2007-10-27 Thread Carlos A. M. dos Santos
On 10/27/07, Carlos A. M. dos Santos <[EMAIL PROTECTED]> wrote:
> On 10/27/07, Alex Kozlov <[EMAIL PROTECTED]> 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.
> > 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
>
> If I specify the full path the mapping does not work. The X server
> still loades, but gives me the following message:
>
>  dlopen: Shared object "libm.so.3" not found, required by "libwfb.so"
>
> Additionally, I believe the we should not specify full paths in the
> mappings. If we do so, then we must provide them for both /usr/local
> (Xorg 7 and above) and for /usr/X11R6. This is because the user may
> still have applications linked  to libGL.so.1 with the argument "-R
> /usr/X11R6/lib" given to ld. libmap libmap doe not translate the path
> by means of the symbolic link /usr/X11R6.

... so my patch now becomes the one provided below. Extract it piping
this message to

 b64decode -o /dev/stdout | gzip -d > nvidia-driver.diff

CC to the port maintainer now. I suppose that he subscribes the list
but, well, just in case.

-- 
Carlos A. M. dos Santos

begin-base64 644 nvidia-driver.diff.gz
H4sIAOfaI0cAA61V227aQBB9xl8xouXJ+AYBGktUQHFSS9yEaZqqqtDaXsMqttfympui/HvHJg1R
IQmtIln24pk5Mz5nZvBZEIDir1JIeJoJladsoW0NQ4vXzGdE8VO2pqk2JHc0YCHde73iICmKch5U
achjcGgCRgv0mlnDqw41XW9Jsiy/mafkkAzGXga1FhiGaTRM42If3emA8qlRbYGM90vodCRQaeyz
QAI8sQA+3o+dG2vq2OPRA3xuQ1PX9XpdUgZ2b963Jtao78jtUqTWzY/3k/F05vTt6YMWMeFpHo8S
kjW2kux8680HtjNDz5Fl9fHcG3Yn7XJZklUaCvqyRwdBIhpnUH5eWMJFpiC2tzRBdeyBNZpJ/nna
5HQILblbKBEVgiyoyuIX+Tvl/LZmp6IK/bqrBbIO+qXZaJp68239TiI90xLb4EI3a82DloZebYKM
97peiClBxmHHkRXN5TzTQk58mqoejwMVrXKl8ozuSuUHXwEJBYeYUj8PJT4+lhQCHoZ8w+IFhCym
4oBKM08LmRuRpAA1jyCPXpQ+QHxj9+0ujBMaXw8Q0U1Jujt2/ImW64EquGr8OrbmWXNbvVR6Ol+c
kT5HfaTZCxbvjf73x+2VPF3FJnAR9r+T56Y08cTay+21ve/hRf1fqr1dvy7D7Xr4ZVS4vkJYkbax
r6M4N8+U44A+93cxiZj3zllm2ML7xiUuX1MgKcUW9/KhSneAG+AqpbTn9KGpboHE/qObSz2yEjSf
gCPIPV0MIZOUYzvhvLi7P3Tm+O6KhRkOTvoE3lC36nGtYAf5LBX++bAxUewD2LBsCd/t2df51dSy
MH7evZ60d1RUIcK9DmKFSfLAJVlTCcgiUe843NE0piFE3F/hH1C+gnGH+MU3sVhkJMRfVRAs9pCB
YgryqA0LQwl8ij3rA24qllUBC8+R93P+CPuEVxRX9umaIQ6mLqsAY6QpVaTf1wNzbSUHAAA=

___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


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

2007-10-27 Thread Jeremy Messenger
On Sat, 27 Oct 2007 08:33:46 -0500, Carlos A. M. dos Santos  
<[EMAIL PROTECTED]> 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.


I object, this is much worst than depend on misc/compat5x.

Cheers,
Mezz


--
[EMAIL PROTECTED]  -  [EMAIL PROTECTED]
FreeBSD GNOME Team  -  FreeBSD Multimedia Hat (ports, not src)
http://www.FreeBSD.org/gnome/  -  [EMAIL PROTECTED]
http://wiki.freebsd.org/multimedia  -  [EMAIL PROTECTED]
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


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

2007-10-28 Thread Alex Kozlov
On Sat, Oct 27, 2007 at 10:53:30PM -0200, Carlos A. M. dos Santos wrote:

> > > [/usr/local/lib/xorg/modules/libwfb.so]
> > > libm.so.3   libm.so.4
> > > librpcsvc.so.2  librpcsvc.so.3
> >
> > If I specify the full path the mapping does not work. The X server
> > still loades, but gives me the following message:
> >
> >  dlopen: Shared object "libm.so.3" not found, required by "libwfb.so"
Sorry. I use nvidia-driver-96xx, so I was not be able to test libwfb case.

> ... so my patch now becomes the one provided below. Extract it piping
> this message to
> 
>  b64decode -o /dev/stdout | gzip -d > nvidia-driver.diff
> 
> CC to the port maintainer now. I suppose that he subscribes the list
> but, well, just in case.
Also, I think that libmap trick is good for local hack, but must not be
applied by default in port. Print libmap suggestion from pre-everything
will be enough.


--
Adios
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


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

2007-10-28 Thread Carlos A. M. dos Santos
Hello,

I talked with some people and concluded that using misc/compat5x is a
matter of personal taste. It should not be the default choice. The
best approach is give the user the right to choose between using
libmap or not. So now my patch is the one shown below. Extract it
piping this message to

b64decode -o /dev/stdout | gzip -d > nvidia-driver.diff

Thanks to Alex Kozlov, RW (?), and Jeremy Messenger for their comments.

-- 
Carlos A. M. dos Santos

begin-base64 644 nvidia-driver.diff.gz
H4sIACf4JEcAA6VVa2/aShD9bP+KEbeRWhk/wIEkqF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isqAPmLJGrQ7eD3eOVydUI3TDEQeqaAeBi
c3Jd/QVlskqprwcAAA==

___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


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

2007-10-29 Thread Alexey Dokuchaev
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 <[EMAIL PROTECTED]> wrote:
> > On 10/27/07, Alex Kozlov <[EMAIL PROTECTED]> 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
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[EMAIL PROTECTED]"