summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2012-07-06 15:57:22 +0200
committerRemi Collet <fedora@famillecollet.com>2012-07-06 15:57:22 +0200
commit810ddd3e6fead61410e42731827877fcb88361dd (patch)
treea9cc798765a60bcb696aaee95aa6dd0762447167
parentede69b7ddd6158b84eb535b3d85665db812641e4 (diff)
MySQL 5.5.25a
-rw-r--r--mysql-logrotate.patch5
-rw-r--r--mysql.5.5.25a.spec (renamed from mysql.5.5.25.spec)4
-rw-r--r--mysql55.spec24
3 files changed, 23 insertions, 10 deletions
diff --git a/mysql-logrotate.patch b/mysql-logrotate.patch
index 8ad9d2c..f76237d 100644
--- a/mysql-logrotate.patch
+++ b/mysql-logrotate.patch
@@ -2,7 +2,8 @@ Adjust the mysql-log-rotate script in several ways:
* Use the correct log file pathname for Red Hat installations.
* 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
the file to enable rotation. This is unfortunate, but the fact
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:
+
+#/var/log/mysqld.log {
-+# create 600 mysql mysql
++# create 640 mysql mysql
+# notifempty
+# daily
+# rotate 3
diff --git a/mysql.5.5.25.spec b/mysql.5.5.25a.spec
index 93260cc..6bd976e 100644
--- a/mysql.5.5.25.spec
+++ b/mysql.5.5.25a.spec
@@ -24,7 +24,7 @@
%define mysql_vendor_2 Sun Microsystems, Inc.
%define mysql_vendor Oracle and/or its affiliates
-%define mysql_version 5.5.25
+%define mysql_version 5.5.25a
%define mysqld_user mysql
%define mysqld_group mysql
@@ -241,7 +241,7 @@
Name: MySQL%{product_suffix}
Summary: MySQL: a very fast and reliable SQL database server
Group: Applications/Databases
-Version: 5.5.25
+Version: 5.5.25a
Release: %{release}%{?distro_releasetag:.%{distro_releasetag}}
Distribution: %{distro_description}
License: Copyright (c) 2000, 2012, %{mysql_vendor}. All rights reserved. Under %{license_type} license as shown in the Description field.
diff --git a/mysql55.spec b/mysql55.spec
index f90227f..b197c5c 100644
--- a/mysql55.spec
+++ b/mysql55.spec
@@ -1,5 +1,5 @@
Name: mysql
-Version: 5.5.25
+Version: 5.5.25a
Release: 1%{?dist}
Summary: MySQL client programs and shared libraries
@@ -130,7 +130,7 @@ Requires(pre): /usr/sbin/useradd
Requires(post): chkconfig
Requires(preun): chkconfig
%if 0%{?fedora} >= 15
-# We require this to be present for /etc/tmpfiles.d
+# We require this to be present for %%{_prefix}/lib/tmpfiles.d
Requires: systemd-units
# Make sure it's there when scriptlets run, too
Requires(post): systemd-units
@@ -443,8 +443,8 @@ sed -i -e '/PrivateTmp/s/true/false/' ${RPM_BUILD_ROOT}%{_unitdir}/mysqld.servic
install -m 755 %{SOURCE12} ${RPM_BUILD_ROOT}%{_libexecdir}/
install -m 755 %{SOURCE13} ${RPM_BUILD_ROOT}%{_libexecdir}/
-mkdir -p $RPM_BUILD_ROOT/etc/tmpfiles.d
-install -m 0644 %{SOURCE10} $RPM_BUILD_ROOT/etc/tmpfiles.d/mysql.conf
+mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib/tmpfiles.d
+install -m 0644 %{SOURCE10} $RPM_BUILD_ROOT%{_prefix}/lib/tmpfiles.d/mysql.conf
%else
mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d
@@ -527,7 +527,7 @@ echo -e "\nWARNING : This MySQL RPM is not an official Fedora/Redhat build and i
echo -e "overrides the official one. Don't file bugs on Fedora Project nor Redhat."
echo -e "Use dedicated forums http://forums.famillecollet.com/\n"
-%if %{?fedora}%{!?fedora:99} <= 14
+%if %{?fedora}%{!?fedora:99} <= 15
echo -e "WARNING : Fedora %{fedora} is now EOL :"
echo -e "You should consider upgrading to a supported release.\n"
%endif
@@ -760,7 +760,7 @@ fi
%{_libexecdir}/mysqld-prepare-db-dir
%{_libexecdir}/mysqld-wait-ready
-/etc/tmpfiles.d/mysql.conf
+%{_prefix}/lib/tmpfiles.d/mysql.conf
%else
/etc/rc.d/init.d/mysqld
%config(noreplace) /etc/sysconfig/mysqld
@@ -803,6 +803,18 @@ fi
%{_mandir}/man1/mysql_client_test.1*
%changelog
+* Fri Jul 06 2012 Remi Collet <RPMS@FamilleCollet.com> - 5.5.25a-1
+- update to MySQL 5.5.25a Community Server GA
+ http://dev.mysql.com/doc/refman/5.5/en/news-5-5-25a.html
+
+* 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
+
* Fri Jun 01 2012 Remi Collet <RPMS@FamilleCollet.com> - 5.5.25-1
- update to MySQL 5.5.25 Community Server GA
http://dev.mysql.com/doc/refman/5.5/en/news-5-5-25.html