Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] argp-standalone: make it available for non-musl systems too
@ 2016-02-23 15:21 Maxin B. John
  2016-02-23 15:40 ` Khem Raj
  0 siblings, 1 reply; 4+ messages in thread
From: Maxin B. John @ 2016-02-23 15:21 UTC (permalink / raw)
  To: openembedded-core

Without this, uclibc build of rng-tools will fail with this error:

ERROR: Nothing PROVIDES 'argp-standalone'
(but rng-tools_5.bb DEPENDS on or otherwise requires it)
ERROR: argp-standalone was skipped: incompatible with host
x86_64-poky-linux-uclibc (not in COMPATIBLE_HOST)
ERROR: Required build target 'rng-tools' has no buildable providers.
Missing or unbuildable dependency chain was: ['rng-tools',
'argp-standalone']

Signed-off-by: Maxin B. John <maxin.john@intel.com>
---
 meta/recipes-support/argp-standalone/argp-standalone_1.3.bb | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/meta/recipes-support/argp-standalone/argp-standalone_1.3.bb b/meta/recipes-support/argp-standalone/argp-standalone_1.3.bb
index d61c8be..5148bbf 100644
--- a/meta/recipes-support/argp-standalone/argp-standalone_1.3.bb
+++ b/meta/recipes-support/argp-standalone/argp-standalone_1.3.bb
@@ -21,9 +21,8 @@ CFLAGS += "-fPIC -U__OPTIMIZE__"
 
 do_install() {
 	install -D -m 0644 ${B}/libargp.a ${D}${libdir}/libargp.a
-	install -D -m 0644 ${S}/argp.h ${D}${includedir}/argp.h
 }
-#
-# We will skip parsing for non-musl systems
-#
-COMPATIBLE_HOST = ".*-musl.*"
+
+do_install_append_libc-musl() {
+    install -D -m 0644 ${S}/argp.h ${D}${includedir}/argp.h
+}
-- 
2.4.0



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] argp-standalone: make it available for non-musl systems too
  2016-02-23 15:21 [PATCH] argp-standalone: make it available for non-musl systems too Maxin B. John
@ 2016-02-23 15:40 ` Khem Raj
  2016-02-23 15:43   ` Burton, Ross
  2016-02-23 16:05   ` Maxin B. John
  0 siblings, 2 replies; 4+ messages in thread
From: Khem Raj @ 2016-02-23 15:40 UTC (permalink / raw)
  To: Maxin B. John; +Cc: Patches and discussions about the oe-core layer

[-- Attachment #1: Type: text/plain, Size: 1791 bytes --]

Uclibc has its own argp implemented as libuargp so please use that you dont
need yet another implementation
On Feb 23, 2016 10:18 AM, "Maxin B. John" <maxin.john@intel.com> wrote:

> Without this, uclibc build of rng-tools will fail with this error:
>
> ERROR: Nothing PROVIDES 'argp-standalone'
> (but rng-tools_5.bb DEPENDS on or otherwise requires it)
> ERROR: argp-standalone was skipped: incompatible with host
> x86_64-poky-linux-uclibc (not in COMPATIBLE_HOST)
> ERROR: Required build target 'rng-tools' has no buildable providers.
> Missing or unbuildable dependency chain was: ['rng-tools',
> 'argp-standalone']
>
> Signed-off-by: Maxin B. John <maxin.john@intel.com>
> ---
>  meta/recipes-support/argp-standalone/argp-standalone_1.3.bb | 9 ++++-----
>  1 file changed, 4 insertions(+), 5 deletions(-)
>
> diff --git a/meta/recipes-support/argp-standalone/argp-standalone_1.3.bb
> b/meta/recipes-support/argp-standalone/argp-standalone_1.3.bb
> index d61c8be..5148bbf 100644
> --- a/meta/recipes-support/argp-standalone/argp-standalone_1.3.bb
> +++ b/meta/recipes-support/argp-standalone/argp-standalone_1.3.bb
> @@ -21,9 +21,8 @@ CFLAGS += "-fPIC -U__OPTIMIZE__"
>
>  do_install() {
>         install -D -m 0644 ${B}/libargp.a ${D}${libdir}/libargp.a
> -       install -D -m 0644 ${S}/argp.h ${D}${includedir}/argp.h
>  }
> -#
> -# We will skip parsing for non-musl systems
> -#
> -COMPATIBLE_HOST = ".*-musl.*"
> +
> +do_install_append_libc-musl() {
> +    install -D -m 0644 ${S}/argp.h ${D}${includedir}/argp.h
> +}
> --
> 2.4.0
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>

[-- Attachment #2: Type: text/html, Size: 2855 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] argp-standalone: make it available for non-musl systems too
  2016-02-23 15:40 ` Khem Raj
@ 2016-02-23 15:43   ` Burton, Ross
  2016-02-23 16:05   ` Maxin B. John
  1 sibling, 0 replies; 4+ messages in thread
From: Burton, Ross @ 2016-02-23 15:43 UTC (permalink / raw)
  To: Khem Raj; +Cc: Patches and discussions about the oe-core layer

[-- Attachment #1: Type: text/plain, Size: 297 bytes --]

On 23 February 2016 at 15:40, Khem Raj <raj.khem@gmail.com> wrote:

> Uclibc has its own argp implemented as libuargp so please use that you
> dont need yet another implementation
>
So the proper fix is to change rng-tools so it doesn't depend on
argp-standalone on uclibc I guess.

Ross

[-- Attachment #2: Type: text/html, Size: 652 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] argp-standalone: make it available for non-musl systems too
  2016-02-23 15:40 ` Khem Raj
  2016-02-23 15:43   ` Burton, Ross
@ 2016-02-23 16:05   ` Maxin B. John
  1 sibling, 0 replies; 4+ messages in thread
From: Maxin B. John @ 2016-02-23 16:05 UTC (permalink / raw)
  To: Khem Raj; +Cc: Patches and discussions about the oe-core layer

Hi Khem,

On Tue, Feb 23, 2016 at 10:40:28AM -0500, Khem Raj wrote:
>Uclibc has its own argp implemented as libuargp so please use that you dont need yet another implementation

>>On Feb 23, 2016 10:18 AM, "Maxin B. John" <maxin.john@intel.com> wrote:
>>
>>Without this, uclibc build of rng-tools will fail with this error:

Thanks.. I will update rng-tools to use libuargp for uclibc builds.

Best Regards,
Maxin


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-02-23 16:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-23 15:21 [PATCH] argp-standalone: make it available for non-musl systems too Maxin B. John
2016-02-23 15:40 ` Khem Raj
2016-02-23 15:43   ` Burton, Ross
2016-02-23 16:05   ` Maxin B. John

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox