[hardknott][PATCH 07/13] dev86: add dependency on gperf-native


Martin Jansa
 

* fails to build on hosts without gperf:
/bin/sh: gperf: command not found
Makefile:27: recipe for target 'token2.h' failed

* normally this isn't triggered, because token[12].h
are included in git repo, but regenerating them fails:
tmp-glibc/work/x86_64-linux/dev86-native/0.16.21-r0/git/cpp$ touch token1.tok
tmp-glibc/work/x86_64-linux/dev86-native/0.16.21-r0/git/cpp$ make bcc-cpp
gperf -aptTc -N is_ctok -H hash1 token1.tok > tmp.h
/bin/sh: gperf: command not found
Makefile:23: recipe for target 'token1.h' failed
make: *** [token1.h] Error 127

* unfortunately this isn't enough, because new gperf 3.1 from oe-core
isn't compatible, we need to upgrade to different dev86 fork which
contains:
https://github.com/jbruchon/dev86/pull/19

Signed-off-by: Martin Jansa <Martin.Jansa@...>
Signed-off-by: Bruce Ashfield <bruce.ashfield@...>
---
recipes-extended/dev86/dev86_0.16.21.bb | 2 ++
1 file changed, 2 insertions(+)

diff --git a/recipes-extended/dev86/dev86_0.16.21.bb b/recipes-extended/dev86/dev86_0.16.21.bb
index cf64a9d..def7c5c 100644
--- a/recipes-extended/dev86/dev86_0.16.21.bb
+++ b/recipes-extended/dev86/dev86_0.16.21.bb
@@ -9,6 +9,8 @@ SRC_URI = "git://github.com/lkundrak/${BPN}.git;protocol=https"

S = "${WORKDIR}/git"

+DEPENDS = "gperf-native"
+
BBCLASSEXTEND = "native"
EXTRA_OEMAKE = "VERSION=${PV} PREFIX=${prefix} DIST=${D} LDFLAGS='${LDFLAGS}'"

--
2.32.0

Join meta-virtualization@lists.yoctoproject.org to automatically receive all group messages.