From: Arkadiusz Miśkiewicz Date: Tue, 15 Oct 2013 18:46:13 +0000 (+0200) Subject: - rel 1; works for me; build some libs statically; use our versioning script X-Git-Tag: auto/th/mysql-5.6.13-1 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=00fc1f0fec7ccc7e4c2df65b9483e56eabf0a607;p=packages%2Fmysql.git - rel 1; works for me; build some libs statically; use our versioning script --- diff --git a/mysql-build.patch b/mysql-build.patch index 4282730..42014ac 100644 --- a/mysql-build.patch +++ b/mysql-build.patch @@ -41,3 +41,30 @@ diff -urNbB mysql-5.0.13-rc.org/sql/mysqld.cc mysql-5.0.13-rc/sql/mysqld.cc { struct request_info req; signal(SIGCHLD, SIG_DFL); +--- Percona-Server-5.6.13-rel61.0/sql/CMakeLists.txt~ 2013-10-07 12:25:25.000000000 +0200 ++++ Percona-Server-5.6.13-rel61.0/sql/CMakeLists.txt 2013-10-15 20:37:28.259765844 +0200 +@@ -237,20 +237,20 @@ + log_event.cc log_event_old.cc binlog.cc sql_binlog.cc + rpl_filter.cc rpl_record.cc rpl_record_old.cc rpl_utility.cc + rpl_injector.cc) +-ADD_LIBRARY(binlog ${BINLOG_SOURCE}) ++ADD_LIBRARY(binlog STATIC ${BINLOG_SOURCE}) + SET (RPL_SOURCE rpl_handler.cc rpl_tblmap.cc) + ADD_DEPENDENCIES(binlog GenError) +-ADD_LIBRARY(rpl ${RPL_SOURCE}) ++ADD_LIBRARY(rpl STATIC ${RPL_SOURCE}) + SET (MASTER_SOURCE rpl_master.cc) + ADD_DEPENDENCIES(rpl GenError) +-ADD_LIBRARY(master ${MASTER_SOURCE}) ++ADD_LIBRARY(master STATIC ${MASTER_SOURCE}) + ADD_DEPENDENCIES(master GenError) + SET (SLAVE_SOURCE rpl_slave.cc rpl_reporting.cc rpl_mi.cc rpl_rli.cc + rpl_info_handler.cc rpl_info_file.cc rpl_info_table.cc + rpl_info_values.cc rpl_info.cc rpl_info_factory.cc + rpl_info_table_access.cc dynamic_ids.cc rpl_rli_pdb.cc + rpl_info_dummy.cc) +-ADD_LIBRARY(slave ${SLAVE_SOURCE}) ++ADD_LIBRARY(slave STATIC ${SLAVE_SOURCE}) + ADD_DEPENDENCIES(slave GenError) + ADD_LIBRARY(sqlgunitlib + filesort_utils.cc mdl.cc sql_list.cc sql_string.cc thr_malloc.cc diff --git a/mysql.spec b/mysql.spec index 9e51463..9b1e0d8 100644 --- a/mysql.spec +++ b/mysql.spec @@ -35,7 +35,7 @@ Summary(uk.UTF-8): MySQL - швидкий SQL-сервер Summary(zh_CN.UTF-8): MySQL数据库服务器 Name: mysql Version: 5.6.13 -Release: 0.1 +Release: 1 License: GPL + MySQL FLOSS Exception Group: Applications/Databases # Source0Download: http://dev.mysql.com/downloads/mysql/5.5.html#downloads @@ -511,6 +511,9 @@ mv sphinx-*/mysqlse storage/sphinx [ -f sql/sql_yacc.cc ] && rm sql/sql_yacc.cc [ -f sql/sql_yacc.h ] && rm sql/sql_yacc.h +# upstream has fallen down badly on symbol versioning, do it ourselves +install %{SOURCE15} libmysql/libmysql.ver.in + %build install -d build cd build @@ -525,10 +528,6 @@ cd build %{expand:%%define __cpp %(echo '%__cpp' | sed -e 's,-gcc,-gcc4,')} %endif -# upstream has fallen down badly on symbol versioning, do it ourselves -install -d libmysql -cp -a %{SOURCE15} libmysql/libmysql.version - %cmake \ -DCMAKE_BUILD_TYPE=%{!?debug:RelWithDebInfo}%{?debug:Debug} \ -DCMAKE_C_FLAGS_RELEASE="%{rpmcflags} -DNDEBUG -fno-omit-frame-pointer -fno-strict-aliasing" \