mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Fix bug#37165 "((Generic rpm)) fail to install on Fedora 9 x86_64"
On Fedora, certain accesses to "/var/lib/mysql/HOSTNAME.err" were blocked by SELinux policy, this made the server start fail with the message Manager of pid-file quit without updating file Calling "/sbin/restorecon -R /var/lib/mysql" fixes this.
This commit is contained in:
@ -382,7 +382,7 @@ sh -c "PATH=\"${MYSQL_BUILD_PATH:-$PATH}\" \
|
|||||||
--enable-local-infile \
|
--enable-local-infile \
|
||||||
--with-fast-mutexes \
|
--with-fast-mutexes \
|
||||||
--with-mysqld-user=%{mysqld_user} \
|
--with-mysqld-user=%{mysqld_user} \
|
||||||
--with-unix-socket-path=/var/lib/mysql/mysql.sock \
|
--with-unix-socket-path=%{mysqldatadir}/mysql.sock \
|
||||||
--with-pic \
|
--with-pic \
|
||||||
--prefix=/ \
|
--prefix=/ \
|
||||||
%if %{CLUSTER_BUILD}
|
%if %{CLUSTER_BUILD}
|
||||||
@ -858,6 +858,13 @@ chown -R %{mysqld_user}:%{mysqld_group} $mysql_datadir
|
|||||||
# ----------------------------------------------------------------------
|
# ----------------------------------------------------------------------
|
||||||
chmod -R og-rw $mysql_datadir/mysql
|
chmod -R og-rw $mysql_datadir/mysql
|
||||||
|
|
||||||
|
# ----------------------------------------------------------------------
|
||||||
|
# Deal with SELinux, if it is installed / used
|
||||||
|
# ----------------------------------------------------------------------
|
||||||
|
if [ -x /sbin/restorecon ] ; then
|
||||||
|
/sbin/restorecon -R %{mysqldatadir}
|
||||||
|
fi
|
||||||
|
|
||||||
# Was the server running before the upgrade? If so, restart the new one.
|
# Was the server running before the upgrade? If so, restart the new one.
|
||||||
if [ "$SERVER_TO_START" = "true" ] ; then
|
if [ "$SERVER_TO_START" = "true" ] ; then
|
||||||
# Restart in the same way that mysqld will be started normally.
|
# Restart in the same way that mysqld will be started normally.
|
||||||
@ -1165,6 +1172,15 @@ fi
|
|||||||
# merging BK trees)
|
# merging BK trees)
|
||||||
##############################################################################
|
##############################################################################
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Aug 19 2011 Joerg Bruehe <joerg.bruehe@oracle.com>
|
||||||
|
|
||||||
|
- Fix bug#37165 "((Generic rpm)) fail to install on Fedora 9 x86_64"
|
||||||
|
On Fedora, certain accesses to "/var/lib/mysql/HOSTNAME.err" were blocked
|
||||||
|
by SELinux policy, this made the server start fail with the message
|
||||||
|
Manager of pid-file quit without updating file
|
||||||
|
Calling "/sbin/restorecon -R /var/lib/mysql" fixes this.
|
||||||
|
- Replace occurrences of that path name by the spec file variable %{mysqldatadir}.
|
||||||
|
|
||||||
* Thu Jul 07 2011 Joerg Bruehe <joerg.bruehe@oracle.com>
|
* Thu Jul 07 2011 Joerg Bruehe <joerg.bruehe@oracle.com>
|
||||||
|
|
||||||
- Fix bug#45415: "rpm upgrade recreates test database"
|
- Fix bug#45415: "rpm upgrade recreates test database"
|
||||||
|
Reference in New Issue
Block a user