Skip to contentSkip to conversation

libiconv: skip recipe if using eglibc

PATCH Applied Paul Eggleton 3 participants 3 messages Aug 20, 2012 – Aug 24, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 meta/recipes-support/libiconv/libiconv_1.11.1.bb |    5 +++++
 meta/recipes-support/libiconv/libiconv_1.14.bb   |    5 +++++
 2 files changed, 10 insertions(+)
meta/recipes-support/libiconv/libiconv_1.11.1.bb +5 -0
index 186a5a1..055e20d 100644
@@ -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"
meta/recipes-support/libiconv/libiconv_1.14.bb +5 -0
index af33d6b..6666866 100644
@@ -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"
Signature · 1 line
1.7.9.5
Acked-by on v1 1/1
#1 lore raw
Quoted 4 lines · Paul Eggleton

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.

hmmm ideally we should not need this. since iconv from eglibc should be drop in replacement packagwise.
but extra net of security does not hurt.

Quoted 41 lines
---
 meta/recipes-support/libiconv/libiconv_1.11.1.bb |    5 +++++
 meta/recipes-support/libiconv/libiconv_1.14.bb   |    5 +++++
 2 files changed, 10 insertions(+)
meta/recipes-support/libiconv/libiconv_1.11.1.bb +5 -0
index 186a5a1..055e20d 100644
@@ -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"
meta/recipes-support/libiconv/libiconv_1.14.bb +5 -1
index af33d6b..6666866 100644
@@ -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"
--

1.7.9.5

Applied
#2 lore raw
In reply to Paul Eggleton
Quoted 33 lines · Paul Eggleton

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.

---
  meta/recipes-support/libiconv/libiconv_1.11.1.bb |    5 +++++
  meta/recipes-support/libiconv/libiconv_1.14.bb   |    5 +++++
  2 files changed, 10 insertions(+)
meta/recipes-support/libiconv/libiconv_1.11.1.bb +5 -0
index 186a5a1..055e20d 100644
@@ -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"
meta/recipes-support/libiconv/libiconv_1.14.bb +0 -0
index af33d6b..6666866 100644
@@ -21,6 +21,11 @@ S = "${WORKDIR}/libiconv-${PV}"
 

meta/recipes-support/libiconv/libiconv_1.14.bb S = "${WORKDIR}/libiconv-${PV}" · line 31

Quoted 10 lines
meta/recipes-support/libiconv/libiconv_1.14.bb +5 -0
  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"

Merged into OE-Core

Thanks
Sau!