summaryrefslogtreecommitdiffstats
path: root/main/vlc
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-10-08 09:15:32 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-10-08 09:37:27 +0000
commit095bd63abc59e031ae31d67c5d473985a7077a29 (patch)
tree7e39f69668e2f37fa7947d35598b1b6f883d79d6 /main/vlc
parent635dd6fdec19d8ab43366db88531d59f5238f573 (diff)
downloadaports-095bd63abc59e031ae31d67c5d473985a7077a29.tar.bz2
aports-095bd63abc59e031ae31d67c5d473985a7077a29.tar.xz
main/vlc: workaround dlclose isse on x86_64
http://old.nabble.com/dlclose-segfaults-on-x86_64-td34518122.html
Diffstat (limited to 'main/vlc')
-rw-r--r--main/vlc/APKBUILD4
-rw-r--r--main/vlc/vlc-dlclose-workaround.patch20
2 files changed, 23 insertions, 1 deletions
diff --git a/main/vlc/APKBUILD b/main/vlc/APKBUILD
index 5b37bcd6c..4af30281f 100644
--- a/main/vlc/APKBUILD
+++ b/main/vlc/APKBUILD
@@ -3,7 +3,7 @@
pkgname=vlc
pkgver=2.0.3
_pkgver=${pkgver/_/-}
-pkgrel=1
+pkgrel=2
pkgdesc="A multi-platform MPEG, VCD/DVD, and DivX player"
pkgusers="vlc"
pkggroups="vlc"
@@ -74,6 +74,7 @@ source="http://download.videolan.org/pub/videolan/$pkgname/$_pkgver/$pkgname-$_p
uclibc-inhibit-spawn.patch
uclibc-no-xscreensaver.patch
uclibc3.patch
+ vlc-dlclose-workaround.patch
vlc.trigger
"
# uclibc-libcompat.patch
@@ -234,4 +235,5 @@ md5sums="a7e79565e3df07dcf9abc6cad3ac26bb vlc-2.0.3.tar.xz
28349b8239fdd6987fbe0ca2c758517f uclibc-inhibit-spawn.patch
b84c5a9121440b6a1dcf28792d783eb8 uclibc-no-xscreensaver.patch
94f11ec8394775018222781a0c875444 uclibc3.patch
+5aa45c7966b915801a0e449f56b6c454 vlc-dlclose-workaround.patch
350b30698eb784def7d19446eb1d6c81 vlc.trigger"
diff --git a/main/vlc/vlc-dlclose-workaround.patch b/main/vlc/vlc-dlclose-workaround.patch
new file mode 100644
index 000000000..44001c8c8
--- /dev/null
+++ b/main/vlc/vlc-dlclose-workaround.patch
@@ -0,0 +1,20 @@
+We have an issue with dlclose on uclibc on x86_64.
+For now we work around it by simply not dlcose our plugins.
+
+
+--- ./src/modules/bank.c.orig
++++ ./src/modules/bank.c
+@@ -484,11 +484,13 @@
+ assert (module->next == NULL);
+
+ /* Unload plugin until we really need it */
++#if 0
+ if (module->b_loaded && module->b_unloadable)
+ {
+ module_Unload (module->handle);
+ module->b_loaded = false;
+ }
++#endif
+
+ /* For now we force loading if the module's config contains
+ * callbacks or actions.