summaryrefslogtreecommitdiffstats
path: root/vlc/build
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2009-05-11 18:59:30 +0000
committer Eric Hameleers <alien@slackware.com>2009-05-11 18:59:30 +0000
commit22afbbf1da7df7fe1315e961431c5fce84abefb2 (patch)
treebe8927036d11fe54c713fb87e368c4652bdd79af /vlc/build
parent95813b3c749eb986526df4ff81d21cf572a62d9c (diff)
downloadasb-22afbbf1da7df7fe1315e961431c5fce84abefb2.tar.gz
asb-22afbbf1da7df7fe1315e961431c5fce84abefb2.tar.xz
Updated patch for 1.0.0-rc1
Diffstat (limited to 'vlc/build')
-rw-r--r--vlc/build/vlc-1.0.0_allow_older_glibc.diff88
1 files changed, 11 insertions, 77 deletions
diff --git a/vlc/build/vlc-1.0.0_allow_older_glibc.diff b/vlc/build/vlc-1.0.0_allow_older_glibc.diff
index ad82a88e..bfde837d 100644
--- a/vlc/build/vlc-1.0.0_allow_older_glibc.diff
+++ b/vlc/build/vlc-1.0.0_allow_older_glibc.diff
@@ -1,77 +1,11 @@
-# We have revert the following commits below which prevent
-# VLC from compiling with Slackware 12.2's glibc 2.7:
-# 82f20ceb63d9437d5d8c2eb92312ef37dae93e44
-# 288559204f8b0ef943d5e7273b9a076f69318c26
---- a/configure.ac
-+++ b/configure.ac
-@@ -503,6 +503,24 @@ AC_LANG_PUSH(C++)
- AC_LANG_POP(C++)
- fi
-
-+dnl
-+dnl Buggy glibc prevention. Purposedly not cached.
-+dnl Ubuntu alone has 20 bug numbers for this...
-+dnl
-+AC_MSG_CHECKING(for buggy GNU/libc versions)
-+AC_PREPROC_IFELSE([
-+#include <limits.h>
-+#if defined (__GLIBC__) && (__GLIBC__ == 2) \
-+ && (__GLIBC_MINOR__ >= 5) && (__GLIBC_MINOR__ <= 7)
-+# error GNU/libc with dcgettext killer bug!
-+#endif
-+], [
-+ AC_MSG_RESULT([not present])
-+], [
-+ AC_MSG_RESULT([found])
-+ AC_MSG_ERROR([Buggy GNU/libc (version 2.5 - 2.7) present. VLC would crash; there is no viable work-around for this. Check with your distribution vendor on how to update the glibc run-time.])
-+])
-+
- dnl Plugin compilation stuff
-
- VLC_LIBRARY_SUFFIX
---- a/src/misc/linux_specific.c
-+++ b/src/misc/linux_specific.c
-@@ -22,11 +22,13 @@
- # include "config.h"
- #endif
-
-+#include <stdio.h>
-+#include <string.h>
-+
- #include <vlc_common.h>
- #include "../libvlc.h"
-
- #if 0
--#include <stdio.h>
- #include <assert.h>
- #include <pthread.h>
-
-@@ -70,8 +72,28 @@ static void set_libvlc_path (void)
- }
- #endif
-
-+#ifdef __GLIBC__
-+# include <gnu/libc-version.h>
-+# include <stdlib.h>
-+#endif
-+
- void system_Init (libvlc_int_t *libvlc, int *argc, const char *argv[])
- {
-+#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);
-+ abort ();
-+ }
-+#endif
-+
- #if 0
- static pthread_once_t once = PTHREAD_ONCE_INIT;
- pthread_once (&once, set_libvlc_path);
+--- vlc-1.0.0-rc1.orig/configure.ac 2009-05-09 01:24:25.000000000 +0200
++++ vlc-1.0.0-rc1/configure.ac 2009-05-11 20:57:39.000000000 +0200
+@@ -554,7 +554,7 @@
+ AC_MSG_RESULT([not present])
+ ], [
+ AC_MSG_RESULT([found])
+- AS_IF([test "x${enable_nls}" != "xno" || test "x${enable_mozilla}" != "xno"], [
++ AS_IF([test "LET_ME_CHOOSE_DAMMIT" != "LET_ME_CHOOSE_DAMMIT"], [
+ AC_MSG_ERROR([Buggy GNU/libc (version 2.5 - 2.7) present. VLC would crash; there is no viable
+ work-around for this. Check with your distribution vendor on how to update the
+ glibc run-time. Alternatively, build with --disable-nls --disable-mozilla and