summaryrefslogtreecommitdiff
path: root/recipes/mysql/mysql5_5.1.40.inc
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/mysql/mysql5_5.1.40.inc')
-rw-r--r--recipes/mysql/mysql5_5.1.40.inc7
1 files changed, 4 insertions, 3 deletions
diff --git a/recipes/mysql/mysql5_5.1.40.inc b/recipes/mysql/mysql5_5.1.40.inc
index 2edab16f55..28716747e6 100644
--- a/recipes/mysql/mysql5_5.1.40.inc
+++ b/recipes/mysql/mysql5_5.1.40.inc
@@ -5,8 +5,6 @@ LICENSE = "GPL"
DEPENDS = "ncurses"
PR = "r2"
-DEFAULT_PREFERENCE = "-1"
-
SRC_URI = "http://downloads.mysql.com/archives/mysql-5.1/mysql-${PV}.tar.gz \
file://configure.in.patch;patch=1 \
file://plug.in.patch;patch=1 \
@@ -43,7 +41,10 @@ do_stage() {
oe_libinstall -a -C libmysqld libmysqld ${STAGING_LIBDIR}
}
-do_stage_append() {
+SYSROOT_PREPROCESS_FUNCS += "mysql5_sysroot_preprocess"
+
+# We need to append this so it runs *after* binconfig's preprocess function
+mysql5_sysroot_preprocess () {
sed -i -es,^pkgincludedir=\'/usr/include/mysql\',pkgincludedir=\'${STAGING_INCDIR}\', ${STAGING_BINDIR_CROSS}/mysql_config
sed -i -es,^pkglibdir=\'/usr/lib/mysql\',pkglibdir=\'${STAGING_LIBDIR}\', ${STAGING_BINDIR_CROSS}/mysql_config
}