mariadb: enable innodb lzma compression and disable some options explicitly.
[slapos.git] / component / mariadb / buildout.cfg
1 # MariaDB - a database server that offers drop-in replacement functionality for MySQL.
2 # http://mariadb.org/
3
4 [buildout]
5 extends =
6   ../cmake/buildout.cfg
7   ../groonga/buildout.cfg
8   ../jemalloc/buildout.cfg
9   ../libaio/buildout.cfg
10   ../libxml2/buildout.cfg
11   ../ncurses/buildout.cfg
12   ../openssl/buildout.cfg
13   ../pcre/buildout.cfg
14   ../pkgconfig/buildout.cfg
15   ../readline/buildout.cfg
16   ../xz-utils/buildout.cfg
17   ../zlib/buildout.cfg
18
19 parts =
20   mariadb
21
22 [mariadb]
23 recipe = slapos.recipe.cmmi
24 version = 10.1.9
25 url = https://downloads.mariadb.org/f/mariadb-${:version}/source/mariadb-${:version}.tar.gz/from/http:/ftp.osuosl.org/pub/mariadb
26 md5sum = 71d0e2408a671e1125c1310ce657f688
27 location = ${buildout:parts-directory}/${:_buildout_section_name_}
28 patch-options = -p0
29 patches =
30   ${:_profile_base_location_}/mariadb_10.1.8_create_system_tables__no_test.patch#d2f337e76b290071daf8985a79bda82a
31 configure-command = ${cmake:location}/bin/cmake
32 configure-options =
33   -DCMAKE_INSTALL_PREFIX=${:location}
34   -DBUILD_CONFIG=mysql_release
35   -DDEFAULT_CHARSET=utf8
36   -DDEFAULT_COLLATION=utf8_unicode_ci
37   -DWITH_SSL=system
38   -DWITH_ZLIB=system
39   -DWITH_READLINE=0
40   -DWITH_PIC=1
41   -DWITH_PCRE=system
42   -DENABLE_DTRACE=0
43   -DWITH_EXTRA_CHARSETS=complex
44   -DWITH_EMBEDDED_SERVER=0
45   -DWITH_JEMALLOC=yes
46   -DWITH_INNODB_BZIP2=OFF
47   -DWITH_INNODB_LZ4=OFF
48   -DWITH_INNODB_LZMA=ON
49   -DWITH_INNODB_LZO=OFF
50   -DWITH_INNODB_SNAPPY=OFF
51   -DWITH_SAFEMALLOC=OFF
52   -DWITHOUT_EXAMPLE_STORAGE_ENGINE=1
53   -DWITHOUT_MROONGA_STORAGE_ENGINE=1
54   -DWITHOUT_DAEMON_EXAMPLE=1
55   -DCMAKE_C_FLAGS="-I${jemalloc:location}/include -I${libaio:location}/include -I${libxml2:location}/include -I${ncurses:location}/include -I${openssl:location}/include -I${pcre:location}/include -I${readline5:location}/include -I${xz-utils:location}/include -I${zlib:location}/include"
56   -DCMAKE_CXX_FLAGS="-I${jemalloc:location}/include -I${libaio:location}/include -I${libxml2:location}/include -I${ncurses:location}/include -I${openssl:location}/include -I${pcre:location}/include -I${readline5:location}/include -I${xz-utils:location}/include -I${zlib:location}/include"
57   -DCMAKE_INSTALL_RPATH=${jemalloc:location}/lib:${libaio:location}/lib:${libxml2:location}/lib:${ncurses:location}/lib:${openssl:location}/lib:${pcre:location}/lib:${readline5:location}/lib:${xz-utils:location}/lib:${zlib:location}/lib
58 environment =
59   CMAKE_PROGRAM_PATH=${cmake:location}/bin
60   CMAKE_INCLUDE_PATH=${libaio:location}/include:${libaio:location}/include:${libxml2:location}/include:${ncurses:location}/include:${openssl:location}/include:${pcre:location}/include:${readline5:location}/include:${xz-utils:location}/include:${zlib:location}/include
61   CMAKE_LIBRARY_PATH=${libaio:location}/lib:{libaio:location}/lib:${libxml2:location}/lib:${ncurses:location}/lib:${openssl:location}/lib:${pcre:location}/lib:${readline5:location}/lib:${xz-utils:location}/lib:${zlib:location}/lib
62   LDFLAGS=-L${jemalloc:location}/lib -Wl,-rpath=${jemalloc:location}/lib -L${libaio:location}/lib -Wl,-rpath=${libaio:location}/lib -L${pcre:location}/lib -L${xz-utils:location}/lib -L${zlib:location}/lib
63 post-install =
64   mkdir -p ${:location}/include/wsrep &&
65   cp -p wsrep/wsrep_api.h ${:location}/include/wsrep
66
67 [mroonga-mariadb]
68 # mroonga - a storage engine for MySQL. It provides fast fulltext search feature to all MySQL users.
69 # http://mroonga.github.com/
70 recipe = slapos.recipe.cmmi
71 url = http://packages.groonga.org/source/mroonga/mroonga-5.10.tar.gz
72 md5sum = 2fc6a7ae9e58bfd3430cdc8cb38ccf7f
73 pre-configure =
74   mkdir fake_mariadb_source &&
75   ln -s ${mariadb:location}/include/mysql/private fake_mariadb_source/sql
76 configure-options =
77   --with-mysql-source=fake_mariadb_source
78   --with-mysql-config=${mariadb:location}/bin/mysql_config
79   --disable-static
80   --disable-document
81 patch-options = -p1
82 patches =
83   ${:_profile_base_location_}/mroonga_boolean.patch#36645770ae612515b74b90884ecc59fc
84 environment =
85   PATH=${groonga:location}/bin:${pkgconfig:location}/bin:%(PATH)s
86   CPPFLAGS=-I${groonga:location}/include/groonga -I${pcre:location}/include
87   LDFLAGS=-L${groonga:location}/lib
88   PKG_CONFIG_PATH=${groonga:location}/lib/pkgconfig:${groonga-normalizer-mysql:location}/lib/pkgconfig