aboutsummaryrefslogtreecommitdiff
path: root/package/mysql
diff options
context:
space:
mode:
authorGravatar Marcelo GutiƩrrez(UTN/FRH) <kuyurix@gmail.com>2014-03-04 14:50:00 +0000
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2014-07-21 23:13:06 +0200
commitadd126c84d06aa9fa60056c49c1d8b0a6c74ac4b (patch)
treecfe3c4c7f48f141aa1f04026f7d5391658259b5f /package/mysql
parentfc093d61ce24c0adb0dda3940940664c182626e9 (diff)
downloadbuildroot-add126c84d06aa9fa60056c49c1d8b0a6c74ac4b.tar.gz
buildroot-add126c84d06aa9fa60056c49c1d8b0a6c74ac4b.tar.bz2
mysql: fix missing directory
Signed-off-by: Marcelo GutiƩrrez <kuyurix@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/mysql')
-rw-r--r--package/mysql/mysql.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/package/mysql/mysql.mk b/package/mysql/mysql.mk
index 808abcea45..21435f5a7c 100644
--- a/package/mysql/mysql.mk
+++ b/package/mysql/mysql.mk
@@ -50,6 +50,7 @@ HOST_MYSQL_CONF_OPT = \
--disable-mysql-maintainer-mode
MYSQL_CONF_OPT += \
+ --localstatedir=/var/mysql \
--disable-dependency-tracking \
--with-atomic-ops=up \
--with-embedded-server \
@@ -88,6 +89,12 @@ define HOST_MYSQL_INSTALL_CMDS
$(INSTALL) -m 0755 $(@D)/sql/gen_lex_hash $(HOST_DIR)/usr/bin/
endef
+define MYSQL_ADD_FOLDER
+ $(INSTALL) -d $(TARGET_DIR)/var/mysql
+endef
+
+MYSQL_POST_INSTALL_TARGET_HOOKS += MYSQL_ADD_FOLDER
+
else
MYSQL_CONF_OPT += \
--without-server