Merge lp:~percona-core/percona-server/percona-server-tokudb-rc into lp:percona-server/5.6

Proposed by Tomislav Plavcic
Status: Merged
Approved by: Alexey Kopytov
Approved revision: no longer in the source branch.
Merged at revision: 614
Proposed branch: lp:~percona-core/percona-server/percona-server-tokudb-rc
Merge into: lp:percona-server/5.6
Diff against target: 1026 lines (+801/-13) (has conflicts)
12 files modified
VERSION (+5/-0)
build-ps/build-binary.sh (+30/-3)
build-ps/debian/changelog (+6/-0)
build-ps/debian/control.tokudb (+266/-0)
build-ps/debian/percona-server-tokudb-5.6.files (+3/-0)
build-ps/debian/percona-server-tokudb-5.6.postinst (+18/-0)
build-ps/debian/rules (+1/-1)
build-ps/debian/rules.tokudb (+279/-0)
build-ps/percona-server.spec (+178/-8)
scripts/mysqld_safe.sh (+13/-0)
sql/handler.h (+1/-0)
storage/innobase/include/univ.i (+1/-1)
Text conflict in VERSION
To merge this branch: bzr merge lp:~percona-core/percona-server/percona-server-tokudb-rc
Reviewer Review Type Date Requested Status
Alexey Kopytov (community) Approve
Laurynas Biveinis Pending
Review via email: mp+223199@code.launchpad.net

This proposal supersedes a proposal from 2014-06-13.

Description of the change

Release branch for Release 5.6.17-66.0 (TokuDB RC)

To post a comment you must log in.
Revision history for this message
Laurynas Biveinis (laurynas-biveinis) wrote : Posted in a previous version of this proposal

sql/handler.h change is spurious and will be reverted in trunk after this is merged.

mysqld_safe.sh patch means that jemalloc will always be loaded if found in the checked paths, regardless of TokuDB presence, with no option to avoid it. Was this agreed on somewhere?

review: Needs Information
Revision history for this message
Tomislav Plavcic (tplavcic) wrote : Posted in a previous version of this proposal

Hi Laurynas,
regarding the jemalloc loading I have sent you mail that I sent to Vadim and his response - as I had same concerns. But basically he says it's ok, although feel free to comment it more if you think different.

Revision history for this message
Tomislav Plavcic (tplavcic) wrote :

The problem with change in sql/handler.h is that without it it won't compile (see link below):
http://jenkins.percona.com/job/percona-server-5.6-redhat-binary-test/4/label_exp=centos6-64/consoleFull
So we need to see what to do about it - will also write comment on the tokudb mailing list - there was some thread about this.

