]> code.ossystems Code Review - openembedded-core.git/commitdiff
libiconv: skip recipe if using eglibc
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Mon, 20 Aug 2012 13:20:41 +0000 (14:20 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 23 Aug 2012 15:45:06 +0000 (16:45 +0100)
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.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/recipes-support/libiconv/libiconv_1.11.1.bb
meta/recipes-support/libiconv/libiconv_1.14.bb

index 186a5a17b8d8d94e13d6f85c220ada3c03bc730d..055e20d4f1c361e9fc1afff2d649acf182dbc31c 100644 (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"
index af33d6bc95bf3b43fc96ffd6b7b96380465d8115..6666866a9099e5dcc90ff78be5b7395276bc3589 100644 (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"