ALT Linux repositórios
S: | 8.0.30-alt2 |
5.0: | 5.0.89-alt1 |
4.1: | 5.0.51-alt2.a |
4.0: | 5.0.51-alt2.a.M40.2 |
+updates: | 5.0.51-alt2.a.M40.1 |
3.0: | 4.0.24-alt1 |
Group :: Banco de dados
RPM: MySQL
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
Patch: db-4.1.24-disable-pthreadsmutexes.patch
Download
Download
diff -Naur mysql-4.1.9/bdb/dist/aclocal/mutex.ac mysql-4.1.9.oden/bdb/dist/aclocal/mutex.ac
--- mysql-4.1.9/bdb/dist/aclocal/mutex.ac 2005-01-11 23:06:02.000000000 +0100
+++ mysql-4.1.9.oden/bdb/dist/aclocal/mutex.ac 2005-01-30 20:42:27.438264523 +0100
@@ -194,28 +194,31 @@
# Try with and without the -lpthread library. If the user specified we use
# POSIX pthreads mutexes, and we fail to find the full interface, try and
# configure for just intra-process support.
-if test "$db_cv_mutex" = no -o "$db_cv_mutex" = "posix_only"; then
- AM_PTHREADS_SHARED("POSIX/pthreads")
-fi
-if test "$db_cv_mutex" = no -o \
- "$db_cv_mutex" = "posix_only" -o "$db_cv_mutex" = "posix_library_only"; then
- LIBS="$LIBS -lpthread"
- AM_PTHREADS_SHARED("POSIX/pthreads/library")
- LIBS="$orig_libs"
-fi
-if test "$db_cv_mutex" = "posix_only"; then
- AM_PTHREADS_PRIVATE("POSIX/pthreads/private")
-fi
-if test "$db_cv_mutex" = "posix_only" -o \
- "$db_cv_mutex" = "posix_library_only"; then
- LIBS="$LIBS -lpthread"
- AM_PTHREADS_PRIVATE("POSIX/pthreads/library/private")
- LIBS="$orig_libs"
-fi
-
-if test "$db_cv_mutex" = "posix_only" -o \
- "$db_cv_mutex" = "posix_library_only"; then
- AC_MSG_ERROR([unable to find POSIX 1003.1 mutex interfaces])
+if test "$db_cv_pthreadsmutexes" = yes; then
+ if test "$db_cv_mutex" = no -o "$db_cv_mutex" = "posix_only"; then
+ AM_PTHREADS_SHARED("POSIX/pthreads")
+ fi
+ if test "$db_cv_mutex" = no -o \
+ "$db_cv_mutex" = "posix_only" -o \
+ "$db_cv_mutex" = "posix_library_only"; then
+ LIBS="$LIBS -lpthread"
+ AM_PTHREADS_SHARED("POSIX/pthreads/library")
+ LIBS="$orig_libs"
+ fi
+ if test "$db_cv_mutex" = "posix_only"; then
+ AM_PTHREADS_PRIVATE("POSIX/pthreads/private")
+ fi
+ if test "$db_cv_mutex" = "posix_only" -o \
+ "$db_cv_mutex" = "posix_library_only"; then
+ LIBS="$LIBS -lpthread"
+ AM_PTHREADS_PRIVATE("POSIX/pthreads/library/private")
+ LIBS="$orig_libs"
+ fi
+
+ if test "$db_cv_mutex" = "posix_only" -o \
+ "$db_cv_mutex" = "posix_library_only"; then
+ AC_MSG_ERROR([unable to find POSIX 1003.1 mutex interfaces])
+ fi
fi
# msemaphore: HPPA only
diff -Naur mysql-4.1.9/bdb/dist/aclocal/options.ac mysql-4.1.9.oden/bdb/dist/aclocal/options.ac
--- mysql-4.1.9/bdb/dist/aclocal/options.ac 2005-01-11 23:06:01.000000000 +0100
+++ mysql-4.1.9.oden/bdb/dist/aclocal/options.ac 2005-01-30 20:42:39.376229491 +0100
@@ -67,6 +67,16 @@
[db_cv_java="$enable_java"], [db_cv_java="no"])
AC_MSG_RESULT($db_cv_java)
+AC_MSG_CHECKING(if --disable-pthreadsmutexes option specified)
+AC_ARG_ENABLE(pthreadsmutexes,
+ AC_HELP_STRING([--disable-pthreadsmutexes],
+ [Do not use POSIX pthreads mutexes.]),, enableval="yes")
+db_cv_pthreadsmutexes="$enableval"
+case "$enableval" in
+ no) AC_MSG_RESULT(yes);;
+yes) AC_MSG_RESULT(no);;
+esac
+
AC_MSG_CHECKING(if --enable-posixmutexes option specified)
AC_ARG_ENABLE(posixmutexes,
[AC_HELP_STRING([--enable-posixmutexes],