* [PATCH] libiconv: skip recipe if using eglibc
@ 2012-08-20 13:20 Paul Eggleton
2012-08-20 19:22 ` Khem Raj
2012-08-24 18:26 ` Saul Wold
0 siblings, 2 replies; 3+ messages in thread
From: Paul Eggleton @ 2012-08-20 13:20 UTC (permalink / raw)
To: openembedded-core
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>
---
meta/recipes-support/libiconv/libiconv_1.11.1.bb | 5 +++++
meta/recipes-support/libiconv/libiconv_1.14.bb | 5 +++++
2 files changed, 10 insertions(+)
diff --git a/meta/recipes-support/libiconv/libiconv_1.11.1.bb b/meta/recipes-support/libiconv/libiconv_1.11.1.bb
index 186a5a1..055e20d 100644
--- a/meta/recipes-support/libiconv/libiconv_1.11.1.bb
+++ b/meta/recipes-support/libiconv/libiconv_1.11.1.bb
@@ -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"
diff --git a/meta/recipes-support/libiconv/libiconv_1.14.bb b/meta/recipes-support/libiconv/libiconv_1.14.bb
index af33d6b..6666866 100644
--- a/meta/recipes-support/libiconv/libiconv_1.14.bb
+++ b/meta/recipes-support/libiconv/libiconv_1.14.bb
@@ -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
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] libiconv: skip recipe if using eglibc
2012-08-20 13:20 [PATCH] libiconv: skip recipe if using eglibc Paul Eggleton
@ 2012-08-20 19:22 ` Khem Raj
2012-08-24 18:26 ` Saul Wold
1 sibling, 0 replies; 3+ messages in thread
From: Khem Raj @ 2012-08-20 19:22 UTC (permalink / raw)
To: Paul Eggleton; +Cc: openembedded-core
On Mon, Aug 20, 2012 at 6:20 AM, Paul Eggleton
<paul.eggleton@linux.intel.com> wrote:
> 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.
Acked-by: Khem Raj <raj.khem@gmail.com>
> Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
> ---
> meta/recipes-support/libiconv/libiconv_1.11.1.bb | 5 +++++
> meta/recipes-support/libiconv/libiconv_1.14.bb | 5 +++++
> 2 files changed, 10 insertions(+)
>
> diff --git a/meta/recipes-support/libiconv/libiconv_1.11.1.bb b/meta/recipes-support/libiconv/libiconv_1.11.1.bb
> index 186a5a1..055e20d 100644
> --- a/meta/recipes-support/libiconv/libiconv_1.11.1.bb
> +++ b/meta/recipes-support/libiconv/libiconv_1.11.1.bb
> @@ -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"
> diff --git a/meta/recipes-support/libiconv/libiconv_1.14.bb b/meta/recipes-support/libiconv/libiconv_1.14.bb
> index af33d6b..6666866 100644
> --- a/meta/recipes-support/libiconv/libiconv_1.14.bb
> +++ b/meta/recipes-support/libiconv/libiconv_1.14.bb
> @@ -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
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] libiconv: skip recipe if using eglibc
2012-08-20 13:20 [PATCH] libiconv: skip recipe if using eglibc Paul Eggleton
2012-08-20 19:22 ` Khem Raj
@ 2012-08-24 18:26 ` Saul Wold
1 sibling, 0 replies; 3+ messages in thread
From: Saul Wold @ 2012-08-24 18:26 UTC (permalink / raw)
To: Paul Eggleton; +Cc: openembedded-core
On 08/20/2012 06:20 AM, Paul Eggleton wrote:
> 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>
> ---
> meta/recipes-support/libiconv/libiconv_1.11.1.bb | 5 +++++
> meta/recipes-support/libiconv/libiconv_1.14.bb | 5 +++++
> 2 files changed, 10 insertions(+)
>
> diff --git a/meta/recipes-support/libiconv/libiconv_1.11.1.bb b/meta/recipes-support/libiconv/libiconv_1.11.1.bb
> index 186a5a1..055e20d 100644
> --- a/meta/recipes-support/libiconv/libiconv_1.11.1.bb
> +++ b/meta/recipes-support/libiconv/libiconv_1.11.1.bb
> @@ -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"
> diff --git a/meta/recipes-support/libiconv/libiconv_1.14.bb b/meta/recipes-support/libiconv/libiconv_1.14.bb
> index af33d6b..6666866 100644
> --- a/meta/recipes-support/libiconv/libiconv_1.14.bb
> +++ b/meta/recipes-support/libiconv/libiconv_1.14.bb
> @@ -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"
>
Merged into OE-Core
Thanks
Sau!
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-08-24 18:38 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-20 13:20 [PATCH] libiconv: skip recipe if using eglibc Paul Eggleton
2012-08-20 19:22 ` Khem Raj
2012-08-24 18:26 ` Saul Wold
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox