diff --git a/srcpkgs/libvdpau/patches/dlclose.patch b/srcpkgs/libvdpau/patches/dlclose.patch new file mode 100644 index 00000000000..d405d4d3b73 --- /dev/null +++ b/srcpkgs/libvdpau/patches/dlclose.patch @@ -0,0 +1,17 @@ +From Frugalware: + +* disable library destructor + it triggers a glibc bug where elf dynamically loaded libraries + are freed before the library constructor is ever called + +--- src/vdpau_wrapper.c 2013-01-24 18:55:06.000000000 -0600 ++++ src/vdpau_wrapper.c 2013-07-15 20:14:40.221679876 -0500 +@@ -47,7 +47,7 @@ + + #if defined(__GNUC__) + +-static void _vdp_close_driver(void) __attribute__((destructor)); ++static void _vdp_close_driver(void); + + #endif + diff --git a/srcpkgs/libvdpau/template b/srcpkgs/libvdpau/template index bc1ab861016..b87f2092ff7 100644 --- a/srcpkgs/libvdpau/template +++ b/srcpkgs/libvdpau/template @@ -1,7 +1,7 @@ # Template file for 'libvdpau' pkgname=libvdpau version=0.7 -revision=1 +revision=2 build_style=gnu-configure hostmakedepends="pkg-config" makedepends="dri2proto libX11-devel libXext-devel" @@ -17,7 +17,7 @@ post_install() { } libvdpau-devel_package() { - depends="libX11-devel libvdpau>=${version}" + depends="libX11-devel libvdpau>=${version}_${revision}" short_desc+=" - development files" pkg_install() { vmove usr/include @@ -28,6 +28,6 @@ libvdpau-devel_package() { libvdpau_package() { pkg_install() { - vmove usr + vmove all } }