[oe-commits] Tim 'timtim' Ellis : mysql: mysql_config produced by this build specifies host includes and libs, sed these out so we can use this to cross compile stuff with QA checks
GIT User account
git at amethyst.openembedded.net
Sat May 16 20:25:44 UTC 2009
Module: openembedded.git
Branch: org.openembedded.dev
Commit: 793e489438f1eb09720d69804b211eca5004e7fe
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=793e489438f1eb09720d69804b211eca5004e7fe
Author: Tim 'timtim' Ellis <tim.ellis at foonas.org>
Date: Sat May 16 21:19:34 2009 +0100
mysql: mysql_config produced by this build specifies host includes and libs, sed these out so we can use this to cross compile stuff with QA checks
---
recipes/mysql/mysql_4.1.22.bb | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/recipes/mysql/mysql_4.1.22.bb b/recipes/mysql/mysql_4.1.22.bb
index 5d5900c..7f32b4d 100644
--- a/recipes/mysql/mysql_4.1.22.bb
+++ b/recipes/mysql/mysql_4.1.22.bb
@@ -3,7 +3,7 @@ HOMEPAGE = "http://www.mysql.com/"
SECTION = "libs"
LICENSE = "GPL"
DEPENDS = "ncurses"
-PR = "r2"
+PR = "r3"
SRC_URI = "http://downloads.mysql.com/archives/mysql-4.1/mysql-${PV}.tar.gz \
file://autofoo.patch;patch=1 \
@@ -40,6 +40,11 @@ do_stage() {
oe_libinstall -a -C libmysqld libmysqld ${STAGING_LIBDIR}
}
+do_stage_append() {
+ sed -i -es,^pkgincludedir=\'/usr/include/mysql\',pkgincludedir=\'\', ${STAGING_BINDIR_CROSS}/mysql_config
+ sed -i -es,^pkglibdir=\'/usr/lib/mysql\',pkglibdir=\'\', ${STAGING_BINDIR_CROSS}/mysql_config
+}
+
do_install() {
oe_runmake 'DESTDIR=${D}' install
mv -f ${D}${libdir}/mysql/* ${D}${libdir}
More information about the Openembedded-commits
mailing list