[oe] [meta-oe PATCH] mariadb: Easy linkage of code using libmysqlclient_r

Otavio Salvador otavio at ossystems.com.br
Thu Sep 24 20:23:53 UTC 2015


The libmysqlclient_r library is now a symbolic link for the
libmysqlclient one, however some code still requires it for
linking.

To easy the transition, when installing the libmysqlclient-dev we
should include the libmysqlclient-r-dev as well.

Signed-off-by: Otavio Salvador <otavio at ossystems.com.br>
---

 meta-oe/recipes-support/mysql/mariadb.inc | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta-oe/recipes-support/mysql/mariadb.inc b/meta-oe/recipes-support/mysql/mariadb.inc
index cf004ad..47a16a1 100644
--- a/meta-oe/recipes-support/mysql/mariadb.inc
+++ b/meta-oe/recipes-support/mysql/mariadb.inc
@@ -169,6 +169,9 @@ RDEPENDS_${PN}-leftovers = "perl perl-module-cwd perl-module-benchmark perl-modu
     perl-module-constant perl-module-lib perl-module-file-temp perl-module-file-spec-functions \
     perl-module-io-socket-inet perl-module-io-select"
 
+# Allow old code to link to the backward compatible library
+RDEPENDS_libmysqlclient-dev = "libmysqlclient-r-dev"
+
 FILES_libmysqlclient = "\
     ${libdir}/libmysqlclient.so.* \
     ${sysconfdir}/my.cnf.d/client.cnf"
-- 
2.5.3




More information about the Openembedded-devel mailing list