mysql: fix missing directory
authorMarcelo Gutiérrez(UTN/FRH) <kuyurix@gmail.com>
Tue, 4 Mar 2014 14:50:00 +0000 (14:50 +0000)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Mon, 21 Jul 2014 21:13:06 +0000 (23:13 +0200)
Signed-off-by: Marcelo Gutiérrez <kuyurix@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/mysql/mysql.mk

index 808abcea45d50e19323a8b88946c5767a85f2816..21435f5a7c66b423d5b26762aeb2252d0ae65ce5 100644 (file)
@@ -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