• Kazuhiko Shiozaki's avatar
    Squashed commit of the following: · 98aa5dad
    Kazuhiko Shiozaki authored
    commit d42a85e53c313984de1dbeb7ca8eb432a5286c3a
    Author: Kazuhiko Shiozaki <kazuhiko@nexedi.com>
    Date:   Wed Apr 18 14:12:11 2012 +0200
    
        version up : Apache httpd 2.4.2.
    
    commit bbbd38c26ba87cf2b0fd2c17414c99fa84d36dbc
    Author: Kazuhiko Shiozaki <kazuhiko@nexedi.com>
    Date:   Fri Apr 13 12:41:47 2012 +0200
    
        version up : Python 2.7.3.
    
    commit 09de24474197a0650f8b67003007d295efe532d9
    Author: Kazuhiko Shiozaki <kazuhiko@nexedi.com>
    Date:   Wed Apr 11 18:09:08 2012 +0200
    
        follow the change of mariadb header location.
    
    commit ba53784a3d34f75a2f49c63b6f78f15c2758e48b
    Author: Kazuhiko Shiozaki <kazuhiko@nexedi.com>
    Date:   Wed Apr 11 18:06:10 2012 +0200
    
        add mroonga-2.01-mariadb-5.5.23.patch.
    
    commit 165486e2ce57e7a13b92b8d407b3e019b6e8b4fb
    Merge: afc2f29 783ed21b
    Author: Kazuhiko Shiozaki <kazuhiko@nexedi.com>
    Date:   Wed Apr 11 17:24:16 2012 +0200
    
        Merge remote-tracking branch 'origin/erp5' into erp5-component
    
    commit afc2f2905faf0af1b938c664fa75a45cfb7ae7d5
    Author: Kazuhiko Shiozaki <kazuhiko@nexedi.com>
    Date:   Wed Apr 11 17:24:13 2012 +0200
    
        version up : MariaDB 5.5.23.
    
    commit b49ffa1de1ee7c1833358a1c9b069eb82b50f5b0
    Author: Kazuhiko Shiozaki <kazuhiko@nexedi.com>
    Date:   Wed Apr 11 17:20:27 2012 +0200
    
        version up : Python 2.6.8.
    
    commit 3e36266d47faff6b6700f41fbd76caa0cf021bbe
    Author: Kazuhiko Shiozaki <kazuhiko@nexedi.com>
    Date:   Thu Apr 5 22:02:58 2012 +0200
    
        clear pre-defined system glib header path, because it has higher priority than our own specified one.
    
    commit 2b9d6b0036adf4564379ff74558fc00c4a475a75
    Author: Kazuhiko Shiozaki <kazuhiko@nexedi.com>
    Date:   Thu Apr 5 14:44:56 2012 +0200
    
        sphinx_snippets function seems not exist in sphinx storage engine included in mariadb 5.5.
    
    commit c83854cf65be83297287353ac5e5df4240460108
    Author: Kazuhiko Shiozaki <kazuhiko@nexedi.com>
    Date:   Thu Apr 5 14:11:12 2012 +0200
    
        version up : LibreOffice 3.5.2.
    
    commit 6d6becd3697a5905db36b4786909aa19fd370f44
    Author: Kazuhiko Shiozaki <kazuhiko@nexedi.com>
    Date:   Wed Apr 4 13:33:17 2012 +0200
    
        build sphinx storage engine as a dynamic plugin instead of statically embed in mysqld.
    98aa5dad
buildout.cfg 3.17 KB
[buildout]

extends =
    ../cmake/buildout.cfg
    ../glib/buildout.cfg
    ../pcre/buildout.cfg
    ../mariadb/buildout.cfg

parts = mydumper

# XXX-Antoine:
# This is really dirty, but it's the only way to install
# mydumper that works
[mydumper]
recipe = slapos.recipe.build
depends =
  ${mariadb:version}
url = http://launchpad.net/mydumper/0.2/0.2.3/+download/mydumper-0.2.3.tar.gz
md5sum = 36e6a1c97a9634a6882ddaac5e2697d5
buildout-bin-dir = ${buildout:bin-directory}
cmake-command = ${cmake:location}/bin/cmake
mysql-config = ${mariadb:location}/bin/mysql_config
doc-dependency = ${mydumper-doc:eggs}
mysqllib = ${mariadb:location}/lib
pkg-config-path = ${glib:location}/lib/pkgconfig/:${pcre:location}/lib/pkgconfig/
libraries = ${zlib:location}/lib/:${glib:location}/lib/:${pcre:location}/lib/:${mariadb:location}/lib/
includes = ${zlib:location}/include/:${glib:location}/include/:${pcre:location}/include/:${mariadb:location}/include/mysql
cflags = -I${zlib:location}/include/ -I${glib:location}/include/ -I${pcre:location}/include/ -I${mariadb:location}/include/mysql
mydumper-patches =
   ${:_profile_base_location_}/mydumper-remove-warnings-errors.patch 917fea16b5ddea195cfa33fbd9827f57 -p1
slapos_promise =
    directory:bin
    file:bin/mydumper
    file:bin/myloader
script =
    import os
    url = self.download(self.options['url'], self.options.get('md5sum'))
    extract_dir = self.extract(url)
    workdir = guessworkdir(extract_dir)
    self.applyPatchList(self.options['mydumper-patches'], cwd=workdir)
    env['PATH'] = self.options['buildout-bin-dir'] + ':' + env.get('PATH', '')
    env['PKG_CONFIG_PATH'] = self.options['pkg-config-path'] + ':' + \
                             env.get('PKG_CONFIG_PATH', '')
    env['CMAKE_INCLUDE_PATH'] = self.options['includes']
    env['CMAKE_LIBRARY_PATH'] = self.options['libraries']
    env['CFLAGS'] = self.options['cflags']
    command_line = [self.options['cmake-command'],
                    '-DCMAKE_INSTALL_PREFIX=%%s' %% self.options['location'],
                    '-DMYSQL_CONFIG=%%s' %% self.options['mysql-config'],
                    '-DCMAKE_C_FLAGS=%%s' %% self.options['cflags'],
                    '-DCMAKE_INSTALL_RPATH=%%s' %% self.options['libraries'],
                    '.']
    call(command_line, cwd=workdir, env=env)
    call(['make'], cwd=workdir, env=env)
    call(['make', 'install'], cwd=workdir, env=env)

[mydumper-doc]
recipe = zc.recipe.egg
eggs =
    Sphinx
dependent-scripts = true

# XXX-Antoine: here's what I did using hexagonit.recipe.cmmi.
# and it wasn't working !
#[mydumper]
#recipe = hexagonit.recipe.cmmi
#url = http://launchpad.net/mydumper/0.2/0.2.3/+download/mydumper-0.2.3.tar.gz
#md5sum = 36e6a1c97a9634a6882ddaac5e2697d5
#strip-top-level-dir = true
#location = ${buildout:parts-directory}/${:_buildout_section_name_}
#configure-command =
#    ${cmake:location}/bin/cmake \
#    -DCMAKE_INSTALL_PREFIX=${:location} \
#    -DMYSQL_CONFIG=${mariadb:location}/bin/mysql_config \
#    -DCMAKE_INCLUDE_PATH=${zlib:location}/include \
#    -DCMAKE_LIBRARY_PATH=${zlib:location}/lib \
#    .
#environment=
#    PATH=$PATH:${buildout:bin-directory}
#    PKG_CONFIG_PATH=${glib:location}/lib/pkgconfig/:${pcre:location}/lib/pkgconfig/