Update to MySQL 5.5.24

This commit is contained in:
Tom Lane 2012-06-11 17:25:25 -04:00 committed by Michal Schorm
parent c375f2fcbc
commit 7f33180e01
4 changed files with 18 additions and 9 deletions

2
.gitignore vendored
View File

@ -1 +1 @@
/mysql-5.5.23-nodocs.tar.gz /mysql-5.5.24-nodocs.tar.gz

View File

@ -2,7 +2,8 @@ Adjust the mysql-log-rotate script in several ways:
* Use the correct log file pathname for Red Hat installations. * Use the correct log file pathname for Red Hat installations.
* Enable creation of the log file by logrotate (needed since * Enable creation of the log file by logrotate (needed since
/var/log/ isn't writable by mysql user). /var/log/ isn't writable by mysql user); and set the same 640
permissions we normally use.
* Comment out the actual rotation commands, so that user must edit * Comment out the actual rotation commands, so that user must edit
the file to enable rotation. This is unfortunate, but the fact the file to enable rotation. This is unfortunate, but the fact
that the script will probably fail without manual configuration that the script will probably fail without manual configuration
@ -48,7 +49,7 @@ diff -Naur mysql-5.5.22.orig/support-files/mysql-log-rotate.sh mysql-5.5.22/supp
+# Then, un-comment the following lines to enable rotation of mysql's log file: +# Then, un-comment the following lines to enable rotation of mysql's log file:
+ +
+#/var/log/mysqld.log { +#/var/log/mysqld.log {
+# create 600 mysql mysql +# create 640 mysql mysql
+# notifempty +# notifempty
+# daily +# daily
+# rotate 3 +# rotate 3

View File

@ -1,5 +1,5 @@
Name: mysql Name: mysql
Version: 5.5.23 Version: 5.5.24
Release: 1%{?dist} Release: 1%{?dist}
Summary: MySQL client programs and shared libraries Summary: MySQL client programs and shared libraries
@ -109,7 +109,7 @@ Requires: sh-utils
Requires(pre): /usr/sbin/useradd Requires(pre): /usr/sbin/useradd
Requires(post): chkconfig Requires(post): chkconfig
Requires(preun): chkconfig Requires(preun): chkconfig
# We require this to be present for /etc/tmpfiles.d # We require this to be present for %%{_prefix}/lib/tmpfiles.d
Requires: systemd-units Requires: systemd-units
# Make sure it's there when scriptlets run, too # Make sure it's there when scriptlets run, too
Requires(post): systemd-units Requires(post): systemd-units
@ -382,8 +382,8 @@ install -m 644 %{SOURCE11} ${RPM_BUILD_ROOT}%{_unitdir}/
install -m 755 %{SOURCE12} ${RPM_BUILD_ROOT}%{_libexecdir}/ install -m 755 %{SOURCE12} ${RPM_BUILD_ROOT}%{_libexecdir}/
install -m 755 %{SOURCE13} ${RPM_BUILD_ROOT}%{_libexecdir}/ install -m 755 %{SOURCE13} ${RPM_BUILD_ROOT}%{_libexecdir}/
mkdir -p $RPM_BUILD_ROOT/etc/tmpfiles.d mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib/tmpfiles.d
install -m 0644 %{SOURCE10} $RPM_BUILD_ROOT/etc/tmpfiles.d/mysql.conf install -m 0644 %{SOURCE10} $RPM_BUILD_ROOT%{_prefix}/lib/tmpfiles.d/mysql.conf
# Fix funny permissions that cmake build scripts apply to config files # Fix funny permissions that cmake build scripts apply to config files
chmod 644 ${RPM_BUILD_ROOT}%{_datadir}/mysql/config.*.ini chmod 644 ${RPM_BUILD_ROOT}%{_datadir}/mysql/config.*.ini
@ -654,7 +654,7 @@ fi
%{_libexecdir}/mysqld-prepare-db-dir %{_libexecdir}/mysqld-prepare-db-dir
%{_libexecdir}/mysqld-wait-ready %{_libexecdir}/mysqld-wait-ready
/etc/tmpfiles.d/mysql.conf %{_prefix}/lib/tmpfiles.d/mysql.conf
%attr(0755,mysql,mysql) %dir /var/run/mysqld %attr(0755,mysql,mysql) %dir /var/run/mysqld
%attr(0755,mysql,mysql) %dir /var/lib/mysql %attr(0755,mysql,mysql) %dir /var/lib/mysql
%attr(0640,mysql,mysql) %config(noreplace) %verify(not md5 size mtime) /var/log/mysqld.log %attr(0640,mysql,mysql) %config(noreplace) %verify(not md5 size mtime) /var/log/mysqld.log
@ -693,6 +693,14 @@ fi
%{_mandir}/man1/mysql_client_test.1* %{_mandir}/man1/mysql_client_test.1*
%changelog %changelog
* Mon Jun 11 2012 Tom Lane <tgl@redhat.com> 5.5.24-1
- Update to MySQL 5.5.24, for various fixes described at
http://dev.mysql.com/doc/refman/5.5/en/news-5-5-24.html
including the fix for CVE-2012-2122
Resolves: #830680
- Tweak logrotate script to put the right permissions on mysqld.log
- Minor specfile fixes for recent packaging guidelines changes
* Sat Apr 28 2012 Tom Lane <tgl@redhat.com> 5.5.23-1 * Sat Apr 28 2012 Tom Lane <tgl@redhat.com> 5.5.23-1
- Update to MySQL 5.5.23, for various fixes described at - Update to MySQL 5.5.23, for various fixes described at
http://dev.mysql.com/doc/refman/5.5/en/news-5-5-23.html http://dev.mysql.com/doc/refman/5.5/en/news-5-5-23.html

View File

@ -1 +1 @@
dfdae08b57c51740344a3b4ce930127a mysql-5.5.23-nodocs.tar.gz e42efbddfa93a16ec137dfcbeb996c24 mysql-5.5.24-nodocs.tar.gz