Move mysqld back to /usr/libexec, and create a symlink in /usr/sbin
This is done to make SELinux happy again (because correct context is only defined for /usr/libexec/mysqld) and also because of back-ward compatibility, that users might have /usr/libexec/mysqld path hard-coded already).
This commit is contained in:
parent
63e012e12d
commit
e2d24af13c
@ -80,7 +80,7 @@
|
|||||||
|
|
||||||
Name: community-mysql
|
Name: community-mysql
|
||||||
Version: 8.0.11
|
Version: 8.0.11
|
||||||
Release: 3%{?with_debug:.debug}%{?dist}
|
Release: 4%{?with_debug:.debug}%{?dist}
|
||||||
Summary: MySQL client programs and shared libraries
|
Summary: MySQL client programs and shared libraries
|
||||||
URL: http://www.mysql.com
|
URL: http://www.mysql.com
|
||||||
|
|
||||||
@ -594,8 +594,14 @@ chmod 644 %{buildroot}%{logrotateddir}/%{daemon_name}
|
|||||||
mkdir -p %{buildroot}%{_sysconfdir}/ld.so.conf.d
|
mkdir -p %{buildroot}%{_sysconfdir}/ld.so.conf.d
|
||||||
echo "%{_libdir}/mysql" > %{buildroot}%{_sysconfdir}/ld.so.conf.d/%{name}-%{_arch}.conf
|
echo "%{_libdir}/mysql" > %{buildroot}%{_sysconfdir}/ld.so.conf.d/%{name}-%{_arch}.conf
|
||||||
|
|
||||||
|
# for back-ward compatibility and SELinux, let's keep the mysqld in libexec
|
||||||
|
# and just create a symlink in /usr/sbin
|
||||||
|
mv %{buildroot}%{_bindir}/mysqld %{buildroot}%{_libexecdir}/mysqld
|
||||||
|
mkdir -p %{buildroot}%{_sbindir}
|
||||||
|
ln -s %{_libexecdir}/mysqld %{buildroot}%{_sbindir}/mysqld
|
||||||
|
|
||||||
%if %{with debug}
|
%if %{with debug}
|
||||||
mv %{buildroot}%{_bindir}/mysqld-debug %{buildroot}%{_bindir}/mysqld
|
mv %{buildroot}%{_bindir}/mysqld-debug %{buildroot}%{_libexecdir}/mysqld
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
# Back to src dir
|
# Back to src dir
|
||||||
@ -833,7 +839,8 @@ fi
|
|||||||
|
|
||||||
%config(noreplace) %{_sysconfdir}/my.cnf.d/%{pkg_name}-server.cnf
|
%config(noreplace) %{_sysconfdir}/my.cnf.d/%{pkg_name}-server.cnf
|
||||||
|
|
||||||
%{_bindir}/mysqld
|
%{_sbindir}/mysqld
|
||||||
|
%{_libexecdir}/mysqld
|
||||||
|
|
||||||
%{_libdir}/mysql/INFO_SRC
|
%{_libdir}/mysql/INFO_SRC
|
||||||
%{_libdir}/mysql/INFO_BIN
|
%{_libdir}/mysql/INFO_BIN
|
||||||
@ -922,6 +929,9 @@ fi
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Jul 12 2018 Honza Horak <hhorak@redhat.com> - 8.0.11-4
|
||||||
|
- Move mysqld back to /usr/libexec, and create a symlink in /usr/sbin
|
||||||
|
|
||||||
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 8.0.11-3
|
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 8.0.11-3
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user