All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-oe][PATCH 0/2] mariadb: fix warning and update libdir for libtool
@ 2013-10-09  7:30 Hongxu Jia
  2013-10-09  7:30 ` [meta-oe][PATCH 1/2] mariadb: " Hongxu Jia
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Hongxu Jia @ 2013-10-09  7:30 UTC (permalink / raw)
  To: openembedded-devel; +Cc: paul.eggleton

The following changes since commit 2a463dddcf76d7fa437e96f6cf0210143e97a904:

  thunar-volman: Add PACKAGECONFIG for notify (2013-10-05 14:24:05 +0200)

are available in the git repository at:

  git://git.pokylinux.org/poky-contrib hongxu/fix-mariadb
  http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=hongxu/fix-mariadb

Hongxu Jia (2):
  mariadb: update libdir for libtool
  mariadb: fix warning while invoking 'mysql_install_db' on target

 meta-oe/recipes-support/mysql/mariadb/my.cnf     | 2 +-
 meta-oe/recipes-support/mysql/mariadb_5.1.67.inc | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

-- 
1.8.1.2



^ permalink raw reply	[flat|nested] 4+ messages in thread

* [meta-oe][PATCH 1/2] mariadb: update libdir for libtool
  2013-10-09  7:30 [meta-oe][PATCH 0/2] mariadb: fix warning and update libdir for libtool Hongxu Jia
@ 2013-10-09  7:30 ` Hongxu Jia
  2013-10-09  7:30 ` [meta-oe][PATCH 2/2] mariadb: fix warning while invoking 'mysql_install_db' on target Hongxu Jia
  2013-10-09 17:03 ` [meta-oe][PATCH 0/2] mariadb: fix warning and update libdir for libtool Paul Eggleton
  2 siblings, 0 replies; 4+ messages in thread
From: Hongxu Jia @ 2013-10-09  7:30 UTC (permalink / raw)
  To: openembedded-devel; +Cc: paul.eggleton

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 libmysqlclient.la file: libdir = "/usr/lib/mysq/", but in fact
libmysqclient.so is installed into  "/usr/lib", this will cause
libtool can not find correct lib file with libmysqlclient.la, 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 <hongxu.jia@windriver.com>
---
 meta-oe/recipes-support/mysql/mariadb_5.1.67.inc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta-oe/recipes-support/mysql/mariadb_5.1.67.inc b/meta-oe/recipes-support/mysql/mariadb_5.1.67.inc
index c535a41..fd9264f 100644
--- a/meta-oe/recipes-support/mysql/mariadb_5.1.67.inc
+++ b/meta-oe/recipes-support/mysql/mariadb_5.1.67.inc
@@ -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/
-- 
1.8.1.2



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [meta-oe][PATCH 2/2] mariadb: fix warning while invoking 'mysql_install_db' on target
  2013-10-09  7:30 [meta-oe][PATCH 0/2] mariadb: fix warning and update libdir for libtool Hongxu Jia
  2013-10-09  7:30 ` [meta-oe][PATCH 1/2] mariadb: " Hongxu Jia
@ 2013-10-09  7:30 ` Hongxu Jia
  2013-10-09 17:03 ` [meta-oe][PATCH 0/2] mariadb: fix warning and update libdir for libtool Paul Eggleton
  2 siblings, 0 replies; 4+ messages in thread
From: Hongxu Jia @ 2013-10-09  7:30 UTC (permalink / raw)
  To: openembedded-devel; +Cc: paul.eggleton

Invoke 'mysql_install_db' on target, there are some warnings:
...
Installing MariaDB/MySQL system tables...
131009  6:13:14 [Warning] '--skip-locking' is deprecated and will be removed in a future release. Please use '--skip-external-locking' instead.
OK
Filling help tables...
131009  6:13:14 [Warning] '--skip-locking' is deprecated and will be removed in a future release. Please use '--skip-external-locking' instead.
OK
...

Modify my.cnf to use '--skip-external-locking' instead of '--skip-locking'
could fix this issue.

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
---
 meta-oe/recipes-support/mysql/mariadb/my.cnf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta-oe/recipes-support/mysql/mariadb/my.cnf b/meta-oe/recipes-support/mysql/mariadb/my.cnf
index 8470817..d174381 100644
--- a/meta-oe/recipes-support/mysql/mariadb/my.cnf
+++ b/meta-oe/recipes-support/mysql/mariadb/my.cnf
@@ -14,7 +14,7 @@ pid-file 					= /var/lib/mysql/mysqld.pid
 log-error 					= /var/log/mysqld.err
 basedir 					= /usr
 datadir 					= /var/mysql
-skip-locking
+skip-external-locking
 skip-networking
 ignore-builtin-innodb
 bind-address					= localhost
-- 
1.8.1.2



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [meta-oe][PATCH 0/2] mariadb: fix warning and update libdir for libtool
  2013-10-09  7:30 [meta-oe][PATCH 0/2] mariadb: fix warning and update libdir for libtool Hongxu Jia
  2013-10-09  7:30 ` [meta-oe][PATCH 1/2] mariadb: " Hongxu Jia
  2013-10-09  7:30 ` [meta-oe][PATCH 2/2] mariadb: fix warning while invoking 'mysql_install_db' on target Hongxu Jia
@ 2013-10-09 17:03 ` Paul Eggleton
  2 siblings, 0 replies; 4+ messages in thread
From: Paul Eggleton @ 2013-10-09 17:03 UTC (permalink / raw)
  To: Hongxu Jia; +Cc: openembedded-devel

Hi Hongxu,

On Wednesday 09 October 2013 15:30:33 Hongxu Jia wrote:
> The following changes since commit 2a463dddcf76d7fa437e96f6cf0210143e97a904:
> 
>   thunar-volman: Add PACKAGECONFIG for notify (2013-10-05 14:24:05 +0200)
> 
> are available in the git repository at:
> 
>   git://git.pokylinux.org/poky-contrib hongxu/fix-mariadb
>   http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=hongxu/fix-mariadb
> 
> Hongxu Jia (2):
>   mariadb: update libdir for libtool
>   mariadb: fix warning while invoking 'mysql_install_db' on target
> 
>  meta-oe/recipes-support/mysql/mariadb/my.cnf     | 2 +-
>  meta-oe/recipes-support/mysql/mariadb_5.1.67.inc | 1 +
>  2 files changed, 2 insertions(+), 1 deletion(-)

These look OK to me.

Acked-by: Paul Eggleton <paul.eggleton@linux.intel.com>

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-10-09 17:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-09  7:30 [meta-oe][PATCH 0/2] mariadb: fix warning and update libdir for libtool Hongxu Jia
2013-10-09  7:30 ` [meta-oe][PATCH 1/2] mariadb: " Hongxu Jia
2013-10-09  7:30 ` [meta-oe][PATCH 2/2] mariadb: fix warning while invoking 'mysql_install_db' on target Hongxu Jia
2013-10-09 17:03 ` [meta-oe][PATCH 0/2] mariadb: fix warning and update libdir for libtool Paul Eggleton

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.