Patchwork [meta-oe,1/2] mariadb: update libdir for libtool

mail settings
Submitter Hongxu Jia
Date Oct. 9, 2013, 7:30 a.m.
Message ID <>
Download mbox | patch
Permalink /patch/59543/
State Accepted, archived
Commit 8a5dc53b66b4ab1b71e96e80dfe7912675fbfb76
Headers show


Hongxu Jia - Oct. 9, 2013, 7:30 a.m.
In mariadb recipe,do_install move all the lib files from usr/lib/mysql
to usr/lib,but didn't change libdir value in *.la libtool file. This
will cause libtool can't get correct lib path of mysql when other
package need mysql lib.So update them to correct value.

Here is a exapmle:
In file: libdir = "/usr/lib/mysq/", but in fact is installed into  "/usr/lib", this will cause
libtool can not find correct lib file with, then
libtool will use rpath option to reference a absolute path, and
this will cause rpath WARING and rpm error.

Signed-off-by: Hongxu Jia <>
 meta-oe/recipes-support/mysql/ | 1 +
 1 file changed, 1 insertion(+)


diff --git a/meta-oe/recipes-support/mysql/ b/meta-oe/recipes-support/mysql/
index c535a41..fd9264f 100644
--- a/meta-oe/recipes-support/mysql/
+++ b/meta-oe/recipes-support/mysql/
@@ -80,6 +80,7 @@  do_install() {
     oe_runmake 'DESTDIR=${D}' install
     mv -f ${D}${libdir}/mysql/* ${D}${libdir}
     rmdir ${D}${libdir}/mysql
+    find ${D}${libdir} -name '*.la'|xargs sed -i 's#${libdir}/mysql#${libdir}#'
     install -d ${D}/etc/init.d
     install -m 0644 ${WORKDIR}/my.cnf ${D}/etc/