From add126c84d06aa9fa60056c49c1d8b0a6c74ac4b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marcelo=20Guti=C3=A9rrez=28UTN/FRH=29?= Date: Tue, 4 Mar 2014 14:50:00 +0000 Subject: [PATCH] mysql: fix missing directory MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Marcelo Gutiérrez Signed-off-by: Thomas Petazzoni --- package/mysql/mysql.mk | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- 2.30.2