libvmi: add dependency on flex-native and bison-native instead of byacc-native
PATCH 1/1 libvmi: add dependency on flex-native and bison-native instead of byacc-native
* fails to build with byacc-native 20230219 from:
https://git.openembedded.org/meta-openembedded/commit/?id=3462709d651f44f3d067b3ce0bcfba876be9ff1d
* https://invisible-island.net/byacc/CHANGES.html#index-t20230219 says:
provide for a named union, e.g., "%union foo" by detecting the name and deferring the typedef in that case until the end of copying the union definition (report by Dag-Erling Smørgrav).
which in this case leads to this diff (compared to byacc 20230201):
--- 0.14.0+gitAUTOINC+41600b6028-r0-byacc_20230201/git/libvmi/config/grammar.c 2023-05-03 07:44:51.694234317 +0000 +++ 0.14.0+gitAUTOINC+41600b6028-r0-byacc_20230219/git/libvmi/config/grammar.c 2023-05-03 07:37:14.177205785 +0000 @@ -5,7 +5,7 @@ #define YYBYACC 1 #define YYMAJOR 2 #define YYMINOR 0 -#define YYPATCH 20230201 +#define YYPATCH 20230219
#define YYEMPTY (-1)
#define yyclearin (yychar = YYEMPTY)
@@ -273,7 +273,7 @@
#ifndef YYSTYPE_IS_DECLARED
#define YYSTYPE_IS_DECLARED 1
#line 249 "libvmi/config/grammar.y"
-typedef union YYSTYPE{
+typedef union YYSTYPE�(�o&V{
char *str;
} YYSTYPE;
#endif /* !YYSTYPE_IS_DECLARED */* and the unicode chars after YYSTYPE lead to:
http://errors.yoctoproject.org/Errors/Details/702745/
libvmi/config/grammar.y:249:22: error: stray '\370' in program
249 | %union{
| ^
libvmi/config/grammar.y:249:25: error: expected ')' before '+' token
249 | %union{
| ^
| )libvmi/config/grammar.y:249:26: error: stray '\3' in program
249 | %union{
| ^
make[1]: *** [Makefile:1997: libvmi/config/libconfig_la-grammar.lo] Error 1
* bison-native works fine, so use that for now
* I've reported this issue to byacc author over e-mail
--- recipes-extended/libvmi/libvmi_git.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-extended/libvmi/libvmi_git.bb +1 -1
@@ -6,7 +6,7 @@ LIC_FILES_CHKSUM = "file://COPYING.LESSER;md5=e6a600fd5e1d9cbde2d983680233ad02" SECTION = "console/tools" PV = "0.14.0+git${SRCPV}" -DEPENDS = "libvirt libcheck bison fuse byacc-native" +DEPENDS = "libvirt libcheck bison fuse bison-native flex-native" SRC_URI = "git://github.com/libvmi/libvmi.git;branch=master;protocol=https \ file://0001-Build-vbd-only-when-xen-is-enabled.patch \
Signature · 1 line
2.40.1