summaryrefslogtreecommitdiffstats
path: root/rules/host-mysql.make
diff options
context:
space:
mode:
authorJuergen Borleis <jbe@pengutronix.de>2016-05-24 12:54:32 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2016-05-26 10:29:21 +0200
commit875ab2e43c7c3355e70deb0ec56ae3cfb015fba5 (patch)
tree72840f9d39a5357d6e36e4a8784985383a582565 /rules/host-mysql.make
parent5428e98276eba3cc17ede77ce4c14451295a2d14 (diff)
downloadptxdist-875ab2e43c7c3355e70deb0ec56ae3cfb015fba5.tar.gz
ptxdist-875ab2e43c7c3355e70deb0ec56ae3cfb015fba5.tar.xz
mySQL: exhume a gone package by updating it to a new release
After the remove of the old package from the staging area this change adds a new release of the mySQL package. Its intended and checked on a read-only root filesystem with write access in "/var/mysql" only. The database engine runs as a regular user and does not need root permissions. Due to its dependency to boost_1_59_0 it uses exactly this version and the already present boost lib in PTXdist isn't used. Be aware: its buildsystem uses a huge amount of memory. If your host is low on memory don't forget to build this package with the '-ji1' parameter. Signed-off-by: Juergen Borleis <jbe@pengutronix.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/host-mysql.make')
-rw-r--r--rules/host-mysql.make56
1 files changed, 56 insertions, 0 deletions
diff --git a/rules/host-mysql.make b/rules/host-mysql.make
new file mode 100644
index 000000000..bcee0a3ba
--- /dev/null
+++ b/rules/host-mysql.make
@@ -0,0 +1,56 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2016 by Juergen Borleis <jbe@pengutronix.de>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+HOST_PACKAGES-$(PTXCONF_HOST_MYSQL) += host-mysql
+
+#
+# Paths and names
+#
+HOST_MYSQL_BOOST = $(MYSQL_BOOST)
+HOST_MYSQL_BOOST_SOURCE = $(MYSQL_BOOST_SOURCE)
+$(HOST_MYSQL_BOOST_SOURCE) = MYSQL_BOOST
+HOST_MYSQL_BOOST_DIR = $(HOST_MYSQL_DIR)
+HOST_BOOST_LICENSE := BSL-1.0
+
+# ----------------------------------------------------------------------------
+# Extract
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/host-mysql.extract:
+ @$(call targetinfo)
+ @$(call clean, $(HOST_MYSQL_DIR))
+ @$(call extract, HOST_MYSQL)
+ @$(call extract, HOST_MYSQL_BOOST)
+ @$(call patchin, HOST_MYSQL)
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Prepare + Compile
+# ----------------------------------------------------------------------------
+
+#
+# cmake
+#
+HOST_MYSQL_CONF_TOOL := cmake
+HOST_MYSQL_CONF_OPT := \
+ $(HOST_CMAKE_OPT) \
+ -DBUILD_CONFIG=mysql_release \
+ -DCMAKE_INSTALL_PREFIX:PATH=/usr \
+ -DSTACK_DIRECTION=1 \
+ -DBOOST_INCLUDE_DIR=$(HOST_MYSQL_BOOST_DIR) \
+ -DLOCAL_BOOST_DIR=$(HOST_MYSQL_BOOST_DIR) \
+ -DHAVE_LLVM_LIBCPP_EXITCODE=no \
+ -DHAVE_FALLOC_PUNCH_HOLE_AND_KEEP_SIZE_EXITCODE=no \
+ -DWITH_ZLIB="bundled"
+
+# vim: syntax=make