buildout.cfg 4.92 KB
Newer Older
1 2 3 4 5
# MariaDB - a database server that offers drop-in replacement functionality for MySQL.
# http://mariadb.org/

[buildout]
extends =
6
  ../bzip2/buildout.cfg
7
  ../cmake/buildout.cfg
8
  ../groonga/buildout.cfg
9
  ../jemalloc/buildout.cfg
10
  ../libaio/buildout.cfg
11
  ../libxml2/buildout.cfg
Łukasz Nowak's avatar
Łukasz Nowak committed
12
  ../ncurses/buildout.cfg
13
  ../openssl/buildout.cfg
Kazuhiko Shiozaki's avatar
Kazuhiko Shiozaki committed
14
  ../patch/buildout.cfg
15
  ../pcre/buildout.cfg
16
  ../pkgconfig/buildout.cfg
Łukasz Nowak's avatar
Łukasz Nowak committed
17
  ../readline/buildout.cfg
18
  ../xz-utils/buildout.cfg
19
  ../zlib/buildout.cfg
20 21 22 23

parts =
  mariadb

24
[mariadb]
25
recipe = slapos.recipe.cmmi
26 27
url = https://downloads.mariadb.org/f/mariadb-10.1.26/source/mariadb-10.1.26.tar.gz/from/http%3A//fr.mirror.babylon.network/mariadb/?serve
md5sum = bb88afb72434c6d567c742896dd50d41
28 29 30
patch-options = -p0
patches =
  ${:_profile_base_location_}/mariadb_10.1.21_create_system_tables__no_test.patch#3c76aa9564a162f13aced7c0a3f783b3
31 32
  ${:stable-patches}
stable-patches =
33
location = ${buildout:parts-directory}/${:_buildout_section_name_}
34 35
configure-command = ${cmake:location}/bin/cmake
configure-options =
36
  -DCMAKE_INSTALL_PREFIX=${:location}
37 38 39 40 41 42 43
  -DBUILD_CONFIG=mysql_release
  -DDEFAULT_CHARSET=utf8
  -DDEFAULT_COLLATION=utf8_unicode_ci
  -DWITH_SSL=system
  -DWITH_ZLIB=system
  -DWITH_READLINE=0
  -DWITH_PIC=1
44
  -DWITH_PCRE=system
45
  -DENABLE_DTRACE=0
46 47
  -DWITH_EXTRA_CHARSETS=complex
  -DWITH_EMBEDDED_SERVER=0
48
  -DWITH_JEMALLOC=yes
49
  -DWITH_INNODB_BZIP2=ON
50 51 52 53 54
  -DWITH_INNODB_LZ4=OFF
  -DWITH_INNODB_LZMA=ON
  -DWITH_INNODB_LZO=OFF
  -DWITH_INNODB_SNAPPY=OFF
  -DWITH_SAFEMALLOC=OFF
55
  -DWITHOUT_EXAMPLE_STORAGE_ENGINE=1
56
  -DWITHOUT_MROONGA_STORAGE_ENGINE=1
57
  -DWITHOUT_DAEMON_EXAMPLE=1
58 59
  -DCMAKE_C_FLAGS="-I${bzip2:location}/include -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"
  -DCMAKE_CXX_FLAGS="-I${bzip2:location}/include -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"
60
  -DCMAKE_INSTALL_RPATH=${:CMAKE_INSTALL_RPATH}
61
CMAKE_INSTALL_RPATH=${bzip2:location}/lib:${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
62 63
environment =
  CMAKE_PROGRAM_PATH=${cmake:location}/bin
64 65
  CMAKE_INCLUDE_PATH=${bzip2:location}/include:${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
  CMAKE_LIBRARY_PATH=${bzip2:location}/lib:${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
66
  LDFLAGS=-L${bzip2:location}/lib -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
Kazuhiko Shiozaki's avatar
Kazuhiko Shiozaki committed
67
  PATH=${patch:location}/bin:%(PATH)s
68 69 70
post-install =
  mkdir -p ${:location}/include/wsrep &&
  cp -p wsrep/wsrep_api.h ${:location}/include/wsrep
71

72
[mroonga-mariadb]
73 74
# mroonga - a storage engine for MySQL. It provides fast fulltext search feature to all MySQL users.
# http://mroonga.github.com/
75
recipe = slapos.recipe.cmmi
76 77
url = http://packages.groonga.org/source/mroonga/mroonga-7.05.tar.gz
md5sum = d289667a60a6aa78d8bc276ab61b2996
78 79 80
pre-configure = set -e
  rm -rf fake_mariadb_source
  mkdir -p fake_mariadb_source
Kazuhiko Shiozaki's avatar
Kazuhiko Shiozaki committed
81
  ln -s ${mariadb:location}/include/mysql/private fake_mariadb_source/sql
82 83 84
  cp -ar ${mariadb:location}/include fake_mariadb_source/include
  ! test -f fake_mariadb_source/include/mysql/mariadb_stmt.h ||
  sed -i -E -e '/^enum enum_(cursor|indicator)_type$/,/};/d' fake_mariadb_source/include/mysql/mariadb_stmt.h
85
configure-options =
86
  --with-mysql-source=fake_mariadb_source
87
  --with-mysql-config=${mariadb:location}/bin/mysql_config
88 89
  --disable-static
  --disable-document
90 91
patch-options = -p1
patches =
92 93
  ${:_profile_base_location_}/mroonga_boolean.patch#c818568fe35ca6a4298f18e575d962a0
  ${:_profile_base_location_}/1a910088ec55c61434029d8e1cc3c6192ac508d7.diff#a8b8df4dd870a1a269dfd9dc6941467b
94 95
pre-build =
  sed -i -e "s,${mariadb:location}/include,$(pwd)/fake_mariadb_source/include,g" Makefile */Makefile
96
environment =
Kazuhiko Shiozaki's avatar
Kazuhiko Shiozaki committed
97
  PATH=${groonga:location}/bin:${patch:location}/bin:${pkgconfig:location}/bin:%(PATH)s
98
  CPPFLAGS=-I${groonga:location}/include/groonga -I${pcre:location}/include
99
  LDFLAGS=-L${groonga:location}/lib
100
  PKG_CONFIG_PATH=${groonga:location}/lib/pkgconfig:${groonga-normalizer-mysql:location}/lib/pkgconfig