Revision history for this message
Alexey Kopytov (akopytov) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'VERSION'
--- VERSION 2014-06-11 13:45:54 +0000
+++ VERSION 2014-06-16 07:08:31 +0000
@@ -1,4 +1,9 @@
1MYSQL_VERSION_MAJOR=51MYSQL_VERSION_MAJOR=5
2MYSQL_VERSION_MINOR=62MYSQL_VERSION_MINOR=6
3<<<<<<< TREE
3MYSQL_VERSION_PATCH=194MYSQL_VERSION_PATCH=19
4MYSQL_VERSION_EXTRA=-66.15MYSQL_VERSION_EXTRA=-66.1
6=======
7MYSQL_VERSION_PATCH=17
8MYSQL_VERSION_EXTRA=-66.0
9>>>>>>> MERGE-SOURCE
510
=== modified file 'build-ps/build-binary.sh'
--- build-ps/build-binary.sh 2014-06-11 13:45:54 +0000
+++ build-ps/build-binary.sh 2014-06-16 07:08:31 +0000
@@ -24,6 +24,7 @@
24CRYPTO_LIBRARY=''24CRYPTO_LIBRARY=''
25TAG=''25TAG=''
26#26#
27CMAKE_BUILD_TYPE=''
27COMMON_FLAGS=''28COMMON_FLAGS=''
28#29#
29# Some programs that may be overriden30# Some programs that may be overriden
@@ -164,6 +165,24 @@
164export CC=${CC:-gcc}165export CC=${CC:-gcc}
165export CXX=${CXX:-g++}166export CXX=${CXX:-g++}
166167
168# TokuDB cmake flags
169if test -d "$SOURCEDIR/storage/tokudb"
170then
171 CMAKE_OPTS="${CMAKE_OPTS:-} -DBUILD_TESTING=OFF -DUSE_GTAGS=OFF -DUSE_CTAGS=OFF -DUSE_ETAGS=OFF -DUSE_CSCOPE=OFF"
172
173 if test "x$CMAKE_BUILD_TYPE" != "xDebug"
174 then
175 CMAKE_OPTS="${CMAKE_OPTS:-} -DTOKU_DEBUG_PARANOID=OFF"
176 else
177 CMAKE_OPTS="${CMAKE_OPTS:-} -DTOKU_DEBUG_PARANOID=ON"
178 fi
179
180 if [[ $CMAKE_OPTS == *WITH_VALGRIND=ON* ]]
181 then
182 CMAKE_OPTS="${CMAKE_OPTS:-} -DUSE_VALGRIND=ON"
183 fi
184fi
185
167#186#
168if [ -n "$(which rpm)" ]; then187if [ -n "$(which rpm)" ]; then
169 export COMMON_FLAGS=$(rpm --eval %optflags | sed -e "s|march=i386|march=i686|g")188 export COMMON_FLAGS=$(rpm --eval %optflags | sed -e "s|march=i386|march=i686|g")
@@ -235,9 +254,17 @@
235(254(
236 cd "$INSTALLDIR/usr/local/"255 cd "$INSTALLDIR/usr/local/"
237256
238 $TAR czf "$WORKDIR_ABS/$PRODUCT_FULL.tar.gz" \257 find $PRODUCT_FULL ! -type d ! -iname "*tdb*.h" -a ! -iname "*toku*" | sort > $WORKDIR_ABS/tokudb_server.list
239 --owner=0 --group=0 "$PRODUCT_FULL/"258 $TAR --owner=0 --group=0 -czf "$WORKDIR_ABS/$PRODUCT_FULL.tar.gz" -T $WORKDIR_ABS/tokudb_server.list
240 259 rm -f $WORKDIR_ABS/tokudb_server.list
260
261 if test -e "$PRODUCT_FULL/lib/mysql/plugin/ha_tokudb.so"
262 then
263 TARGETTOKU=$(echo $PRODUCT_FULL | sed 's/.Linux/.TokuDB.Linux/')
264 find $PRODUCT_FULL ! -type d -iname "*toku*" -o -iname "*tdb*.h" > $WORKDIR_ABS/tokudb_plugin.list
265 $TAR --owner=0 --group=0 -czf "$WORKDIR_ABS/$TARGETTOKU.tar.gz" -T $WORKDIR_ABS/tokudb_plugin.list
266 rm -f $WORKDIR_ABS/tokudb_plugin.list
267 fi
241)268)
242269
243# Clean up270# Clean up
244271
=== modified file 'build-ps/debian/changelog'
--- build-ps/debian/changelog 2014-06-11 13:45:54 +0000
+++ build-ps/debian/changelog 2014-06-16 07:08:31 +0000
@@ -1,3 +1,9 @@
1percona-server-5.6 (5.6.17-rel66.0) unstable; urgency=low
2
3 * Added packaging changes regarding TokuDB
4
5 -- Tomislav Plavcic <tomislav.plavcic@percona.com> Mon, 26 May 2014 08:28:27 +0200
6
1percona-server-5.6 (5.6.17-rel65.0) unstable; urgency=low7percona-server-5.6 (5.6.17-rel65.0) unstable; urgency=low
28
3 * Fixed provides/breaks/replaces for client/server debian packages9 * Fixed provides/breaks/replaces for client/server debian packages
410
=== added file 'build-ps/debian/control.tokudb'
--- build-ps/debian/control.tokudb 1970-01-01 00:00:00 +0000
+++ build-ps/debian/control.tokudb 2014-06-16 07:08:31 +0000
@@ -0,0 +1,266 @@
1Source: percona-server-5.6
2Section: database
3Priority: extra
4Maintainer: Percona Server Development Team <mysql-dev@percona.com>
5Uploaders: George Lorch <george.lorch@percona.com>,
6 Alexey Bychko <alexey.bychko@percona.com>
7Build-Depends: libtool (>= 1.4.2-7),
8 procps,
9 debhelper (>= 7.0.50~),
10 file (>= 3.28),
11 libncurses5-dev (>= 5.0-6),
12 perl (>= 5.6.0),
13 libwrap0-dev (>= 7.6-8.3),
14 zlib1g-dev (>= 1:1.1.3-5),
15 libreadline-dev,
16 psmisc,
17 po-debconf,
18 chrpath,
19 ghostscript,
20 gawk,
21 bison,
22 lsb-release,
23 cmake,
24 gcc (>= 4.4),
25 g++ (>= 4.4),
26 libaio-dev[linux-any],
27 libpam-dev,
28 libssl-dev
29Standards-Version: 3.9.4
30Homepage: http://www.percona.com/software/percona-server/
31Vcs-Bzr: lp:percona-server/5.6
32
33Package: percona-server-tokudb-5.6
34Section: database
35Architecture: any
36Depends: percona-server-server-5.6 (= ${binary:Version}), libjemalloc1 (>= 3.3.0), ${misc:Depends}
37Description: TokuDB engine plugin for Percona Server
38 .
39 TokuDB is a storage engine for MySQL and MariaDB that is specifically
40 designed for high performance on write-intensive workloads. It achieves
41 this via Fractal Tree indexing. TokuDB is a scalable, ACID and MVCC compliant
42 storage engine that provides indexing-based query improvements, offers online
43 schema modifications, and reduces slave lag for both hard disk drives and flash memory.
44 .
45 This package includes the TokuDB plugin library.
46
47Package: libperconaserverclient18.1
48Section: libs
49Architecture: any
50Depends: percona-server-common-5.6, ${misc:Depends}, ${shlibs:Depends}
51Replaces: libpercona-server-client16, libperconaserverclient18
52Description: Percona Server database client library
53 Percona Server is a fast, stable and true multi-user,
54 multi-threaded SQL database server. SQL (Structured Query Language)
55 is the most popular database query language in the world. The main
56 goals of Percona Server are speed, robustness and ease of use.
57 .
58 This package includes the client library.
59
60Package: libperconaserverclient18.1-dev
61Architecture: any
62Section: libdevel
63Depends: libperconaserverclient18.1 (= ${binary:Version}),
64 zlib1g-dev, ${misc:Depends}
65Breaks: libperconaserverclient18-dev,
66 libperconaserverclient16-dev,
67 libperconaserverclient15-dev,
68 libperconaserverclient14-dev,
69 libperconaserverclient12-dev,
70 libperconaserverclient10-dev,
71 libmysqlclient-dev,
72 libmysqlclient18-dev,
73 libmariadbclient-dev
74Replaces: libperconaserverclient18-dev,
75 libperconaserverclient16-dev,
76 libperconaserverclient15-dev,
77 libperconaserverclient14-dev,
78 libperconaserverclient12-dev,
79 libperconaserverclient10-dev,
80 libpercona-xtradb-client-dev,
81 libmariadbclient-dev
82Provides: libmysqlclient-dev
83Description: Percona Server database development files
84 Percona Server is a fast, stable and true multi-user, multi-threaded SQL
85 database server. SQL (Structured Query Language) is the most popular
86 database query language in the world. The main goals of Percona Server are
87 speed, robustness and ease of use.
88 .
89 This package includes development libraries and header files.
90
91Package: percona-server-common-5.6
92Section: database
93Architecture: any
94Depends: ${misc:Depends}
95Description: Percona Server database common files (e.g. /etc/mysql/my.cnf)
96 Percona Server is a fast, stable and true multi-user, multi-threaded SQL
97 database server. SQL (Structured Query Language) is the most popular database
98 query language in the world. The main goals of Percona Server are speed,
99 robustness and ease of use.
100 .
101 This package includes files needed by all versions of the client library
102 (e.g. /etc/mysql/my.cnf).
103
104Package: percona-server-client-5.6
105Architecture: any
106Depends: debianutils (>=1.6),
107 libdbi-perl,
108 percona-server-common-5.6 (>= ${source:Version}),
109 libperconaserverclient18.1 (>= ${source:Version}),
110 ${shlibs:Depends},
111 ${misc:Depends}
112Provides: mysql-client,
113 virtual-mysql-client,
114 virtual-mysql-client-core
115Breaks: mysql-client-5.0,
116 mysql-client-core-5.1,
117 mysql-client-core-5.5,
118 mysql-client-5.1,
119 mysql-client-5.5,
120 mysql-client-5.6,
121 percona-xtradb-client-5.0,
122 percona-server-client-5.1,
123 percona-server-client-5.5,
124 mariadb-client,
125 mariadb-client-core-5.5,
126 mariadb-client-5.5,
127 virtual-mysql-client,
128 virtual-mysql-client-core
129Replaces: mysql-client-5.0,
130 mysql-client-core-5.1,
131 mysql-client-core-5.5,
132 mysql-client-5.1,
133 mysql-client-5.5,
134 mysql-client-5.6,
135 percona-xtradb-client-5.0,
136 percona-server-client-5.1,
137 percona-server-client-5.5,
138 mariadb-client,
139 mariadb-client-core-5.5,
140 mariadb-client-5.5,
141 virtual-mysql-client,
142 virtual-mysql-client-core
143Description: Percona Server database client binaries
144 Percona Server is a fast, stable and true multi-user, multi-threaded SQL
145 database server. SQL (Structured Query Language) is the most popular database
146 query language in the world. The main goals of Percona Server are speed,
147 robustness and ease of use.
148 .
149 This package includes the client binaries and the additional tools
150 innotop and mysqlreport.
151
152Package: percona-server-server-5.6
153Architecture: any
154Suggests: tinyca
155Pre-Depends: percona-server-common-5.6 (>= ${source:Version}),
156 adduser (>= 3.4.0),
157 debconf
158Depends: percona-server-client-5.6 (>= ${source:Version}),
159 libdbi-perl,
160 libdbd-mysql-perl,
161 perl (>= 5.6),
162 ${shlibs:Depends},
163 ${misc:Depends},
164 psmisc,
165 passwd,
166 lsb-base (>= 3.0-10)
167Provides: mysql-server,
168 virtual-mysql-server,
169 virtual-mysql-server-core
170Breaks: mysql-server-5.0,
171 mysql-server-5.1,
172 mysql-server-5.5,
173 mysql-server-5.6,
174 mysql-server-core-5.1,
175 percona-xtradb-server-5.0,
176 percona-server-server-5.1,
177 percona-server-server-5.5,
178 mariadb-server,
179 mariadb-server-core-5.5,
180 mariadb-server-5.5,
181 virtual-mysql-server,
182 virtual-mysql-server-core
183Replaces: mysql-server-5.0,
184 mysql-server-5.1,
185 mysql-server-5.5,
186 mysql-server-5.6,
187 mysql-server-core-5.1,
188 percona-xtradb-server-5.0,
189 percona-server-server-5.1,
190 percona-server-server-5.5,
191 mariadb-server,
192 mariadb-server-core-5.5,
193 mariadb-server-5.5,
194 virtual-mysql-server,
195 virtual-mysql-server-core
196Description: Percona Server database server binaries
197 Percona Server is a fast, stable and true multi-user, multi-threaded SQL
198 database server. SQL (Structured Query Language) is the most popular database
199 query language in the world. The main goals of Percona Server are speed,
200 robustness and ease of use.
201 .
202 This package includes the server binaries.
203
204Package: percona-server-server
205Section: database
206Architecture: any
207Depends: percona-server-server-5.6, ${misc:Depends}
208Description: Percona Server database server
209 (metapackage depending on the latest version)
210 This is an empty package that depends on the current "best" version of
211 percona-server-server (currently percona-server-server-5.6), as determined
212 by the Percona Server maintainers. Install this package if in doubt
213 about which Percona Server version you need. That will install the version
214 recommended by the package maintainers.
215 .
216 Percona Server is a fast, stable and true multi-user, multi-threaded SQL
217 database server. SQL (Structured Query Language) is the most popular database
218 query language in the world. The main goals of Percona Server are speed,
219 robustness and ease of use.
220
221Package: percona-server-client
222Section: database
223Architecture: any
224Depends: percona-server-client-5.6, ${misc:Depends}
225Description: Percona Server database client
226 (metapackage depending on the latest version)
227 This is an empty package that depends on the current "best" version of
228 percona-server-client (currently percona-server-client-5.6), as determined
229 by the Percona Server maintainers. Install this package if in doubt
230 about which Percona Server version you want, as this is the one we consider
231 to be in the best shape.
232
233Package: percona-server-test-5.6
234Architecture: any
235Depends: percona-server-client-5.6 (>= ${source:Version}),
236 percona-server-server-5.6 (>= ${source:Version}),
237 ${misc:Depends},
238 ${shlibs:Depends}
239Description: Percona Server database test suite
240 Percona Server is a fast, stable and true multi-user, multi-threaded SQL
241 database server. SQL (Structured Query Language) is the most popular database
242 query language in the world. The main goals of Percona Server are speed,
243 robustness and ease of use.
244 .
245 This package includes the Percona Server test framework that provides
246 a means for verifying that Percona Server and its client programs
247 operate according to expectations
248
249Package: percona-server-source-5.6
250Architecture: any
251Depends: ${misc:Depends}, ${shlibs:Depends}
252Description: Percona Server 5.6 source
253 This package includes the source code to Percona Server as configured before
254 building.
255
256Package: percona-server-5.6-dbg
257Architecture: any
258Section: debug
259Depends: percona-server-server-5.6 (= ${binary:Version}), ${misc:Depends}
260Description: Debugging package for Percona Server
261 Percona Server is a fast, stable and true multi-user, multi-threaded SQL
262 database server. SQL (Structured Query Language) is the most popular database
263 query language in the world. The main goals of Percona Server are speed,
264 robustness and ease of use.
265 .
266 This package contains the debugging symbols for the Percona Server binaries.
0267
=== added file 'build-ps/debian/percona-server-tokudb-5.6.files'
--- build-ps/debian/percona-server-tokudb-5.6.files 1970-01-01 00:00:00 +0000
+++ build-ps/debian/percona-server-tokudb-5.6.files 2014-06-16 07:08:31 +0000
@@ -0,0 +1,3 @@
1usr/lib/mysql/plugin/ha_tokudb.so
2usr/bin/tokuftdump
3usr/include/tdb-internal.h
04
=== added file 'build-ps/debian/percona-server-tokudb-5.6.postinst'
--- build-ps/debian/percona-server-tokudb-5.6.postinst 1970-01-01 00:00:00 +0000
+++ build-ps/debian/percona-server-tokudb-5.6.postinst 2014-06-16 07:08:31 +0000
@@ -0,0 +1,18 @@
1#!/bin/bash -e
2
3# Some postinstall info about TokuDB
4if [ -z "$2" ]; then
5 echo -e "\n\n * This release of Percona Server is distributed with TokuDB storage engine."
6 echo -e " * Run the following commands to enable the TokuDB storage engine in Percona Server:\n"
7 echo -e "\tmysql -e \"INSTALL PLUGIN tokudb SONAME 'ha_tokudb.so';\""
8 echo -e "\tmysql -e \"INSTALL PLUGIN tokudb_file_map SONAME 'ha_tokudb.so';\""
9 echo -e "\tmysql -e \"INSTALL PLUGIN tokudb_fractal_tree_info SONAME 'ha_tokudb.so';\""
10 echo -e "\tmysql -e \"INSTALL PLUGIN tokudb_fractal_tree_block_map SONAME 'ha_tokudb.so';\""
11 echo -e "\tmysql -e \"INSTALL PLUGIN tokudb_trx SONAME 'ha_tokudb.so';\""
12 echo -e "\tmysql -e \"INSTALL PLUGIN tokudb_locks SONAME 'ha_tokudb.so';\""
13 echo -e "\tmysql -e \"INSTALL PLUGIN tokudb_lock_waits SONAME 'ha_tokudb.so';\""
14 echo -e "\n * See http://www.percona.com/doc/percona-server/5.6/tokudb/tokudb_intro.html for more details\n\n"
15fi
16
17#DEBHELPER#
18exit 0
019
=== modified file 'build-ps/debian/rules'
--- build-ps/debian/rules 2014-06-11 13:45:54 +0000
+++ build-ps/debian/rules 2014-06-16 07:08:31 +0000
@@ -137,7 +137,7 @@
137 rm -rf $(builddir)137 rm -rf $(builddir)
138138
139 debconf-updatepo139 debconf-updatepo
140 rm -f $(EXPORTED_SOURCE_TARBALL)140 # rm -f $(EXPORTED_SOURCE_TARBALL)
141 dh_clean -v141 dh_clean -v
142142
143143
144144
=== added file 'build-ps/debian/rules.tokudb'
--- build-ps/debian/rules.tokudb 1970-01-01 00:00:00 +0000
+++ build-ps/debian/rules.tokudb 2014-06-16 07:08:31 +0000
@@ -0,0 +1,279 @@
1#!/usr/bin/make -f
2
3export DH_VERBOSE=1
4export DEB_BUILD_HARDENING=1
5
6PACKAGE=percona-server-5.6
7PS_VERSION_EXTRA = '@@PERCONA_VERSION_EXTRA@@'
8REVISION = '@@REVISION@@'
9COMPILATION_COMMENT_RELEASE = "Percona Server (GPL), Release $(PS_VERSION_EXTRA), Revision $(REVISION)"
10
11TMP=$(CURDIR)/debian/tmp/
12prefix=/usr
13
14ARCH = $(shell dpkg-architecture -qDEB_BUILD_ARCH)
15ARCH_OS = $(shell dpkg-architecture -qDEB_BUILD_ARCH_OS)
16NCPU = $(shell grep -c processor /proc/cpuinfo)
17DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
18DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
19
20export MYSQL_BUILD_CC=$(DEB_HOST_GNU_TYPE)-gcc$(USE_THIS_GCC_VERSION)
21export MYSQL_BUILD_CXX=$(DEB_HOST_GNU_TYPE)-g++$(USE_THIS_GCC_VERSION)
22
23DEB_SOURCE_PACKAGE ?= $(strip $(shell egrep '^Source: ' debian/control | cut -f 2 -d ':'))
24DEB_VERSION ?= $(shell dpkg-parsechangelog | egrep '^Version:' | cut -f 2 -d ' ')
25DEB_NOEPOCH_VERSION ?= $(shell echo $(DEB_VERSION) | cut -d: -f2-)
26DEB_UPSTREAM_VERSION ?= $(shell echo $(DEB_NOEPOCH_VERSION) | sed 's/-[^-]*$$//')
27DEB_UPSTREAM_VERSION_MAJOR_MINOR := $(shell echo $(DEB_UPSTREAM_VERSION) | sed -r -n 's/^([0-9]+\.[0-9]+).*/\1/p')
28DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
29
30EXPORTED_SOURCE_TARBALL = debian/percona-server-source-5.6.tar.gz
31
32DISTRIBUTION = $(shell lsb_release -i -s)
33
34MYSQL_SRC = $(shell pwd)
35
36#MAKE_TEST_TARGET=test-mtr
37ifneq ($(findstring fulltest,$(DEB_BUILD_OPTIONS)),)
38# make test-bt is the testsuite run by the MySQL build team
39# before a release, but it is long
40 MAKE_TEST_TARGET=test-bt
41endif
42
43USE_ASSEMBLER=--enable-assembler
44
45ifneq (,$(filter $(ARCH), amd64 i386))
46 TESTSUITE_FAIL_CMD=exit 1
47else
48 TESTSUITE_FAIL_CMD=true
49endif
50
51builddir = builddir
52
53configure: patch configure-stamp
54
55configure-stamp:
56 @echo "RULES.$@"
57 dh_testdir
58
59ifneq ($(ARCH_OS),hurd)
60 if [ ! -d /proc/self ]; then echo "/proc IS NEEDED" 1>&2; exit 1; fi
61endif
62
63 [ ! -d python-for-subunit2junitxml ] || rm -rf python-for-subunit2junitxml
64
65 ( test -d $(builddir) || mkdir $(builddir) ) && cd $(builddir) && \
66 sh -c 'PATH=$${MYSQL_BUILD_PATH:-"/bin:/usr/bin"} \
67 CC=$${MYSQL_BUILD_CC:-gcc} \
68 CFLAGS=$${MYSQL_BUILD_CFLAGS:-"-O2 -g -fno-strict-aliasing"} \
69 CXX=$${MYSQL_BUILD_CXX:-g++} \
70 CXXFLAGS=$${MYSQL_BUILD_CXXFLAGS:-"-O3 -g -felide-constructors -fno-exceptions -fno-rtti -fno-strict-aliasing"} \
71 cmake -DCMAKE_INSTALL_PREFIX=/usr \
72 \
73 -DMYSQL_UNIX_ADDR=/var/run/mysqld/mysqld.sock \
74 -DCMAKE_BUILD_TYPE=RelWithDebInfo \
75 -DWITH_LIBWRAP=ON \
76 -DWITH_ZLIB=system \
77 -DWITH_SSL=system \
78 -DCOMPILATION_COMMENT=$(COMPILATION_COMMENT_RELEASE) \
79 -DSYSTEM_TYPE="debian-linux-gnu" \
80 -DINSTALL_LAYOUT=RPM \
81 -DINSTALL_LIBDIR=lib/$(DEB_HOST_MULTIARCH) \
82 -DINSTALL_PLUGINDIR=lib/mysql/plugin \
83 -DWITH_EMBEDDED_SERVER=OFF \
84 -DWITH_INNODB_MEMCACHED=ON \
85 -DWITH_ARCHIVE_STORAGE_ENGINE=ON \
86 -DWITH_BLACKHOLE_STORAGE_ENGINE=ON \
87 -DWITH_FEDERATED_STORAGE_ENGINE=ON \
88 -DWITH_PAM=ON -DWITH_EXTRA_CHARSETS=all \
89 -DWITH_VALGRIND=OFF -DUSE_VALGRIND=OFF -DDEBUG_EXTNAME=OFF -DBUILD_TESTING=OFF -DUSE_GTAGS=OFF \
90 -DUSE_CTAGS=OFF -DUSE_ETAGS=OFF -DUSE_CSCOPE=OFF -DTOKU_DEBUG_PARANOID=OFF ..'
91
92 touch $@
93
94build: build-arch build-indep
95build-arch: build-stamp
96build-indep: build-stamp
97
98build-stamp: configure
99 @echo "RULES.$@"
100 dh_testdir
101
102 [ -f $(EXPORTED_SOURCE_TARBALL) ] || tar -zcf $(EXPORTED_SOURCE_TARBALL) \
103 --exclude=debian . \
104 --transform="s,^\./,percona-server-5.6/,"
105
106 cd $(builddir) && $(MAKE) -j$(NCPU) VERBOSE=1
107
108ifeq ($(findstring nocheck,$(DEB_BUILD_OPTIONS)),)
109 # Don't know why the following is necessary...
110 cp unittest/unit.pl $(builddir)/unittest/
111 cp -r mysql-test/* $(builddir)/mysql-test/
112 cp -r sql/share/* $(builddir)/sql/share/
113 cp -r scripts/*sql $(builddir)/scripts/
114 if [ ! -f testsuite-stamp ] ; then \
115 (cd $(builddir) && $(MAKE) test-unit) || $(TESTSUITE_FAIL_CMD) ; \
116 cd $(builddir) && $(MAKE) $(MAKE_TEST_TARGET) || $(TESTSUITE_FAIL_CMD) ; \
117 fi
118endif
119
120 touch testsuite-stamp
121
122 touch build-stamp
123
124clean: clean-patched
125 rm -rf debian/patched
126
127clean-patched:
128 @echo "RULES.clean-patched"
129 dh_testdir
130 dh_testroot
131 rm -f configure-stamp*
132 rm -f build-stamp*
133 rm -f testsuite-stamp
134
135 [ ! -f Makefile ] || $(MAKE) clean
136 [ ! -d mysql-test/var ] || rm -rf mysql-test/var
137 [ ! -d python-for-subunit2junitxml ] || rm -rf python-for-subunit2junitxml
138
139 rm -rf $(builddir)
140
141 debconf-updatepo
142 # rm -f $(EXPORTED_SOURCE_TARBALL)
143 dh_clean -v
144
145
146install: build
147 @echo "RULES.$@"
148 dh_testdir
149 dh_testroot
150 dh_prep
151 dh_installdirs
152
153 # make install (trailing slash needed for innobase)
154 (cd $(builddir) && $(MAKE) install DESTDIR=$(TMP)/)
155
156 # After installing, remove rpath to make lintian happy.
157 set +e; \
158 find ./debian/tmp/ -type f -print0 \
159 | xargs -0 --no-run-if-empty chrpath -k 2>/dev/null \
160 | fgrep RPATH= \
161 | cut -d: -f 1 \
162 | xargs --no-run-if-empty chrpath -d; \
163 set -e
164
165 # libperconaserverclient: move shared libraries (but not the rest like libheap.a & co)
166 # libmysqlclient_r is now a symlink to libmysqlclient. But it is
167 # created wrong by the cmake build system and points at
168 # libmysqlclient.so instead of the corresponding versioned lib.
169 for i in `ls $(TMP)/usr/lib/$(DEB_HOST_MULTIARCH)/libperconaserverclient.so*` ; do \
170 rlib=`basename $$i | sed -e 's/libperconaserverclient\./libperconaserverclient_r./'` ;\
171 ln -sf `basename $$i` $(TMP)/usr/lib/$(DEB_HOST_MULTIARCH)/$$rlib ;\
172 done
173
174 # libmysqlclient-dev: forgotten header file since 3.23.25?
175 #cp $(BUILDDIR)/include/my_config.h $(TMP)/usr/include/mysql/
176 #cp include/my_dir.h $(TMP)/usr/include/mysql/
177 # install libmysqld built with -FPIC
178 install -d -m 0755 -o root -g root $(TMP)/usr/lib/percona-server
179 #install -m 0644 -o root -g root $(BUILDDIR_PIC)/libmysqld/libmysqld.a $(TMP)/usr/lib/mysql/libmysqld_pic.a
180 # mysql_config won't report the -fPIC, so give libmysqld-pic users a way to get their flags
181 #install -m 0755 -o root -g root $(BUILDDIR_PIC)/scripts/mysql_config $(TMP)/usr/bin/mysql_config_pic
182
183 # mysql-common: We now provide our own config file.
184 install -d $(TMP)/etc/mysql
185 #install -m 0644 debian/additions/my.cnf $(TMP)/etc/mysql/my.cnf
186
187 # mysql-client
188 #FIXME install -m 0755 debian/additions/mysqlreport $(TMP)/usr/bin/
189 #FIXME install -m 0755 debian/additions/innotop/innotop $(TMP)/usr/bin/
190 #FIXME install -m 0644 debian/additions/innotop/innotop.1 $(TMP)/usr/share/man/man1/
191
192 # mysql-server
193 mkdir -p $(TMP)/usr/share/doc/percona-server-5.6/examples
194 mv $(TMP)/usr/share/mysql/*cnf $(TMP)/usr/share/doc/percona-server-5.6/examples/
195 rm -vf $(TMP)/usr/share/mysql/mi_test_all* \
196 $(TMP)/usr/share/mysql/mysql-log-rotate \
197 $(TMP)/usr/share/mysql/mysql.server \
198 $(TMP)/usr/share/mysql/binary-configure
199 nm -n $(builddir)/sql/mysqld |gzip -9 > $(TMP)/usr/share/doc/percona-server-5.6/mysqld.sym.gz
200 # FIXME install -m 0755 debian/additions/echo_stderr $(TMP)/usr/share/mysql/
201 install -m 0755 debian/additions/debian-start $(TMP)/etc/mysql/
202 install -m 0755 debian/additions/debian-start.inc.sh $(TMP)/usr/share/mysql/
203
204 # install AppArmor profile
205 # FIXME install -D -m 644 debian/apparmor-profile $(TMP)/etc/apparmor.d/usr.sbin.mysqld
206 # install Apport hook
207 # FIXME install -D -m 644 debian/mysql-server-5.6.py $(TMP)/usr/share/apport/package-hooks/source_mysql-5.6.py
208
209 install -D -m 0644 $(EXPORTED_SOURCE_TARBALL) $(TMP)/usr/src/percona-server/`basename $(EXPORTED_SOURCE_TARBALL)`
210
211 dh_movefiles
212
213# Build architecture-independent files here.
214binary-indep: build install
215 @echo "RULES.binary-indep"
216 dh_testdir -i
217 dh_testroot -i
218 dh_installdebconf -i
219 dh_installdocs -i
220 dh_installexamples -i
221 dh_installmenu -i
222 dh_installlogrotate -i
223 dh_installinit -i
224 dh_installcron -i
225 dh_installman -i
226 dh_installinfo -i
227 dh_installlogcheck -i
228 dh_installchangelogs -i
229 dh_link -i
230 dh_compress -i
231 dh_fixperms -i
232 dh_installdeb -i
233 dh_perl -i
234 dh_gencontrol -i
235 dh_md5sums -i
236 dh_builddeb -i
237
238binary-arch: build install
239 @echo "RULES.binary-arch"
240 dh_testdir
241 dh_testroot
242
243 dh_installdebconf -a
244 dh_installdocs -a
245 dh_installexamples -a
246 dh_installmenu -a
247 dh_installlogrotate -a --name mysql-server
248 if [ "$(DISTRIBUTION)" = "Ubuntu" ]; then if [ "$(DISTRELEASE)" != "lucid"]; then dh_apparmor -pmysql-server-5.5 --profile-name=usr.sbin.mysqld; fi; fi
249 # Start mysql in runlevel 19 before 20 where apache, proftpd etc gets
250 # started which might depend on a running database server.
251 dh_installinit -a --name=mysql -- defaults 19 21
252 dh_installcron -a --name mysql-server
253 dh_installman -a
254 dh_installinfo -a
255 dh_installlogcheck -a
256 dh_installchangelogs -a
257 dh_strip -a --dbg-package=percona-server-5.6-dbg
258 dh_lintian
259 dh_link -a # .so muss nach .so.1.2.3 installier werden!
260 dh_compress -a
261 dh_fixperms -a
262 dh_makeshlibs -a
263 dh_installdeb -a
264 dh_perl -a
265 #dh_shlibdeps -a -l debian/libmysqlclient16/usr/lib -L libmysqlclient16
266 dh_shlibdeps -a
267 dh_gencontrol -a
268 dh_md5sums -a
269 dh_builddeb -a
270
271binary: binary-indep binary-arch
272
273override_dh_auto_install:
274 dh_auto_install
275
276.PHONY: clean clean-patched configure build binary binary-indep binary-arch install patch
277
278override_dh_installinit:
279 dh_installinit --name=mysql --error-handler=:
0280
=== modified file 'build-ps/percona-server.spec'
--- build-ps/percona-server.spec 2014-06-11 13:45:54 +0000
+++ build-ps/percona-server.spec 2014-06-16 07:08:31 +0000
@@ -30,6 +30,19 @@
30%define percona_server_version @@PERCONA_VERSION@@30%define percona_server_version @@PERCONA_VERSION@@
31%define revision @@REVISION@@31%define revision @@REVISION@@
3232
33#
34%bcond_with tokudb
35#
36%if %{with tokudb}
37 %define TOKUDB_FLAGS -DWITH_VALGRIND=OFF -DUSE_VALGRIND=OFF -DDEBUG_EXTNAME=OFF -DBUILD_TESTING=OFF -DUSE_GTAGS=OFF -DUSE_CTAGS=OFF -DUSE_ETAGS=OFF -DUSE_CSCOPE=OFF
38 %define TOKUDB_DEBUG_ON -DTOKU_DEBUG_PARANOID=ON
39 %define TOKUDB_DEBUG_OFF -DTOKU_DEBUG_PARANOID=OFF
40%else
41 %define TOKUDB_FLAGS %{nil}
42 %define TOKUDB_DEBUG_ON %{nil}
43 %define TOKUDB_DEBUG_OFF %{nil}
44%endif
45#
33%define mysqld_user mysql46%define mysqld_user mysql
34%define mysqld_group mysql47%define mysqld_group mysql
35%define mysqldatadir /var/lib/mysql48%define mysqldatadir /var/lib/mysql
@@ -227,6 +240,9 @@
227Distribution: %{distro_description}240Distribution: %{distro_description}
228License: Copyright (c) 2000, 2010, %{mysql_vendor}. All rights reserved. Use is subject to license terms. Under %{license_type} license as shown in the Description field.241License: Copyright (c) 2000, 2010, %{mysql_vendor}. All rights reserved. Use is subject to license terms. Under %{license_type} license as shown in the Description field.
229Source: http://www.percona.com/downloads/Percona-Server-5.6/Percona-Server-%{mysql_version}-%{percona_server_version}/source/%{src_dir}.tar.gz242Source: http://www.percona.com/downloads/Percona-Server-5.6/Percona-Server-%{mysql_version}-%{percona_server_version}/source/%{src_dir}.tar.gz
243%if %{with tokudb}
244Source1: http://www.percona.com/downloads/Percona-Server-5.6/Percona-Server-%{mysql_version}-%{percona_server_version}/source/%{src_dir}.tokudb.tar.gz
245%endif
230URL: http://www.percona.com/246URL: http://www.percona.com/
231Packager: Percona MySQL Development Team <mysqldev@percona.com>247Packager: Percona MySQL Development Team <mysqldev@percona.com>
232Vendor: %{percona_server_vendor}248Vendor: %{percona_server_vendor}
@@ -273,11 +289,26 @@
273If you want to access and work with the database, you have to install289If you want to access and work with the database, you have to install
274package "Percona-Server-client%{product_suffix}" as well!290package "Percona-Server-client%{product_suffix}" as well!
275291
292%if %{with tokudb}
293# ----------------------------------------------------------------------------
294%package -n Percona-Server-tokudb%{product_suffix}
295Summary: Percona Server - TokuDB
296Group: Applications/Databases
297Requires: Percona-Server-server%{product_suffix} = %{version}-%{release}
298Requires: Percona-Server-shared%{product_suffix} = %{version}-%{release}
299Requires: Percona-Server-client%{product_suffix} = %{version}-%{release}
300Requires: jemalloc >= 3.3.0
301Provides: tokudb-plugin = %{version}-%{release}
302
303%description -n Percona-Server-tokudb%{product_suffix}
304This package contains the TokuDB plugin for Percona Server %{version}-%{release}
305%endif
306
276# ----------------------------------------------------------------------------307# ----------------------------------------------------------------------------
277%package -n Percona-Server-client%{product_suffix}308%package -n Percona-Server-client%{product_suffix}
278Summary: Percona Server - Client309Summary: Percona Server - Client
279Group: Applications/Databases310Group: Applications/Databases
280Requires: Percona-Server-shared%{product_suffix}311Requires: Percona-Server-shared%{product_suffix}
281Provides: mysql-client MySQL-client mysql MySQL312Provides: mysql-client MySQL-client mysql MySQL
282Conflicts: Percona-SQL-client-50 Percona-Server-client-51 Percona-Server-client-55313Conflicts: Percona-SQL-client-50 Percona-Server-client-51 Percona-Server-client-55
283314
@@ -331,6 +362,9 @@
331##############################################################################362##############################################################################
332%prep363%prep
333%setup -n %{src_dir}364%setup -n %{src_dir}
365%if %{with tokudb}
366%setup -n %{src_dir} -T -D -b 1
367%endif
334##############################################################################368##############################################################################
335%build369%build
336370
@@ -350,7 +384,11 @@
350RPM_OPT_FLAGS=384RPM_OPT_FLAGS=
351%endif385%endif
352#386#
387%if %{with tokudb}
388RPM_OPT_FLAGS=
389%else
353RPM_OPT_FLAGS=$(echo ${RPM_OPT_FLAGS} | sed -e 's|-march=i386|-march=i686|g')390RPM_OPT_FLAGS=$(echo ${RPM_OPT_FLAGS} | sed -e 's|-march=i386|-march=i686|g')
391%endif
354#392#
355export PATH=${MYSQL_BUILD_PATH:-$PATH}393export PATH=${MYSQL_BUILD_PATH:-$PATH}
356export CC=${MYSQL_BUILD_CC:-${CC:-gcc}}394export CC=${MYSQL_BUILD_CC:-${CC:-gcc}}
@@ -399,7 +437,8 @@
399 -DINSTALL_SUPPORTFILESDIR=share/percona-server \437 -DINSTALL_SUPPORTFILESDIR=share/percona-server \
400 -DMYSQL_UNIX_ADDR="/var/lib/mysql/mysql.sock" \438 -DMYSQL_UNIX_ADDR="/var/lib/mysql/mysql.sock" \
401 -DFEATURE_SET="%{feature_set}" \439 -DFEATURE_SET="%{feature_set}" \
402 -DCOMPILATION_COMMENT="%{compilation_comment_debug}"440 -DCOMPILATION_COMMENT="%{compilation_comment_debug}" %{TOKUDB_FLAGS} %{TOKUDB_DEBUG_ON}
441
403 echo BEGIN_DEBUG_CONFIG ; egrep '^#define' include/config.h ; echo END_DEBUG_CONFIG442 echo BEGIN_DEBUG_CONFIG ; egrep '^#define' include/config.h ; echo END_DEBUG_CONFIG
404 make %{?_smp_mflags}443 make %{?_smp_mflags}
405)444)
@@ -419,7 +458,8 @@
419 -DINSTALL_SUPPORTFILESDIR=share/percona-server \458 -DINSTALL_SUPPORTFILESDIR=share/percona-server \
420 -DMYSQL_UNIX_ADDR="/var/lib/mysql/mysql.sock" \459 -DMYSQL_UNIX_ADDR="/var/lib/mysql/mysql.sock" \
421 -DFEATURE_SET="%{feature_set}" \460 -DFEATURE_SET="%{feature_set}" \
422 -DCOMPILATION_COMMENT="%{compilation_comment_release}"461 -DCOMPILATION_COMMENT="%{compilation_comment_release}" %{TOKUDB_FLAGS} %{TOKUDB_DEBUG_OFF}
462
423 echo BEGIN_NORMAL_CONFIG ; egrep '^#define' include/config.h ; echo END_NORMAL_CONFIG463 echo BEGIN_NORMAL_CONFIG ; egrep '^#define' include/config.h ; echo END_NORMAL_CONFIG
424 make %{?_smp_mflags}464 make %{?_smp_mflags}
425)465)
@@ -452,7 +492,7 @@
452%install492%install
453493
454RBR=$RPM_BUILD_ROOT494RBR=$RPM_BUILD_ROOT
455MBD=$RPM_BUILD_DIR/percona-server-%{mysql_version}-%{percona_server_version}495MBD=$RPM_BUILD_DIR/%{src_dir}
456496
457# Ensure that needed directories exists497# Ensure that needed directories exists
458install -d $RBR%{_sysconfdir}/{logrotate.d,init.d}498install -d $RBR%{_sysconfdir}/{logrotate.d,init.d}
@@ -484,7 +524,9 @@
484# Install logrotate and autostart524# Install logrotate and autostart
485install -m 644 $MBD/release/support-files/mysql-log-rotate $RBR%{_sysconfdir}/logrotate.d/mysql525install -m 644 $MBD/release/support-files/mysql-log-rotate $RBR%{_sysconfdir}/logrotate.d/mysql
486install -m 755 $MBD/release/support-files/mysql.server $RBR%{_sysconfdir}/init.d/mysql526install -m 755 $MBD/release/support-files/mysql.server $RBR%{_sysconfdir}/init.d/mysql
487527#
528%{__rm} -f $RBR/%{_prefix}/README*
529#
488# Delete the symlinks to the libraries from the libdir. These are created by530# Delete the symlinks to the libraries from the libdir. These are created by
489# ldconfig(8) afterwards.531# ldconfig(8) afterwards.
490rm -f $RBR%{_libdir}/libmysqlclient*.so.18532rm -f $RBR%{_libdir}/libmysqlclient*.so.18
@@ -898,6 +940,30 @@
898echo "=====" >> $STATUS_HISTORY940echo "=====" >> $STATUS_HISTORY
899941
900942
943%if %{with tokudb}
944# ----------------------------------------------------------------------------
945%post -n Percona-Server-tokudb%{product_suffix}
946
947if [ $1 -eq 1 ] ; then
948 echo ""
949 echo "* This release of Percona Server is distributed with TokuDB storage engine."
950 echo "* Run the following commands to enable the TokuDB storage engine in Percona Server:"
951 echo ""
952 echo "mysql -e \"INSTALL PLUGIN tokudb SONAME 'ha_tokudb.so';\""
953 echo "mysql -e \"INSTALL PLUGIN tokudb_file_map SONAME 'ha_tokudb.so';\""
954 echo "mysql -e \"INSTALL PLUGIN tokudb_fractal_tree_info SONAME 'ha_tokudb.so';\""
955 echo "mysql -e \"INSTALL PLUGIN tokudb_fractal_tree_block_map SONAME 'ha_tokudb.so';\""
956 echo "mysql -e \"INSTALL PLUGIN tokudb_trx SONAME 'ha_tokudb.so';\""
957 echo "mysql -e \"INSTALL PLUGIN tokudb_locks SONAME 'ha_tokudb.so';\""
958 echo "mysql -e \"INSTALL PLUGIN tokudb_lock_waits SONAME 'ha_tokudb.so';\""
959 echo ""
960 echo "* See http://www.percona.com/doc/percona-server/5.6/tokudb/tokudb_intro.html for more details"
961 echo ""
962fi
963%endif
964# ----------------------------------------------------------------------------
965
966
901# ----------------------------------------------------------------------967# ----------------------------------------------------------------------
902# Clean up the BuildRoot after build is done968# Clean up the BuildRoot after build is done
903# ----------------------------------------------------------------------969# ----------------------------------------------------------------------
@@ -982,8 +1048,57 @@
982%attr(755, root, root) %{_sbindir}/mysqld-debug1048%attr(755, root, root) %{_sbindir}/mysqld-debug
983%attr(755, root, root) %{_sbindir}/rcmysql1049%attr(755, root, root) %{_sbindir}/rcmysql
984%attr(644, root, root) %{_libdir}/mysql/plugin/daemon_example.ini1050%attr(644, root, root) %{_libdir}/mysql/plugin/daemon_example.ini
985%attr(755, root, root) %{_libdir}/mysql/plugin/*.so*1051
986%attr(755, root, root) %{_libdir}/mysql/plugin/debug/*.so*1052#plugins
1053%attr(755, root, root) %{_libdir}/mysql/plugin/adt_null.so
1054%attr(755, root, root) %{_libdir}/mysql/plugin/auth.so
1055%attr(755, root, root) %{_libdir}/mysql/plugin/auth_socket.so
1056%attr(755, root, root) %{_libdir}/mysql/plugin/auth_test_plugin.so
1057%attr(755, root, root) %{_libdir}/mysql/plugin/innodb_engine.so
1058%attr(755, root, root) %{_libdir}/mysql/plugin/libdaemon_example.so
1059%attr(755, root, root) %{_libdir}/mysql/plugin/libfnv1a_udf.*
1060%attr(755, root, root) %{_libdir}/mysql/plugin/libfnv_udf.*
1061%attr(755, root, root) %{_libdir}/mysql/plugin/libmemcached.so
1062%attr(755, root, root) %{_libdir}/mysql/plugin/libmurmur_udf.*
1063%attr(755, root, root) %{_libdir}/mysql/plugin/mypluglib.so
1064%attr(755, root, root) %{_libdir}/mysql/plugin/qa_auth_client.so
1065%attr(755, root, root) %{_libdir}/mysql/plugin/qa_auth_interface.so
1066%attr(755, root, root) %{_libdir}/mysql/plugin/qa_auth_server.so
1067%attr(755, root, root) %{_libdir}/mysql/plugin/semisync_master.so
1068%attr(755, root, root) %{_libdir}/mysql/plugin/semisync_slave.so
1069%attr(755, root, root) %{_libdir}/mysql/plugin/validate_password.so
1070%attr(755, root, root) %{_libdir}/mysql/plugin/auth_pam.so
1071%attr(755, root, root) %{_libdir}/mysql/plugin/auth_pam_compat.so
1072%attr(755, root, root) %{_libdir}/mysql/plugin/dialog.so
1073%attr(755, root, root) %{_libdir}/mysql/plugin/handlersocket.so
1074
1075# %attr(755, root, root) %{_libdir}/mysql/plugin/debug/*.so*
1076%attr(755, root, root) %{_libdir}/mysql/plugin/debug/adt_null.so
1077%attr(755, root, root) %{_libdir}/mysql/plugin/debug/auth.so
1078%attr(755, root, root) %{_libdir}/mysql/plugin/debug/auth_pam.so
1079%attr(755, root, root) %{_libdir}/mysql/plugin/debug/auth_pam_compat.so
1080%attr(755, root, root) %{_libdir}/mysql/plugin/debug/auth_socket.so
1081%attr(755, root, root) %{_libdir}/mysql/plugin/debug/auth_test_plugin.so
1082%attr(755, root, root) %{_libdir}/mysql/plugin/debug/dialog.so
1083%attr(755, root, root) %{_libdir}/mysql/plugin/debug/innodb_engine.so
1084%attr(755, root, root) %{_libdir}/mysql/plugin/debug/libdaemon_example.so
1085%attr(755, root, root) %{_libdir}/mysql/plugin/debug/libfnv1a_udf.*
1086%attr(755, root, root) %{_libdir}/mysql/plugin/debug/libfnv_udf.*
1087%attr(755, root, root) %{_libdir}/mysql/plugin/debug/libmemcached.so
1088%attr(755, root, root) %{_libdir}/mysql/plugin/debug/libmurmur_udf.*
1089%attr(755, root, root) %{_libdir}/mysql/plugin/debug/mypluglib.so
1090%attr(755, root, root) %{_libdir}/mysql/plugin/debug/qa_auth_client.so
1091%attr(755, root, root) %{_libdir}/mysql/plugin/debug/qa_auth_interface.so
1092%attr(755, root, root) %{_libdir}/mysql/plugin/debug/qa_auth_server.so
1093%attr(755, root, root) %{_libdir}/mysql/plugin/debug/semisync_master.so
1094%attr(755, root, root) %{_libdir}/mysql/plugin/debug/semisync_slave.so
1095%attr(755, root, root) %{_libdir}/mysql/plugin/debug/validate_password.so
1096%attr(755, root, root) %{_libdir}/mysql/plugin/debug/handlersocket.so
1097# Audit Log and Scalability Metrics files
1098%attr(755, root, root) %{_libdir}/mysql/plugin/audit_log.so
1099%attr(755, root, root) %{_libdir}/mysql/plugin/debug/audit_log.so
1100%attr(755, root, root) %{_libdir}/mysql/plugin/debug/scalability_metrics.so
1101%attr(755, root, root) %{_libdir}/mysql/plugin/scalability_metrics.so
9871102
988%if %{WITH_TCMALLOC}1103%if %{WITH_TCMALLOC}
989%attr(755, root, root) %{_libdir}/mysql/%{malloc_lib_target}1104%attr(755, root, root) %{_libdir}/mysql/%{malloc_lib_target}
@@ -992,7 +1107,48 @@
992%attr(644, root, root) %config(noreplace,missingok) %{_sysconfdir}/logrotate.d/mysql1107%attr(644, root, root) %config(noreplace,missingok) %{_sysconfdir}/logrotate.d/mysql
993%attr(755, root, root) %{_sysconfdir}/init.d/mysql1108%attr(755, root, root) %{_sysconfdir}/init.d/mysql
9941109
995%attr(755, root, root) %{_datadir}/percona-server/1110# %attr(755, root, root) %{_datadir}/percona-server/
1111%attr(755, root, root) %{_datadir}/percona-server/binary-configure
1112%attr(755, root, root) %{_datadir}/percona-server/bulgarian
1113%attr(755, root, root) %{_datadir}/percona-server/charsets
1114%attr(755, root, root) %{_datadir}/percona-server/czech
1115%attr(755, root, root) %{_datadir}/percona-server/danish
1116%attr(755, root, root) %{_datadir}/percona-server/dictionary.txt
1117%attr(755, root, root) %{_datadir}/percona-server/dutch
1118%attr(755, root, root) %{_datadir}/percona-server/english
1119%attr(755, root, root) %{_datadir}/percona-server/errmsg-utf8.txt
1120%attr(755, root, root) %{_datadir}/percona-server/estonian
1121%attr(755, root, root) %{_datadir}/percona-server/fill_help_tables.sql
1122%attr(755, root, root) %{_datadir}/percona-server/french
1123%attr(755, root, root) %{_datadir}/percona-server/german
1124%attr(755, root, root) %{_datadir}/percona-server/greek
1125%attr(755, root, root) %{_datadir}/percona-server/hungarian
1126%attr(755, root, root) %{_datadir}/percona-server/innodb_memcached_config.sql
1127%attr(755, root, root) %{_datadir}/percona-server/italian
1128%attr(755, root, root) %{_datadir}/percona-server/japanese
1129%attr(755, root, root) %{_datadir}/percona-server/korean
1130%attr(755, root, root) %{_datadir}/percona-server/magic
1131%attr(755, root, root) %{_datadir}/percona-server/my-default.cnf
1132%attr(755, root, root) %{_datadir}/percona-server/mysqld_multi.server
1133%attr(755, root, root) %{_datadir}/percona-server/mysql-log-rotate
1134%attr(755, root, root) %{_datadir}/percona-server/mysql_security_commands.sql
1135%attr(755, root, root) %{_datadir}/percona-server/mysql.server
1136%attr(755, root, root) %{_datadir}/percona-server/mysql_system_tables_data.sql
1137%attr(755, root, root) %{_datadir}/percona-server/mysql_system_tables.sql
1138%attr(755, root, root) %{_datadir}/percona-server/mysql_test_data_timezone.sql
1139%attr(755, root, root) %{_datadir}/percona-server/norwegian
1140%attr(755, root, root) %{_datadir}/percona-server/norwegian-ny
1141%attr(755, root, root) %{_datadir}/percona-server/polish
1142%attr(755, root, root) %{_datadir}/percona-server/portuguese
1143%attr(755, root, root) %{_datadir}/percona-server/romanian
1144%attr(755, root, root) %{_datadir}/percona-server/russian
1145%attr(755, root, root) %{_datadir}/percona-server/SELinux
1146%attr(755, root, root) %{_datadir}/percona-server/serbian
1147%attr(755, root, root) %{_datadir}/percona-server/slovak
1148%attr(755, root, root) %{_datadir}/percona-server/solaris
1149%attr(755, root, root) %{_datadir}/percona-server/spanish
1150%attr(755, root, root) %{_datadir}/percona-server/swedish
1151%attr(755, root, root) %{_datadir}/percona-server/ukrainian
9961152
997# ----------------------------------------------------------------------------1153# ----------------------------------------------------------------------------
998%files -n Percona-Server-client%{product_suffix}1154%files -n Percona-Server-client%{product_suffix}
@@ -1044,6 +1200,16 @@
1044%{_libdir}/*.so1200%{_libdir}/*.so
10451201
1046# ----------------------------------------------------------------------------1202# ----------------------------------------------------------------------------
1203%if %{with tokudb}
1204%files -n Percona-Server-tokudb%{product_suffix}
1205%attr(-, root, root)
1206%{_bindir}/tokuftdump
1207%{_includedir}/tdb-internal.h
1208%{_libdir}/mysql/plugin/ha_tokudb.so
1209%attr(755, root, root) %{_libdir}/mysql/plugin/debug/ha_tokudb.so
1210%endif
1211
1212# ----------------------------------------------------------------------------
1047%files -n Percona-Server-shared%{product_suffix}1213%files -n Percona-Server-shared%{product_suffix}
1048%defattr(-, root, root, 0755)1214%defattr(-, root, root, 0755)
1049# Shared libraries (omit for architectures that don't support them)1215# Shared libraries (omit for architectures that don't support them)
@@ -1076,6 +1242,10 @@
1076%doc %attr(644, root, man) %{_mandir}/man1/mysqltest_embedded.1*1242%doc %attr(644, root, man) %{_mandir}/man1/mysqltest_embedded.1*
10771243
1078%changelog1244%changelog
1245* Mon May 26 2014 Tomislav Plavcic <tomislav.plavcic@percona.com>
1246
1247- Added packaging changes regarding TokuDB
1248
1079* Thu Feb 10 2011 Ignacio Nin <ignacio.nin@percona.com>1249* Thu Feb 10 2011 Ignacio Nin <ignacio.nin@percona.com>
10801250
1081- Removed lines which prevented -debuginfo packages from being built.1251- Removed lines which prevented -debuginfo packages from being built.
10821252
=== modified file 'scripts/mysqld_safe.sh'
--- scripts/mysqld_safe.sh 2014-03-16 08:15:10 +0000
+++ scripts/mysqld_safe.sh 2014-06-16 07:08:31 +0000
@@ -375,6 +375,19 @@
375375
376376
377#377#
378# Add jemalloc to ld_preload - needed for TokuDB
379#
380for libjemall in "/usr/lib64" "/usr/lib/x86_64-linux-gnu" "/usr/lib"
381do
382if test -f "$libjemall/libjemalloc.so.1"
383then
384 add_mysqld_ld_preload "$libjemall/libjemalloc.so.1"
385 break
386fi
387done
388
389
390#
378# First, try to find BASEDIR and ledir (where mysqld is)391# First, try to find BASEDIR and ledir (where mysqld is)
379#392#
380393
381394
=== modified file 'sql/handler.h'
--- sql/handler.h 2014-06-04 14:48:06 +0000
+++ sql/handler.h 2014-06-16 07:08:31 +0000
@@ -395,6 +395,7 @@
395 DB_TYPE_MEMCACHE,395 DB_TYPE_MEMCACHE,
396 DB_TYPE_FALCON,396 DB_TYPE_FALCON,
397 DB_TYPE_MARIA,397 DB_TYPE_MARIA,
398 DB_TYPE_TOKUDB=41,
398 /** Performance schema engine. */399 /** Performance schema engine. */
399 DB_TYPE_PERFORMANCE_SCHEMA,400 DB_TYPE_PERFORMANCE_SCHEMA,
400 DB_TYPE_FIRST_DYNAMIC=42,401 DB_TYPE_FIRST_DYNAMIC=42,
401402
=== modified file 'storage/innobase/include/univ.i'
--- storage/innobase/include/univ.i 2014-06-11 13:45:54 +0000
+++ storage/innobase/include/univ.i 2014-06-16 07:08:31 +0000
@@ -47,7 +47,7 @@
47#define INNODB_VERSION_BUGFIX MYSQL_VERSION_PATCH47#define INNODB_VERSION_BUGFIX MYSQL_VERSION_PATCH
4848
49#ifndef PERCONA_INNODB_VERSION49#ifndef PERCONA_INNODB_VERSION
50#define PERCONA_INNODB_VERSION 65.050#define PERCONA_INNODB_VERSION 66.0
51#endif51#endif
5252
53/* Enable UNIV_LOG_ARCHIVE in XtraDB */53/* Enable UNIV_LOG_ARCHIVE in XtraDB */

Subscribers

People subscribed via source and target branches