libvdpau: add patch from Frugalware to workaround issue in glibc's dlclose().

This commit is contained in:
Juan RP 2013-10-15 12:02:48 +02:00
parent 408cdb46fa
commit 6ca30be453
2 changed files with 20 additions and 3 deletions

View file

@ -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

View file

@ -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
}
}