[mysql/f14/master] Disable use of pthread_setschedprio
Tom Lane
tgl at fedoraproject.org
Thu Jan 6 05:25:48 UTC 2011
commit 41a06fe2d1b4019ef09bda18a396fb53ee61e617
Author: Tom Lane <tgl at redhat.com>
Date: Thu Jan 6 00:24:52 2011 -0500
Disable use of pthread_setschedprio
mysql-setschedparam.patch | 19 +++++++++++++++----
mysql.spec | 6 +++++-
2 files changed, 20 insertions(+), 5 deletions(-)
---
diff --git a/mysql-setschedparam.patch b/mysql-setschedparam.patch
index 3b0e518..24645cb 100644
--- a/mysql-setschedparam.patch
+++ b/mysql-setschedparam.patch
@@ -2,12 +2,14 @@ mysql tries to use pthread_setschedparam() with policy = SCHED_OTHER,
which is not standardized and is not presently supported on Red Hat
platforms; in fact it generates lots of SELinux warnings (bug #477624).
Easiest fix is to disable the configure test for it.
+We have to zap the test for pthread_setschedprio too, else it will try
+to fall back on that.
-diff -Naur mysql-5.1.33.orig/configure.in mysql-5.1.33/configure.in
---- mysql-5.1.33.orig/configure.in 2009-03-13 17:48:52.000000000 -0400
-+++ mysql-5.1.33/configure.in 2009-04-07 19:27:25.000000000 -0400
-@@ -2046,10 +2046,10 @@
+diff -Naur mysql-5.1.52.orig/configure.in mysql-5.1.52/configure.in
+--- mysql-5.1.52.orig/configure.in 2010-10-11 16:34:15.000000000 -0400
++++ mysql-5.1.52/configure.in 2011-01-05 22:36:53.249411523 -0500
+@@ -2079,10 +2079,10 @@
localtime_r gethrtime gmtime_r \
locking longjmp lrand48 madvise mallinfo memcpy memmove \
mkstemp mlockall perror poll pread pthread_attr_create mmap mmap64 getpagesize \
@@ -20,3 +22,12 @@ diff -Naur mysql-5.1.33.orig/configure.in mysql-5.1.33/configure.in
realpath rename rint rwlock_init setupterm \
shmget shmat shmdt shmctl sigaction sigemptyset sigaddset \
sighold sigset sigthreadmask port_create sleep \
+@@ -2128,7 +2128,7 @@
+ [Define to 1 if you have the `pthread_setschedprio' function.])
+ fi
+ ;;
+- *) AC_CHECK_FUNCS(pthread_setschedprio)
++ *) :
+ ;;
+ esac
+
diff --git a/mysql.spec b/mysql.spec
index fab4b93..fc588ee 100644
--- a/mysql.spec
+++ b/mysql.spec
@@ -1,6 +1,6 @@
Name: mysql
Version: 5.1.52
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: MySQL client programs and shared libraries
Group: Applications/Databases
URL: http://www.mysql.com
@@ -577,6 +577,10 @@ fi
%{_mandir}/man1/mysql_client_test.1*
%changelog
+* Thu Jan 6 2011 Tom Lane <tgl at redhat.com> 5.1.52-2
+- Disable use of pthread_setschedprio to prevent useless EINVAL failures
+Resolves: #477624
+
* Mon Nov 1 2010 Tom Lane <tgl at redhat.com> 5.1.52-1
- Update to MySQL 5.1.52, for various fixes described at
http://dev.mysql.com/doc/refman/5.1/en/news-5-1-52.html
More information about the scm-commits
mailing list