Skip to contentSkip to conversation

dtc: add rdepends_${PN}-misc = diffutils

PATCH In review Ioan-Adrian Ratiu 2 participants 3 messages Mar 4, 2018 – Mar 8, 2018

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/2 dtc: add rdepends_${PN}-misc = diffutils

Needed by dtdiff which calls diff to display its result.

---
 meta/recipes-kernel/dtc/dtc.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-kernel/dtc/dtc.inc +1 -1
index d259c57e8d..9a90d44041 100644
@@ -22,4 +22,4 @@ do_install () {
 PACKAGES =+ "${PN}-misc"
 FILES_${PN}-misc = "${bindir}/convert-dtsv0 ${bindir}/ftdump ${bindir}/dtdiff"
 
-RDEPENDS_${PN}-misc += "bash"
+RDEPENDS_${PN}-misc += "bash diffutils"
Signature · 1 line
2.16.2
#1 lore raw

PATCH v2 2/2 diffutils: allow native & nativesdk builds

Required by the new dtc rdepends to avoid errors like this:

ERROR: Required build target 'ionel-rpi-image' has no buildable providers.
Missing or unbuildable dependency chain was: ['ionel-rpi-image', 'nativesdk-packagegroup-sdk-host', 'nativesdk-qemu', 'nativesdk-dtc', 'nativesdk-diffutils']

---
 meta/recipes-extended/diffutils/diffutils.inc | 1 +
 1 file changed, 1 insertion(+)
meta/recipes-extended/diffutils/diffutils.inc +1 -0
index 7c5be50fb7..c9e3130587 100644
@@ -10,3 +10,4 @@ inherit autotools texinfo update-alternatives gettext
 ALTERNATIVE_${PN} = "diff cmp"
 ALTERNATIVE_PRIORITY = "100"
 
+BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.16.2
#2 lore raw

Re: [PATCH v2 2/2] diffutils: allow native & nativesdk builds

Hi,

This patch breaks nativesdk-qemu build with x86_64-oesdk-mingw32 toolchain. Below are the errors i see

| In file included from ./fcntl.h:67:0,
| from ../../diffutils-3.6/lib/careadlinkat.h:23,
| from ../../diffutils-3.6/lib/areadlink.c:27:
| ./unistd.h:592:11: fatal error: getopt-cdefs.h: No such file or directory
| # include <getopt-cdefs.h>
| ^~~~~~~~~~~~~~~~
| compilation terminated.
| make[2]: *** [areadlink.o] Error 1
| make[2]: *** Waiting for unfinished jobs....
| In file included from ../../diffutils-3.6/lib/c-stack.c:72:0:
| ./unistd.h:592:11: fatal error: getopt-cdefs.h: No such file or directory
| # include <getopt-cdefs.h>
| ^~~~~~~~~~~~~~~~
| compilation terminated.
| make[2]: *** [c-stack.o] Error 1
| In file included from ./fcntl.h:67:0,
| from ../../diffutils-3.6/lib/binary-io.h:22,
| from ../../diffutils-3.6/lib/binary-io.c:20:
| ./unistd.h:592:11: fatal error: getopt-cdefs.h: No such file or directory
| # include <getopt-cdefs.h>
| ^~~~~~~~~~~~~~~~
| compilation terminated.
| In file included from ./fcntl.h:67:0,
| from ../../diffutils-3.6/lib/careadlinkat.h:23,
| from ../../diffutils-3.6/lib/careadlinkat.c:23:
| ./unistd.h:592:11: fatal error: getopt-cdefs.h: No such file or directory
| # include <getopt-cdefs.h>
| ^~~~~~~~~~~~~~~~
| compilation terminated.
| make[2]: *** [binary-io.o] Error 1
| make[2]: *** [careadlinkat.o] Error 1
| In file included from ./fcntl.h:67:0,
| from ../../diffutils-3.6/lib/localcharset.c:25:
| ./unistd.h:592:11: fatal error: getopt-cdefs.h: No such file or directory
| # include <getopt-cdefs.h>
| ^~~~~~~~~~~~~~~~
| compilation terminated.
| make[2]: *** [localcharset.o] Error 1
| In file included from ./fcntl.h:67:0,
| from ../../diffutils-3.6/lib/freopen-safer.c:25:
| ./unistd.h:592:11: fatal error: getopt-cdefs.h: No such file or directory
| # include <getopt-cdefs.h>
| ^~~~~~~~~~~~~~~~
| compilation terminated.

Thanks,
Sai Pavan

Quoted 38 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Ioan-Adrian Ratiu
Sent: Monday, March 5, 2018 5:11 AM
To: [email protected]
Subject: [OE-core] [PATCH v2 2/2] diffutils: allow native & nativesdk builds

Required by the new dtc rdepends to avoid errors like this:

ERROR: Required build target 'ionel-rpi-image' has no buildable providers. Missing or unbuildable dependency chain was: ['ionel-rpi-image', 'nativesdk- packagegroup-sdk-host', 'nativesdk-qemu', 'nativesdk-dtc', 'nativesdk- diffutils']

---
 meta/recipes-extended/diffutils/diffutils.inc | 1 +
 1 file changed, 1 insertion(+)
meta/recipes- renamed from meta/recipes-extended/diffutils/diffutils.inc +0 -0

extended/diffutils/diffutils.inc
index 7c5be50fb7..c9e3130587 100644

meta/recipes-extended/diffutils/diffutils.inc +0 -0
@@ -10,3 +10,4 @@ inherit autotools texinfo update-alternatives gettext

ALTERNATIVE_${PN} = "diff cmp"
ALTERNATIVE_PRIORITY = "100"

+BBCLASSEXTEND = "native nativesdk"
--
2.16.2

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core