Patchwork [meta-oe,1/1] mariadb-native: depends on zlib-native

login
register
mail settings
Submitter wenzong.fan@windriver.com
Date Oct. 25, 2013, 6:37 a.m.
Message ID <641f84ddf82621150dafaa26554754beb47a70b9.1382682617.git.wenzong.fan@windriver.com>
Download mbox | patch
Permalink /patch/60497/
State Accepted, archived
Commit 274147fc56e3f8900547841758930b6aff282069
Headers show

Comments

wenzong.fan@windriver.com - Oct. 25, 2013, 6:37 a.m.
From: Wenzong Fan <wenzong.fan@windriver.com>

Mariadb will provide zlib.* if it can't find zlib binaries and headers
from sysroots path. We have set it to use external zlib.* firstly with
these definitions/configs in inc file:

    + DEPENDS = "ncurses zlib"
    + --with-zlib-dir=${STAGING_EXECPREFIXDIR}

But native bb file overrides the dependencies with:

    + DEPENDS = "ncurses-native"

If mariadb-naitve was built before zlib-native, its own zlib will be
built and provide zlib.la which will brake other packages link to real
zlib with errors like:

    * .../usr/lib/libz.a(gzclose.o): relocation R_X86_64_32 against \
      `a local symbol' can not be used when making a shared object; \
      recompile with -fPIC
    * .../usr/lib/libz.a: could not read symbols: Bad value

By removing the DEPENDS = "ncurses-native" from the native bb file,
mariadb-native will still have the DEPENDS (ncurses zlib) from the
inc file, and since the recipe is mariadb-native, this is equivalent
to DEPENDS = "ncurses-native zlib-native" due to the map_dependencies()
inner fuction for native_virtclass_handler() in "oe-core/meta/classes/
native.bbclass".

Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
---
 meta-oe/recipes-support/mysql/mariadb-native_5.1.67.bb |    1 -
 1 file changed, 1 deletion(-)

Patch

diff --git a/meta-oe/recipes-support/mysql/mariadb-native_5.1.67.bb b/meta-oe/recipes-support/mysql/mariadb-native_5.1.67.bb
index 01eb964..a55c2ab 100644
--- a/meta-oe/recipes-support/mysql/mariadb-native_5.1.67.bb
+++ b/meta-oe/recipes-support/mysql/mariadb-native_5.1.67.bb
@@ -5,7 +5,6 @@  PROVIDES += "mysql5-native"
 
 RDEPENDS_${PN} = ""
 PACKAGES = ""
-DEPENDS = "ncurses-native"
 EXTRA_OEMAKE = ""
 EXTRA_OECONF = " --with-embedded-server "