diff --git a/component/groonga/buildout.cfg b/component/groonga/buildout.cfg
index 6b75c3192ffa5d398681243299bb027eda59aa48..698ae167fcbcdff880bcff49ac97dce4b18a1d55 100644
--- a/component/groonga/buildout.cfg
+++ b/component/groonga/buildout.cfg
@@ -6,13 +6,14 @@ parts =
   groonga
 
 extends =
+  ../libstemmer/buildout.cfg
   ../pkgconfig/buildout.cfg
   ../zlib/buildout.cfg
 
 [groonga]
 recipe = slapos.recipe.cmmi
-url = http://packages.groonga.org/source/groonga/groonga-4.0.8.tar.gz
-md5sum = 8c8d63bd5cf676acecca3698e2ae0601
+url = http://packages.groonga.org/source/groonga/groonga-4.0.9.tar.gz
+md5sum = ab6c15de7764ba5028b5037cc22368e8
 # temporary patch to respect more tokens in natural language mode.
 patches =
   ${:_profile_base_location_}/groonga.patch#9ed02fbe8400402d3eab47eee149978b
@@ -23,10 +24,14 @@ configure-options =
   --disable-benchmark
   --disable-document
   --disable-groonga-httpd
+  --with-libstemmer
+  --with-libstemmer-include=${libstemmer:location}/include
+  --with-libstemmer-lib=${libstemmer:location}/lib
   --without-mecab
+  --without-kytea
 environment =
-  CPPFLAGS =-I${zlib:location}/include
-  LDFLAGS =-Wl,-rpath=${zlib:location}/lib -L${zlib:location}/lib
+  CPPFLAGS=-I${libstemmer:location}/include -I${zlib:location}/include
+  LDFLAGS=-Wl,-rpath=${libstemmer:location}/lib -L${libstemmer:location}/lib -Wl,-rpath=${zlib:location}/lib -L${zlib:location}/lib
 
 [groonga-normalizer-mysql]
 recipe = slapos.recipe.cmmi
diff --git a/component/mariadb/buildout.cfg b/component/mariadb/buildout.cfg
index 6fc26994a0a1dcfcd5c0faa70ea2e495c9c9368f..41f44e1942135476d7a816c7755d602068ccd5a7 100644
--- a/component/mariadb/buildout.cfg
+++ b/component/mariadb/buildout.cfg
@@ -58,8 +58,8 @@ environment =
 # mroonga - a storage engine for MySQL. It provides fast fulltext search feature to all MySQL users.
 # http://mroonga.github.com/
 recipe = slapos.recipe.cmmi
-url = http://packages.groonga.org/source/mroonga/mroonga-4.08.tar.gz
-md5sum = 3c5da803a332f48fa1d21163c04954e4
+url = http://packages.groonga.org/source/mroonga/mroonga-4.09.tar.gz
+md5sum = 426a572672d8fda3319bb63a7496cd3e
 configure-command = mkdir fake_mariadb_source && ln -s ${mariadb:location}/include/mysql/private fake_mariadb_source/sql && ./configure
 configure-options =
   --prefix=${buildout:parts-directory}/${:_buildout_section_name_}