diff options
| author | Martin Jansa <martin.jansa@gmail.com> | 2024-11-04 15:59:21 +0100 |
|---|---|---|
| committer | Steve Sakoman <steve@sakoman.com> | 2024-11-11 06:19:18 -0800 |
| commit | 4a9e116da8b3dc2692c7e96d272fd2c839ffde49 (patch) | |
| tree | baa720e6ebe6934ec4de4e2644dadb2c7a508b80 /meta/recipes-devtools/xmlto/xmlto-0.0.28/0001-fix-Wimplicit-int-for-ifsense.patch | |
| parent | d2067f7c272bb338140abdbb835734d4ace59f27 (diff) | |
| download | poky-4a9e116da8b3dc2692c7e96d272fd2c839ffde49.tar.gz | |
xmlto: backport a patch to fix build with gcc-14 on host
* need to add dependency on flex-native because now when the
.l file is modified by the .patch file it will try to regenerate
the c code and fail:
| make[1]: Entering directory 'work/x86_64-linux/xmlto-native/0.0.28-r0/build'
| /bin/bash ../xmlto-0.0.28/ylwrap ../xmlto-0.0.28/xmlif/xmlif.l .c xmlif/xmlif.c -- /bin/bash 'work/x86_64-linux/xmlto-native/0.0.28-r0/xmlto-0.0.28/missing' flex
| work/x86_64-linux/xmlto-native/0.0.28-r0/xmlto-0.0.28/missing: line 81: flex: command not found
| WARNING: 'flex' is missing on your system.
| You should only need it if you modified a '.l' file.
| You may want to install the Fast Lexical Analyzer package:
| <https://github.com/westes/flex>
* backport
https://pagure.io/xmlto/c/32376c053733c6c0ebaca3c25c0725509342fdf3?branch=master
as well, so that patched xmlif/xmlif.c is newer than xmlif/xmlif.l and the build
won't try to regenerate it with flex as that leads to random build failures reported
in:
https://lists.openembedded.org/g/openembedded-core/message/206412
https://errors.yoctoproject.org/Errors/Details/810853/
https://lists.openembedded.org/g/openembedded-core/message/206496
https://valkyrie.yoctoproject.org/#/builders/29/builds/355
(From OE-Core rev: 2e8819c0b9ada2b600aecc40c974a18eb7c0a666)
Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'meta/recipes-devtools/xmlto/xmlto-0.0.28/0001-fix-Wimplicit-int-for-ifsense.patch')
| -rw-r--r-- | meta/recipes-devtools/xmlto/xmlto-0.0.28/0001-fix-Wimplicit-int-for-ifsense.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/meta/recipes-devtools/xmlto/xmlto-0.0.28/0001-fix-Wimplicit-int-for-ifsense.patch b/meta/recipes-devtools/xmlto/xmlto-0.0.28/0001-fix-Wimplicit-int-for-ifsense.patch new file mode 100644 index 0000000000..d5c25ba08a --- /dev/null +++ b/meta/recipes-devtools/xmlto/xmlto-0.0.28/0001-fix-Wimplicit-int-for-ifsense.patch | |||
| @@ -0,0 +1,33 @@ | |||
| 1 | From 1375e2df75530cd198bd16ac3de38e2b0d126276 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Thomas Kuehne <thomas@kuehne.cn> | ||
| 3 | Date: Sat, 11 Dec 2021 21:10:41 +0100 | ||
| 4 | Subject: [PATCH] fix -Wimplicit-int for ifsense | ||
| 5 | MIME-Version: 1.0 | ||
| 6 | Content-Type: text/plain; charset=UTF-8 | ||
| 7 | Content-Transfer-Encoding: 8bit | ||
| 8 | |||
| 9 | fixes: | ||
| 10 | xmlif/xmlif.l:46:8: warning: type defaults to ‘int’ in declaration of ‘ifsense’ [-Wimplicit-int] | ||
| 11 | 46 | static ifsense; /* sense of last `if' or unless seen */ | ||
| 12 | | ^~~~~~~ | ||
| 13 | |||
| 14 | Signed-off-by: Thomas Kuehne <thomas@kuehne.cn> | ||
| 15 | Signed-off-by: Martin Jansa <martin.jansa@gmail.com> | ||
| 16 | Upstream-Status: Backport [v0.0.29 https://pagure.io/xmlto/c/1375e2df75530cd198bd16ac3de38e2b0d126276?branch=master | ||
| 17 | --- | ||
| 18 | xmlif/xmlif.l | 2 +- | ||
| 19 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 20 | |||
| 21 | diff --git a/xmlif/xmlif.l b/xmlif/xmlif.l | ||
| 22 | index ac42136..6e5970e 100644 | ||
| 23 | --- a/xmlif/xmlif.l | ||
| 24 | +++ b/xmlif/xmlif.l | ||
| 25 | @@ -43,7 +43,7 @@ | ||
| 26 | |||
| 27 | static char **selections; /* selection tokens */ | ||
| 28 | static int nselections; /* number of selections */ | ||
| 29 | -static ifsense; /* sense of last `if' or unless seen */ | ||
| 30 | +static int ifsense; /* sense of last `if' or unless seen */ | ||
| 31 | static char *attribute; /* last attribute scanned */ | ||
| 32 | |||
| 33 | struct stack_t { | ||
