From: Marcelo GutiƩrrez(UTN/FRH) Date: Tue, 4 Mar 2014 14:50:00 +0000 (+0000) Subject: mysql: fix missing directory X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=add126c84d06aa9fa60056c49c1d8b0a6c74ac4b;p=buildroot.git mysql: fix missing directory Signed-off-by: Marcelo GutiƩrrez Signed-off-by: Thomas Petazzoni --- 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