summaryrefslogtreecommitdiff
path: root/package/vlc
diff options
context:
space:
mode:
authorWaldemar Brodkorb <mail@waldemar-brodkorb.de>2012-07-27 10:45:02 +0200
committerWaldemar Brodkorb <mail@waldemar-brodkorb.de>2012-07-27 10:45:02 +0200
commit42dd254f5937274f164a5a7c5fb3c1f80e38e7af (patch)
tree9d2f1aa0333e04af8493d6a5f533b6e243bf5d2b /package/vlc
parent7f0a66667a815bb8e28b4c8b93666b92a667b485 (diff)
full build on Darwin fixes
Diffstat (limited to 'package/vlc')
-rw-r--r--package/vlc/Makefile15
-rw-r--r--package/vlc/patches/patch-configure20
-rw-r--r--package/vlc/patches/patch-modules_misc_Makefile_in155
-rw-r--r--package/vlc/patches/patch-modules_misc_inhibit_xdg_c10
-rw-r--r--package/vlc/patches/patch-modules_misc_inhibit_xscreensaver_c10
-rw-r--r--package/vlc/patches/patch-src_misc_linux_specific_c19
-rw-r--r--package/vlc/patches/patch-src_posix_linux_specific_c30
7 files changed, 79 insertions, 180 deletions
diff --git a/package/vlc/Makefile b/package/vlc/Makefile
index 2fe37437a..875487711 100644
--- a/package/vlc/Makefile
+++ b/package/vlc/Makefile
@@ -4,35 +4,38 @@
include $(TOPDIR)/rules.mk
PKG_NAME:= vlc
-PKG_VERSION:= 1.1.11
-PKG_RELEASE:= 2
-PKG_MD5SUM:= a64846d6f21ea179ae8e8bfb6f9447fe
+PKG_VERSION:= 2.0.3
+PKG_RELEASE:= 1
+PKG_MD5SUM:= a7e79565e3df07dcf9abc6cad3ac26bb
PKG_DESCR:= Media Player
PKG_SECTION:= multimedia
PKG_BUILDDEP:= ffmpeg xcb-util libtheora libgcrypt libmad
PKG_DEPENDS:= libffmpeg xcb-util libtheora libgcrypt
PKG_URL:= http://www.videolan.org/vlc/
-PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=vlc/1.1.11/}
+PKG_SITES:= http://download.videolan.org/pub/videolan/vlc/2.0.3/
PKG_ARCH_DEPENDS:= !cris !avr32
-DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
+DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.xz
include $(TOPDIR)/mk/package.mk
$(eval $(call PKG_template,VLC,vlc,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+TARGET_CFLAGS+= -fPIC
+CONFIGURE_ENV+= ac_cv_func_sched_getaffinity=no
CONFIGURE_ARGS+= --disable-lua \
--disable-dbus \
--disable-a52 \
--disable-fribidi \
--disable-qt4 \
--disable-skins2 \
- --disable-remoteosd \
--disable-dvdnav \
--disable-glx \
--disable-libxml2 \
--disable-smb \
+ --disable-xcb \
+ --without-kde-solid \
--enable-libgcrypt \
--enable-mad \
--enable-theora
diff --git a/package/vlc/patches/patch-configure b/package/vlc/patches/patch-configure
new file mode 100644
index 000000000..0989f6776
--- /dev/null
+++ b/package/vlc/patches/patch-configure
@@ -0,0 +1,20 @@
+--- vlc-2.0.3.orig/configure 2012-07-04 17:43:18.000000000 +0200
++++ vlc-2.0.3/configure 2012-07-26 16:16:15.000000000 +0200
+@@ -24739,7 +24739,7 @@ fi
+ LIBS="${LIBS_save}"
+
+
+- for a in all extra sign-compare undef pointer-arith bad-function-cast write-strings missing-prototypes volatile-register-var error-implicit-function-declaration; do
++ for a in all extra sign-compare undef pointer-arith bad-function-cast write-strings missing-prototypes volatile-register-var; do
+
+
+ CFLAGS_save="${CFLAGS}"
+@@ -46952,7 +46952,7 @@ fi
+
+
+ VERSION_MESSAGE="${VERSION} ${CODENAME}"
+-COPYRIGHT_MESSAGE="Copyright © ${COPYRIGHT_YEARS} VLC authors and VideoLAN"
++COPYRIGHT_MESSAGE="Copyright ${COPYRIGHT_YEARS} VLC authors and VideoLAN"
+
+ cat >>confdefs.h <<_ACEOF
+ #define VERSION_MESSAGE "${VERSION_MESSAGE}"
diff --git a/package/vlc/patches/patch-modules_misc_Makefile_in b/package/vlc/patches/patch-modules_misc_Makefile_in
deleted file mode 100644
index a2670d93f..000000000
--- a/package/vlc/patches/patch-modules_misc_Makefile_in
+++ /dev/null
@@ -1,155 +0,0 @@
---- vlc-1.1.11.orig/modules/misc/Makefile.in 2011-07-14 13:28:46.000000000 +0200
-+++ vlc-1.1.11/modules/misc/Makefile.in 2011-09-15 13:17:03.867989779 +0200
-@@ -205,26 +205,6 @@ libwin32text_plugin_la_LINK = $(LIBTOOL)
- $(libwin32text_plugin_la_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
- $(LDFLAGS) -o $@
- @HAVE_WINCE_TRUE@am_libwin32text_plugin_la_rpath = -rpath $(libvlcdir)
--am__objects_12 = libxdg_screensaver_plugin_la-xdg.lo
--am_libxdg_screensaver_plugin_la_OBJECTS = $(am__objects_12)
--nodist_libxdg_screensaver_plugin_la_OBJECTS =
--libxdg_screensaver_plugin_la_OBJECTS = \
-- $(am_libxdg_screensaver_plugin_la_OBJECTS) \
-- $(nodist_libxdg_screensaver_plugin_la_OBJECTS)
--libxdg_screensaver_plugin_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \
-- $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \
-- $(libxdg_screensaver_plugin_la_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
-- $(LDFLAGS) -o $@
--am__objects_13 = libxscreensaver_plugin_la-xscreensaver.lo
--am_libxscreensaver_plugin_la_OBJECTS = $(am__objects_13)
--nodist_libxscreensaver_plugin_la_OBJECTS =
--libxscreensaver_plugin_la_OBJECTS = \
-- $(am_libxscreensaver_plugin_la_OBJECTS) \
-- $(nodist_libxscreensaver_plugin_la_OBJECTS)
--libxscreensaver_plugin_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \
-- $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \
-- $(libxscreensaver_plugin_la_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
-- $(LDFLAGS) -o $@
- DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
- depcomp = $(SHELL) $(top_srcdir)/autotools/depcomp
- am__depfiles_maybe = depfiles
-@@ -272,10 +252,6 @@ SOURCES = $(libaudioscrobbler_plugin_la_
- $(nodist_libvod_rtsp_plugin_la_SOURCES) \
- $(libwin32text_plugin_la_SOURCES) \
- $(nodist_libwin32text_plugin_la_SOURCES) \
-- $(libxdg_screensaver_plugin_la_SOURCES) \
-- $(nodist_libxdg_screensaver_plugin_la_SOURCES) \
-- $(libxscreensaver_plugin_la_SOURCES) \
-- $(nodist_libxscreensaver_plugin_la_SOURCES)
- DIST_SOURCES = $(libaudioscrobbler_plugin_la_SOURCES) \
- $(libfreetype_plugin_la_SOURCES) \
- $(libgnutls_plugin_la_SOURCES) $(libinhibit_plugin_la_SOURCES) \
-@@ -284,9 +260,7 @@ DIST_SOURCES = $(libaudioscrobbler_plugi
- $(libquartztext_plugin_la_SOURCES) \
- $(libsqlite_plugin_la_SOURCES) $(libsvg_plugin_la_SOURCES) \
- $(libvod_rtsp_plugin_la_SOURCES) \
-- $(libwin32text_plugin_la_SOURCES) \
-- $(libxdg_screensaver_plugin_la_SOURCES) \
-- $(libxscreensaver_plugin_la_SOURCES)
-+ $(libwin32text_plugin_la_SOURCES)
- RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
- html-recursive info-recursive install-data-recursive \
- install-dvi-recursive install-exec-recursive \
-@@ -620,7 +594,6 @@ LTLIBxcb_xv = @LTLIBxcb_xv@
- LTLIBxdg_screensaver = @LTLIBxdg_screensaver@
- LTLIBxml = @LTLIBxml@
- LTLIBxosd = @LTLIBxosd@
--LTLIBxscreensaver = @LTLIBxscreensaver@
- LTLIBzip = @LTLIBzip@
- LTLIBzvbi = @LTLIBzvbi@
- LUAC = @LUAC@
-@@ -834,13 +807,12 @@ vlcdatadir = @vlcdatadir@
- vlclibdir = @vlclibdir@
- basedir = misc
- dir = misc
--mods = audioscrobbler freetype gnutls inhibit logger osso_screensaver quartztext sqlite svg vod_rtsp win32text xdg_screensaver xscreensaver
-+mods = audioscrobbler freetype gnutls inhibit logger osso_screensaver quartztext sqlite svg vod_rtsp win32text
- libvlc_LTLIBRARIES = $(LTLIBfreetype) $(LTLIBgnutls) $(LTLIBinhibit) \
- $(LTLIBosso_screensaver) $(LTLIBsqlite) $(LTLIBsvg) \
-- $(LTLIBxdg_screensaver) $(LTLIBxscreensaver) \
- libaudioscrobbler_plugin.la liblogger_plugin.la \
- $(am__append_2) $(am__append_3) $(am__append_4)
--EXTRA_LTLIBRARIES = libfreetype_plugin.la libgnutls_plugin.la libinhibit_plugin.la libosso_screensaver_plugin.la libsqlite_plugin.la libsvg_plugin.la libxdg_screensaver_plugin.la libxscreensaver_plugin.la
-+EXTRA_LTLIBRARIES = libfreetype_plugin.la libgnutls_plugin.la libinhibit_plugin.la libosso_screensaver_plugin.la libsqlite_plugin.la libsvg_plugin.la
- NULL =
- SUFFIXES =
- libvlcdir = $(vlclibdir)/plugins/$(basedir)
-@@ -876,8 +848,6 @@ SOURCES_svg = svg.c
- SOURCES_audioscrobbler = audioscrobbler.c
- SOURCES_inhibit = inhibit.c
- SOURCES_sqlite = sqlite.c
--SOURCES_xscreensaver = inhibit/xscreensaver.c
--SOURCES_xdg_screensaver = inhibit/xdg.c
- SOURCES_osso_screensaver = inhibit/osso.c
-
- # The audioscrobbler plugin
-@@ -1001,27 +971,6 @@ libwin32text_plugin_la_OBJCFLAGS = $(AM_
- libwin32text_plugin_la_LIBADD = $(AM_LIBADD)
- libwin32text_plugin_la_DEPENDENCIES = $(top_srcdir)/src/libvlccore.sym
-
--# The xdg_screensaver plugin
--libxdg_screensaver_plugin_la_SOURCES = $(SOURCES_xdg_screensaver)
--nodist_libxdg_screensaver_plugin_la_SOURCES = $(nodist_SOURCES_xdg_screensaver)
--# Force per-target objects:
--libxdg_screensaver_plugin_la_CFLAGS = $(AM_CFLAGS)
--libxdg_screensaver_plugin_la_CXXFLAGS = $(AM_CXXFLAGS)
--libxdg_screensaver_plugin_la_OBJCFLAGS = $(AM_OBJCFLAGS)
--# Set LIBADD and DEPENDENCIES manually:
--libxdg_screensaver_plugin_la_LIBADD = $(AM_LIBADD)
--libxdg_screensaver_plugin_la_DEPENDENCIES = $(top_srcdir)/src/libvlccore.sym
--
--# The xscreensaver plugin
--libxscreensaver_plugin_la_SOURCES = $(SOURCES_xscreensaver)
--nodist_libxscreensaver_plugin_la_SOURCES = $(nodist_SOURCES_xscreensaver)
--# Force per-target objects:
--libxscreensaver_plugin_la_CFLAGS = $(AM_CFLAGS)
--libxscreensaver_plugin_la_CXXFLAGS = $(AM_CXXFLAGS)
--libxscreensaver_plugin_la_OBJCFLAGS = $(AM_OBJCFLAGS)
--# Set LIBADD and DEPENDENCIES manually:
--libxscreensaver_plugin_la_LIBADD = $(AM_LIBADD)
--libxscreensaver_plugin_la_DEPENDENCIES = $(top_srcdir)/src/libvlccore.sym
- all: $(BUILT_SOURCES)
- $(MAKE) $(AM_MAKEFLAGS) all-recursive
-
-@@ -1110,10 +1059,6 @@ libvod_rtsp_plugin.la: $(libvod_rtsp_plu
- $(AM_V_CCLD)$(libvod_rtsp_plugin_la_LINK) $(am_libvod_rtsp_plugin_la_rpath) $(libvod_rtsp_plugin_la_OBJECTS) $(libvod_rtsp_plugin_la_LIBADD) $(LIBS)
- libwin32text_plugin.la: $(libwin32text_plugin_la_OBJECTS) $(libwin32text_plugin_la_DEPENDENCIES)
- $(AM_V_CCLD)$(libwin32text_plugin_la_LINK) $(am_libwin32text_plugin_la_rpath) $(libwin32text_plugin_la_OBJECTS) $(libwin32text_plugin_la_LIBADD) $(LIBS)
--libxdg_screensaver_plugin.la: $(libxdg_screensaver_plugin_la_OBJECTS) $(libxdg_screensaver_plugin_la_DEPENDENCIES)
-- $(AM_V_CCLD)$(libxdg_screensaver_plugin_la_LINK) $(libxdg_screensaver_plugin_la_OBJECTS) $(libxdg_screensaver_plugin_la_LIBADD) $(LIBS)
--libxscreensaver_plugin.la: $(libxscreensaver_plugin_la_OBJECTS) $(libxscreensaver_plugin_la_DEPENDENCIES)
-- $(AM_V_CCLD)$(libxscreensaver_plugin_la_LINK) $(libxscreensaver_plugin_la_OBJECTS) $(libxscreensaver_plugin_la_LIBADD) $(LIBS)
-
- mostlyclean-compile:
- -rm -f *.$(OBJEXT)
-@@ -1132,8 +1077,6 @@ distclean-compile:
- @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libsvg_plugin_la-svg.Plo@am__quote@
- @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvod_rtsp_plugin_la-rtsp.Plo@am__quote@
- @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libwin32text_plugin_la-win32text.Plo@am__quote@
--@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libxdg_screensaver_plugin_la-xdg.Plo@am__quote@
--@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libxscreensaver_plugin_la-xscreensaver.Plo@am__quote@
-
- .c.o:
- @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
-@@ -1247,22 +1190,6 @@ libwin32text_plugin_la-win32text.lo: win
- @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
- @am__fastdepCC_FALSE@ $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libwin32text_plugin_la_CFLAGS) $(CFLAGS) -c -o libwin32text_plugin_la-win32text.lo `test -f 'win32text.c' || echo '$(srcdir)/'`win32text.c
-
--libxdg_screensaver_plugin_la-xdg.lo: inhibit/xdg.c
--@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libxdg_screensaver_plugin_la_CFLAGS) $(CFLAGS) -MT libxdg_screensaver_plugin_la-xdg.lo -MD -MP -MF $(DEPDIR)/libxdg_screensaver_plugin_la-xdg.Tpo -c -o libxdg_screensaver_plugin_la-xdg.lo `test -f 'inhibit/xdg.c' || echo '$(srcdir)/'`inhibit/xdg.c
--@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libxdg_screensaver_plugin_la-xdg.Tpo $(DEPDIR)/libxdg_screensaver_plugin_la-xdg.Plo
--@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
--@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='inhibit/xdg.c' object='libxdg_screensaver_plugin_la-xdg.lo' libtool=yes @AMDEPBACKSLASH@
--@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
--@am__fastdepCC_FALSE@ $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libxdg_screensaver_plugin_la_CFLAGS) $(CFLAGS) -c -o libxdg_screensaver_plugin_la-xdg.lo `test -f 'inhibit/xdg.c' || echo '$(srcdir)/'`inhibit/xdg.c
--
--libxscreensaver_plugin_la-xscreensaver.lo: inhibit/xscreensaver.c
--@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libxscreensaver_plugin_la_CFLAGS) $(CFLAGS) -MT libxscreensaver_plugin_la-xscreensaver.lo -MD -MP -MF $(DEPDIR)/libxscreensaver_plugin_la-xscreensaver.Tpo -c -o libxscreensaver_plugin_la-xscreensaver.lo `test -f 'inhibit/xscreensaver.c' || echo '$(srcdir)/'`inhibit/xscreensaver.c
--@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libxscreensaver_plugin_la-xscreensaver.Tpo $(DEPDIR)/libxscreensaver_plugin_la-xscreensaver.Plo
--@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
--@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='inhibit/xscreensaver.c' object='libxscreensaver_plugin_la-xscreensaver.lo' libtool=yes @AMDEPBACKSLASH@
--@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
--@am__fastdepCC_FALSE@ $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libxscreensaver_plugin_la_CFLAGS) $(CFLAGS) -c -o libxscreensaver_plugin_la-xscreensaver.lo `test -f 'inhibit/xscreensaver.c' || echo '$(srcdir)/'`inhibit/xscreensaver.c
--
- mostlyclean-libtool:
- -rm -f *.lo
-
diff --git a/package/vlc/patches/patch-modules_misc_inhibit_xdg_c b/package/vlc/patches/patch-modules_misc_inhibit_xdg_c
new file mode 100644
index 000000000..74a5b7675
--- /dev/null
+++ b/package/vlc/patches/patch-modules_misc_inhibit_xdg_c
@@ -0,0 +1,10 @@
+--- vlc-2.0.3.orig/modules/misc/inhibit/xdg.c 2011-12-08 19:00:26.000000000 +0100
++++ vlc-2.0.3/modules/misc/inhibit/xdg.c 2012-07-26 16:36:07.000000000 +0200
+@@ -27,7 +27,6 @@
+ #include <vlc_inhibit.h>
+ #include <assert.h>
+ #include <signal.h>
+-#include <spawn.h>
+ #include <sys/wait.h>
+
+ static int Open (vlc_object_t *);
diff --git a/package/vlc/patches/patch-modules_misc_inhibit_xscreensaver_c b/package/vlc/patches/patch-modules_misc_inhibit_xscreensaver_c
new file mode 100644
index 000000000..00f1a5f77
--- /dev/null
+++ b/package/vlc/patches/patch-modules_misc_inhibit_xscreensaver_c
@@ -0,0 +1,10 @@
+--- vlc-2.0.3.orig/modules/misc/inhibit/xscreensaver.c 2011-12-08 19:00:26.000000000 +0100
++++ vlc-2.0.3/modules/misc/inhibit/xscreensaver.c 2012-07-26 16:36:21.000000000 +0200
+@@ -39,7 +39,6 @@
+ #include <sys/wait.h>
+ #include <fcntl.h>
+ #include <signal.h>
+-#include <spawn.h>
+
+ /*****************************************************************************
+ * Local prototypes
diff --git a/package/vlc/patches/patch-src_misc_linux_specific_c b/package/vlc/patches/patch-src_misc_linux_specific_c
deleted file mode 100644
index f25b1ea57..000000000
--- a/package/vlc/patches/patch-src_misc_linux_specific_c
+++ /dev/null
@@ -1,19 +0,0 @@
---- vlc-1.1.11.orig/src/misc/linux_specific.c 2011-07-14 13:27:03.000000000 +0200
-+++ vlc-1.1.11/src/misc/linux_specific.c 2011-09-15 06:35:43.887989501 +0200
-@@ -83,14 +83,14 @@ static struct
- unsigned refs;
- } once = { VLC_STATIC_MUTEX, 0 };
-
--#ifdef __GLIBC__
-+#ifndef __UCLIBC__
- # include <gnu/libc-version.h>
- # include <stdlib.h>
- #endif
-
- void system_Init (libvlc_int_t *libvlc, int *argc, const char *argv[])
- {
--#ifdef __GLIBC__
-+#ifndef __UCLIBC__
- const char *glcv = gnu_get_libc_version ();
-
- /* gettext in glibc 2.5-2.7 is not thread-safe. LibVLC keeps crashing,
diff --git a/package/vlc/patches/patch-src_posix_linux_specific_c b/package/vlc/patches/patch-src_posix_linux_specific_c
new file mode 100644
index 000000000..a5cdc1534
--- /dev/null
+++ b/package/vlc/patches/patch-src_posix_linux_specific_c
@@ -0,0 +1,30 @@
+--- vlc-2.0.3.orig/src/posix/linux_specific.c 2011-12-08 19:00:28.000000000 +0100
++++ vlc-2.0.3/src/posix/linux_specific.c 2012-07-26 16:08:31.000000000 +0200
+@@ -83,27 +83,8 @@ static struct
+ unsigned refs;
+ } once = { VLC_STATIC_MUTEX, 0 };
+
+-#ifdef __GLIBC__
+-# include <gnu/libc-version.h>
+-# include <stdlib.h>
+-#endif
+-
+ void system_Init (void)
+ {
+-#ifdef __GLIBC__
+- const char *glcv = gnu_get_libc_version ();
+-
+- /* gettext in glibc 2.5-2.7 is not thread-safe. LibVLC keeps crashing,
+- * especially in sterror_r(). Even if we have NLS disabled, the calling
+- * process might have called setlocale(). */
+- if (strverscmp (glcv, "2.5") >= 0 && strverscmp (glcv, "2.8") < 0)
+- {
+- fputs ("LibVLC has detected an unusable buggy GNU/libc version.\n"
+- "Please update to version 2.8 or newer.\n", stderr);
+- fflush (stderr);
+- }
+-#endif
+-
+ vlc_mutex_lock (&once.lock);
+ if (once.refs++ == 0)
+ set_libvlc_path ();