[Lunar-commits] <moonbase> libvdpau: wrapper for VDPAU

Zbigniew Luszpinski zbiggy at o2.pl
Sun Sep 20 18:07:56 CEST 2009


> On Saturday 19 September 2009 4:25:34 pm Zbigniew Luszpinski wrote:
> > commit 33a9bc6acbe27c1dcc9fb076bf0d5f3cecc79a3d
> > Author: Zbigniew Luszpinski <zbiggy at lunar-linux.org>
> > Date:   Sat Sep 19 22:25:34 2009 +0200
> > 
> >     libvdpau: wrapper for VDPAU
> > ---
> 
> > @@ -0,0 +1,53 @@
> > +          MODULE=libvdpau
> > +         VERSION=0.2
> > +          SOURCE=$MODULE-$VERSION.tar.bz2
> > +      SOURCE_URL=http://cgit.freedesktop.org/~aplattner/$MODULE/snapshot
> > +      SOURCE_VFY=sha1:03aed8e3f13c3040d0161ef3e685a65bb364489d
> > +        WEB_SITE=http://cgit.freedesktop.org/~aplattner/$MODULE
> > +         ENTERED=20090919
> > +         UPDATED=20090919
> > +           SHORT="VDPAU wrapper library"
> > +
> > 
> libvdpau over writes /usr/include/vdpau/vdpau.h from NVIDIA-beta. How is this 
> conflict to be handled?
> 
> 

libvdpau is fully open source, vendor independent, license free library plus headers.
Nvidia pulls out VDPAU from driver package to external source package on X website to
encourage Intel and ATI/AMD to use it in their products.
(S3 already uses VDPAU in Chrome 500 series chipset driver).
As soon as distro packagers will package libvdpau as separate package VDPAU libraries 
and headers will be removed from Nvidia driver package.

Because current libvdpau package is equal to 190.32 driver libvdpau to resolve file conflict
I modified NVIDIA-beta installer (not commited yet - have bugs) to depend on libvdpau.
Future NVIDIA-beta will not install the following files/dir anymore:
/usr/lib/libvdpau.so*
/usr/lib/libvdpau_trace.so*
/usr/include/vdpau
because they are replaced by open source libvdpau with equally the same code.

Another file not vdpau connected also will be removed if module_installed is not XOrg6:
/usr/lib/modules/libnvidia-wfb.so*
because this is hacked generic library for xorg who has not libwfb.so library (we have).

Another feature of future NVIDIA-beta module will be removal of binary, precompiled files:
  rm -f nvidia-installer
  rm -f usr/bin/mkprecompiled &&
  rm -f usr/share/man/man1/nvidia-installer.1.gz &&
  rm -f usr/bin/nvidia-settings &&                 
  rm -f usr/share/man/man1/nvidia-settings.1.gz && 
  rm -f usr/bin/nvidia-xconfig &&                  
  rm -f usr/share/man/man1/nvidia-xconfig.1.gz &&  
  rm -f usr/bin/nvidia-settings/nvidia-settings && 
  rm -f usr/X11R6/lib/modules/libnvidia-wfb.so* && 
  rm -f usr/lib/libvdpau.so.190.32 &&              
  rm -f usr/lib/libvdpau_trace.so.190.32 &&        
  rm -rf usr/include/vdpau &&                
and to replace them with the same files but compiled from source packages.
Nvidia provided open source packages so we will have the same files
but compiled on Lunar and for Lunar. Especially I'm happy about nvidia-installer
- thanks to this installation process of Nvidia module (and *-legacy, *-old) will be under
our control :)

BTW I have xine-vdpau and mplayer-vdpau modules in zlocal. xine is almost ready, mplayer needs some work.
They will be added soon to moonbase (mplayer a little bit later).

have a nice day,
Zbigniew Luszpinski


More information about the Lunar-dev mailing list