mysql: workaround two problems:
authorKoen Kooi <koen@openembedded.org>
Tue, 11 Dec 2007 13:11:16 +0000 (13:11 +0000)
committerKoen Kooi <koen@openembedded.org>
Tue, 11 Dec 2007 13:11:16 +0000 (13:11 +0000)
* mysql dislikes parallel compilation, so set PARALLEL_MAKE = ""
* the mysql-native helper binaries reference ${WORKDIR}, so implement a custom, empty do_rm_work() method
This will need further thought when packaged-staging(2) is used

packages/mysql/mysql-native_4.1.18.bb
packages/mysql/mysql_4.1.18.bb

index 9a81bc8..83f9dac 100644 (file)
@@ -1,7 +1,7 @@
 SECTION = "console/network"
 require mysql_${PV}.bb
 inherit native
-PR="r3"
+PR="r4"
 
 RDEPENDS_${PN} = ""
 
@@ -17,3 +17,9 @@ do_stage_append() {
 do_install() {
        :
 }
+
+
+# Mysql tries to access the ${WORKDIR} from this build..
+do_rm_work() {
+       :
+}
index 17fa33a..b509b81 100644 (file)
@@ -23,6 +23,7 @@ INITSCRIPT_PACKAGES = "mysql-server"
 INITSCRIPT_NAME = "mysqld"
 INITSCRIPT_PARAMS = "start 45 S . stop 45 0 6 1 ."
 
+PARALLEL_MAKE = " "
 EXTRA_OEMAKE = "'GEN_LEX_HASH=${STAGING_BINDIR_NATIVE}/gen_lex_hash'"
 EXTRA_OECONF = " --with-embedded-server --prefix=/usr --sysconfdir=/etc/mysql --localstatedir=/var/mysql --datadir=/var/mysql --disable-dependency-tracking --without-raid --without-debug --with-low-memory --without-query-cache --without-man --without-docs --without-innodb "