Return-Path: Received: from mail.windriver.com (mail.windriver.com [147.11.1.11]) by mail.openembedded.org (Postfix) with ESMTP id D33876D385 for ; Fri, 25 Oct 2013 06:37:40 +0000 (UTC) Received: from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com [147.11.189.40]) by mail.windriver.com (8.14.5/8.14.3) with ESMTP id r9P6bgre003429 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL) for ; Thu, 24 Oct 2013 23:37:43 -0700 (PDT) Received: from pek-wfan-d2.corp.ad.wrs.com (128.224.162.200) by ALA-HCA.corp.ad.wrs.com (147.11.189.40) with Microsoft SMTP Server id 14.2.347.0; Thu, 24 Oct 2013 23:37:42 -0700 From: To: Date: Fri, 25 Oct 2013 14:37:39 +0800 Message-ID: X-Mailer: git-send-email 1.7.10.4 MIME-Version: 1.0 Subject: [meta-oe][PATCH 0/1] mariadb-native: depends on zlib-native X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: openembedded-devel@lists.openembedded.org List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Oct 2013 06:37:41 -0000 Content-Type: text/plain 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 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". 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://git.pokylinux.org/poky-contrib wenzong/mariadb-native http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=wenzong/mariadb-native Wenzong Fan (1): mariadb-native: depends on zlib-native meta-oe/recipes-support/mysql/mariadb-native_5.1.67.bb | 1 - 1 file changed, 1 deletion(-) -- 1.7.10.4