Skip to contentSkip to conversation

argp-standalone: make it available for non-musl systems too

PATCH In review Maxin B. John 3 participants 4 messages Feb 23, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 argp-standalone: make it available for non-musl systems too

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']

---
 meta/recipes-support/argp-standalone/argp-standalone_1.3.bb | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)
meta/recipes-support/argp-standalone/argp-standalone_1.3.bb +4 -5
index d61c8be..5148bbf 100644
@@ -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
+}
Signature · 1 line
2.4.0
#1 lore raw

Uclibc has its own argp implemented as libuargp so please use that you dont need yet another implementation

Quoted 43 lines · Maxin B. John

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']

---
 meta/recipes-support/argp-standalone/argp-standalone_1.3.bb | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)
meta/recipes-support/argp-standalone/argp-standalone_1.3.bb +4 -6
index d61c8be..5148bbf 100644
@@ -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
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

#2 lore raw
Quoted 3 lines · Khem Raj

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

#3 lore raw
In reply to Khem Raj

Hi Khem,

Quoted 5 lines · Khem Raj

Uclibc has its own argp implemented as libuargp so please use that you dont need yet another implementation

Quoted 3 lines · Maxin B. John

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