libvdpau: add patch from Frugalware to workaround issue in glibc's dlclose().
This commit is contained in:
parent
408cdb46fa
commit
6ca30be453
17
srcpkgs/libvdpau/patches/dlclose.patch
Normal file
17
srcpkgs/libvdpau/patches/dlclose.patch
Normal 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
|
||||||
|
|
@ -1,7 +1,7 @@
|
|||||||
# Template file for 'libvdpau'
|
# Template file for 'libvdpau'
|
||||||
pkgname=libvdpau
|
pkgname=libvdpau
|
||||||
version=0.7
|
version=0.7
|
||||||
revision=1
|
revision=2
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
hostmakedepends="pkg-config"
|
hostmakedepends="pkg-config"
|
||||||
makedepends="dri2proto libX11-devel libXext-devel"
|
makedepends="dri2proto libX11-devel libXext-devel"
|
||||||
@ -17,7 +17,7 @@ post_install() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
libvdpau-devel_package() {
|
libvdpau-devel_package() {
|
||||||
depends="libX11-devel libvdpau>=${version}"
|
depends="libX11-devel libvdpau>=${version}_${revision}"
|
||||||
short_desc+=" - development files"
|
short_desc+=" - development files"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/include
|
vmove usr/include
|
||||||
@ -28,6 +28,6 @@ libvdpau-devel_package() {
|
|||||||
|
|
||||||
libvdpau_package() {
|
libvdpau_package() {
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr
|
vmove all
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user