SHA256
1
0
forked from pool/mariadb

- enable support for libaio (bnc#796164)

- better rights for logdir (bnc#789263)

OBS-URL: https://build.opensuse.org/package/show/server:database/mariadb?expand=0&rev=117
This commit is contained in:
Michal Hrusecky (old before rename to _miska_) 2013-06-06 13:23:51 +00:00 committed by Git OBS Bridge
parent a4c6753144
commit d55af5babd
6 changed files with 23 additions and 7 deletions

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:65ac32a3b776ada3b317d1bb596dd3623499f1b408d598ded05f691a02364562
size 321
oid sha256:ac5ba7427aed3e005cc0f19dabb58c1e69856c054d3016adf538b46c1df2d2e9
size 312

View File

@ -167,6 +167,6 @@ if [ "`ls '%buildroot'%_libdir/mysql/plugin/dialog*.so`" ]; then
echo '%%dir %%_libdir/mysql/plugin' >> mysql-client.files
echo '%%_libdir/mysql/plugin/dialog*.so' >> mysql-client.files
fi
rm -rf '%buildroot'/usr/share/doc/%{name}-%{version}
rm -rf '%buildroot'/usr/share/doc/{mysql,mariadb}*
rm -rf '%buildroot'/usr/share/mysql/solaris
rm -rf '%buildroot'/usr/share/mysql/SELinux

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Jun 6 13:22:37 UTC 2013 - mhrusecky@suse.com
- enable support for libaio (bnc#796164)
- better rights for logdir (bnc#789263)
-------------------------------------------------------------------
Wed Jun 5 08:48:42 UTC 2013 - mhrusecky@suse.com

View File

@ -61,6 +61,7 @@ BuildRequires: autoconf
BuildRequires: automake
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: libaio-devel
BuildRequires: libedit-devel
BuildRequires: libtool
BuildRequires: ncurses-devel
@ -171,6 +172,9 @@ languages and applications need to dynamically load and use MariaDB.
Summary: Client for MariaDB
Group: Productivity/Databases/Clients
Provides: mysql-client = %{srv_vers}
%if 0%{?suse_version}
PreReq: pwdutils
%endif
%if 0%{?use_extra_provides} > 0
Provides: %{extra_provides}-client = %{version}
Obsoletes: %{extra_provides}-client < %{version}
@ -385,6 +389,12 @@ rm -f mysql-test/t/file_contents.test mysql-test/r/file_contents.result
%service_add_pre mysql.service
%endif
%pre client
/usr/sbin/groupadd -r mysql >/dev/null 2>/dev/null || :
/usr/sbin/useradd -r -o -g mysql -u 60 -c "MySQL database admin" \
-s /bin/false -d /var/lib/mysql mysql 2> /dev/null || :
/usr/sbin/usermod -g mysql -s /bin/false mysql || :
%post
# systemd requirment
%if 0%{?suse_version} >= 1210

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:242cbdabafce318f7351fc293fc1ad224c7ecef4392041ba94d42518e9d8ac1a
size 11793
oid sha256:2a44cd8a364876bd0dca1b99b63374f75bd6eca42c68c018e69429263d2f533d
size 11797

View File

@ -329,7 +329,7 @@ else
log_dir="`dirname "$i"`"
if [ \! -d "$log_dir" ]; then
mkdir -p "$log_dir"
chmod 660 "$log_dir"
chmod 770 "$log_dir"
fi
done
@ -350,7 +350,7 @@ else
echo >> "$log_upgrade"
echo "Will update MySQL now, if you encounter any problems, please read following file:" | tee -a "$log_upgrade"
echo " /usr/share/doc/packages/mysql/README.SuSE" | tee -a "$log_upgrade"
sed -i -e 's|^\([^#]*skip-locking\)|#\1|' \
sed -i -e 's|^\([^#]*skip-locking\)|#\1\nskip-external-locking|' \
-e 's|^\([^#]*skip-federated\)|#\1|' /etc/my.cnf
# Check logs for inconsistencies
SRCLOGS=""