mirror of
https://github.com/MariaDB/server.git
synced 2026-05-15 11:27:39 +02:00
Merge MariaDB-10.0.7 revision 3961.
This commit is contained in:
commit
d43afb8828
2297 changed files with 261134 additions and 146182 deletions
|
|
@ -111,12 +111,15 @@ IF(UNIX)
|
|||
|
||||
INSTALL(FILES rpm/my.cnf DESTINATION ${INSTALL_SYSCONFDIR}
|
||||
COMPONENT Common)
|
||||
INSTALL(FILES rpm/client.cnf DESTINATION ${INSTALL_SYSCONF2DIR}
|
||||
COMPONENT SharedLibraries)
|
||||
INSTALL(FILES rpm/mysql-clients.cnf DESTINATION ${INSTALL_SYSCONF2DIR}
|
||||
COMPONENT Client)
|
||||
INSTALL(FILES rpm/server.cnf DESTINATION ${INSTALL_SYSCONF2DIR}
|
||||
COMPONENT IniFiles)
|
||||
|
||||
IF (INSTALL_SYSCONF2DIR)
|
||||
INSTALL(FILES rpm/client.cnf DESTINATION ${INSTALL_SYSCONF2DIR}
|
||||
COMPONENT SharedLibraries)
|
||||
INSTALL(FILES rpm/mysql-clients.cnf DESTINATION ${INSTALL_SYSCONF2DIR}
|
||||
COMPONENT Client)
|
||||
INSTALL(FILES rpm/server.cnf DESTINATION ${INSTALL_SYSCONF2DIR}
|
||||
COMPONENT IniFiles)
|
||||
ENDIF()
|
||||
|
||||
# This is for SuSE:
|
||||
INSTALL(CODE "EXECUTE_PROCESS(COMMAND ${CMAKE_COMMAND} -E create_symlink
|
||||
|
|
|
|||
|
|
@ -168,6 +168,11 @@ vio/viosslfactories\.c: discards ~const~ qualifier from pointer target type
|
|||
/usr/include/sys/feature_tests.h : this is the location of the previous definition
|
||||
.*auth_pam\.c : initialization from incompatible pointer type : 100-200
|
||||
|
||||
#
|
||||
# jemalloc
|
||||
#
|
||||
jemalloc/src/jemalloc\.c: always_inline function might not be inlinable
|
||||
|
||||
#
|
||||
# Unexplanable (?) stuff
|
||||
#
|
||||
|
|
|
|||
|
|
@ -30,7 +30,8 @@
|
|||
%global mysqld_group mysql
|
||||
%global mysqldatadir /var/lib/mysql
|
||||
|
||||
%define release 1
|
||||
%global release 1
|
||||
|
||||
|
||||
#
|
||||
# Macros we use which are not available in all supported versions of RPM
|
||||
|
|
@ -241,7 +242,7 @@
|
|||
# Configuration based upon above user input, not to be set directly
|
||||
##############################################################################
|
||||
|
||||
%if %{commercial}
|
||||
%if 0%{?commercial}
|
||||
%define license_files_server %{src_dir}/LICENSE.mysql
|
||||
%define license_type Commercial
|
||||
%else
|
||||
|
|
@ -264,7 +265,6 @@ Source: http://www.mysql.com/Downloads/MySQL-@MYSQL_BASE_VERSION@/%{src_
|
|||
URL: http://www.mysql.com/
|
||||
Packager: MySQL Release Engineering <mysql-build@oss.oracle.com>
|
||||
Vendor: %{mysql_vendor}
|
||||
Provides: msqlormysql MySQL-server
|
||||
BuildRequires: %{distro_buildreq}
|
||||
|
||||
# Regression tests may take a long time, override the default to skip them
|
||||
|
|
@ -313,9 +313,12 @@ Obsoletes: MySQL-server
|
|||
%else
|
||||
Obsoletes: MySQL-server-advanced
|
||||
%endif
|
||||
Obsoletes: mysql-server mysql-advanced mysql-server-advanced
|
||||
Obsoletes: mysql-server < %{version}-%{release}
|
||||
Obsoletes: mysql-server-advanced
|
||||
Obsoletes: MySQL-server-classic MySQL-server-community MySQL-server-enterprise
|
||||
Obsoletes: MySQL-server-advanced-gpl MySQL-server-enterprise-gpl
|
||||
Provides: mysql-server = %{version}-%{release}
|
||||
Provides: mysql-server%{?_isa} = %{version}-%{release}
|
||||
|
||||
%description -n MySQL-server%{product_suffix}
|
||||
The MySQL(TM) software delivers a very fast, multi-threaded, multi-user,
|
||||
|
|
@ -358,7 +361,7 @@ Obsoletes: mysql-advanced < %{version}-%{release}
|
|||
Obsoletes: MySQL-client-classic MySQL-client-community MySQL-client-enterprise
|
||||
Obsoletes: MySQL-client-advanced-gpl MySQL-client-enterprise-gpl
|
||||
Provides: mysql = %{version}-%{release}
|
||||
|
||||
Provides: mysql%{?_isa} = %{version}-%{release}
|
||||
|
||||
%description -n MySQL-client%{product_suffix}
|
||||
This package contains the standard MySQL clients and administration tools.
|
||||
|
|
@ -376,10 +379,13 @@ Obsoletes: MySQL-test
|
|||
Requires: MySQL-client perl
|
||||
Obsoletes: MySQL-test-advanced
|
||||
%endif
|
||||
Obsoletes: mysql-test mysql-test-advanced
|
||||
Obsoletes: mysql-test < %{version}-%{release}
|
||||
Obsoletes: mysql-test-advanced
|
||||
Obsoletes: mysql-bench MySQL-bench
|
||||
Obsoletes: MySQL-test-classic MySQL-test-community MySQL-test-enterprise
|
||||
Obsoletes: MySQL-test-advanced-gpl MySQL-test-enterprise-gpl
|
||||
Provides: mysql-test = %{version}-%{release}
|
||||
Provides: mysql-test%{?_isa} = %{version}-%{release}
|
||||
AutoReqProv: no
|
||||
|
||||
%description -n MySQL-test%{product_suffix}
|
||||
|
|
@ -396,10 +402,12 @@ Obsoletes: MySQL-devel
|
|||
%else
|
||||
Obsoletes: MySQL-devel-advanced
|
||||
%endif
|
||||
Obsoletes: mysql-devel mysql-embedded-devel mysql-devel-advanced mysql-embedded-devel-advanced
|
||||
Obsoletes: mysql-devel < %{version}-%{release}
|
||||
Obsoletes: mysql-embedded-devel mysql-devel-advanced mysql-embedded-devel-advanced
|
||||
Obsoletes: MySQL-devel-classic MySQL-devel-community MySQL-devel-enterprise
|
||||
Obsoletes: MySQL-devel-advanced-gpl MySQL-devel-enterprise-gpl
|
||||
|
||||
Provides: mysql-devel = %{version}-%{release}
|
||||
Provides: mysql-devel%{?_isa} = %{version}-%{release}
|
||||
|
||||
%description -n MySQL-devel%{product_suffix}
|
||||
This package contains the development header files and libraries necessary
|
||||
|
|
@ -438,10 +446,13 @@ Obsoletes: MySQL-embedded
|
|||
Requires: MySQL-devel
|
||||
Obsoletes: MySQL-embedded-advanced
|
||||
%endif
|
||||
Obsoletes: mysql-embedded mysql-embedded-advanced
|
||||
Obsoletes: mysql-embedded < %{version}-%{release}
|
||||
Obsoletes: mysql-embedded-advanced
|
||||
Obsoletes: MySQL-embedded-pro
|
||||
Obsoletes: MySQL-embedded-classic MySQL-embedded-community MySQL-embedded-enterprise
|
||||
Obsoletes: MySQL-embedded-advanced-gpl MySQL-embedded-enterprise-gpl
|
||||
Provides: mysql-embedded = %{version}-%{release}
|
||||
Provides: mysql-emdedded%{?_isa} = %{version}-%{release}
|
||||
|
||||
%description -n MySQL-embedded%{product_suffix}
|
||||
This package contains the MySQL server as an embedded library.
|
||||
|
|
@ -749,7 +760,7 @@ fi
|
|||
|
||||
# We assume that if there is exactly one ".pid" file,
|
||||
# it contains the valid PID of a running MySQL server.
|
||||
NR_PID_FILES=`ls $PID_FILE_PATT 2>/dev/null | wc -l`
|
||||
NR_PID_FILES=`ls -1 $PID_FILE_PATT 2>/dev/null | wc -l`
|
||||
case $NR_PID_FILES in
|
||||
0 ) SERVER_TO_START='' ;; # No "*.pid" file == no running server
|
||||
1 ) SERVER_TO_START='true' ;;
|
||||
|
|
@ -1265,6 +1276,12 @@ echo "=====" >> $STATUS_HISTORY
|
|||
# merging BK trees)
|
||||
##############################################################################
|
||||
%changelog
|
||||
* Mon Sep 09 2013 Balasubramanian Kandasamy <balasubramanian.kandasamy@oracle.com>
|
||||
- Updated logic to get the correct count of PID files
|
||||
|
||||
* Fri Aug 16 2013 Balasubramanian Kandasamy <balasubramanian.kandasamy@oracle.com>
|
||||
- Added provides lowercase mysql tags
|
||||
|
||||
* Wed Jun 26 2013 Balasubramanian Kandasamy <balasubramanian.kandasamy@oracle.com>
|
||||
- Cleaned up spec file to resolve rpm dependencies.
|
||||
|
||||
|
|
|
|||
|
|
@ -23,9 +23,9 @@ if [ $1 = 1 ] ; then
|
|||
# Create a MySQL user and group. Do not report any problems if it already
|
||||
# exists.
|
||||
groupadd -r %{mysqld_group} 2> /dev/null || true
|
||||
useradd -M -r -d $datadir -s /bin/bash -c "MySQL server" -g %{mysqld_group} %{mysqld_user} 2> /dev/null || true
|
||||
useradd -M -r --home $datadir --shell /sbin/nologin --comment "MySQL server" --gid %{mysqld_group} %{mysqld_user} 2> /dev/null || true
|
||||
# The user may already exist, make sure it has the proper group nevertheless (BUG#12823)
|
||||
usermod -g %{mysqld_group} %{mysqld_user} 2> /dev/null || true
|
||||
usermod --gid %{mysqld_group} %{mysqld_user} 2> /dev/null || true
|
||||
|
||||
# Change permissions so that the user that will run the MySQL daemon
|
||||
# owns all database files.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue