libiconv: skip recipe if using eglibc

libiconv is provided for use with uClibc - if you build it together with
eglibc (which already PROVIDES virtual/libiconv) you can end up with
dependency problems during do_rootfs.

(From OE-Core rev: f3e2ccff952f148522a09c09e0dea92e59bab5b6)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Paul Eggleton 2012-08-20 14:20:41 +01:00 committed by Richard Purdie
parent 3fe5d09058
commit 8a2664b1c2
2 changed files with 10 additions and 0 deletions

View File

@ -20,6 +20,11 @@ S = "${WORKDIR}/libiconv-${PV}"
inherit autotools pkgconfig gettext
python __anonymous() {
if d.getVar("TCLIBC", True) == "eglibc":
raise bb.parse.SkipPackage("libiconv is provided for use with uClibc only - eglibc already provides iconv")
}
EXTRA_OECONF += "--enable-shared --enable-static --enable-relocatable"
LEAD_SONAME = "libiconv.so"

View File

@ -21,6 +21,11 @@ S = "${WORKDIR}/libiconv-${PV}"
inherit autotools pkgconfig gettext
python __anonymous() {
if d.getVar("TCLIBC", True) == "eglibc":
raise bb.parse.SkipPackage("libiconv is provided for use with uClibc only - eglibc already provides iconv")
}
EXTRA_OECONF += "--enable-shared --enable-static --enable-relocatable"
LEAD_SONAME = "libiconv.so"