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

mail settings
Date Oct. 25, 2013, 6:37 a.m.
Message ID <>
Download mbox
Permalink /patch/60495/
State Accepted, archived
Headers show


git:// wenzong/mariadb-native

Comments - Oct. 25, 2013, 6:37 a.m.
From: Wenzong Fan <>

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 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/

The following changes since commit 2e4b24dad58095579ce3fb34a33b029cfcf0a813:

  cifs-utils: add --ignore-fail-on-non-empty for rmdir (2013-10-24 14:05:35 -0400)

are available in the git repository at:

  git:// wenzong/mariadb-native

Wenzong Fan (1):
  mariadb-native: depends on zlib-native

 meta-oe/recipes-support/mysql/ |    1 -
 1 file changed, 1 deletion(-)