diff options
| author | Khem Raj <raj.khem@gmail.com> | 2022-08-30 15:58:32 -0700 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-09-01 10:07:02 +0100 |
| commit | f7423a2f9f93320dbd1c4195997e6e797916852b (patch) | |
| tree | ec0fe655b7eadd453b416a23d0e10cfa8c21dbc6 /meta | |
| parent | 9facffec785cc5a985d7d03b3e2b38c9bfa055cb (diff) | |
| download | poky-f7423a2f9f93320dbd1c4195997e6e797916852b.tar.gz | |
ncurses: Fix configure tests for exit and mbstate_t
These tests do not include needed headers which results in warnings and
as errors when using -Werror or latest clang e.g.
(From OE-Core rev: 92f191c304b5d53c14be23f7a5d57b0f9f101767)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
| -rw-r--r-- | meta/recipes-core/ncurses/files/exit_prototype.patch | 22 | ||||
| -rw-r--r-- | meta/recipes-core/ncurses/ncurses_6.3+20220423.bb | 1 |
2 files changed, 23 insertions, 0 deletions
diff --git a/meta/recipes-core/ncurses/files/exit_prototype.patch b/meta/recipes-core/ncurses/files/exit_prototype.patch new file mode 100644 index 0000000000..791421a338 --- /dev/null +++ b/meta/recipes-core/ncurses/files/exit_prototype.patch | |||
| @@ -0,0 +1,22 @@ | |||
| 1 | Add needed headers for including mbstate_t and exit() | ||
| 2 | |||
| 3 | Upstream-Status: Inappropriate [Reconfigure will solve it] | ||
| 4 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 5 | --- a/configure | ||
| 6 | +++ b/configure | ||
| 7 | @@ -3422,6 +3422,7 @@ rm -f "conftest.$ac_objext" "conftest.$a | ||
| 8 | cat >"conftest.$ac_ext" <<_ACEOF | ||
| 9 | #line 3423 "configure" | ||
| 10 | #include "confdefs.h" | ||
| 11 | +#include <stdlib.h> | ||
| 12 | $ac_declaration | ||
| 13 | int | ||
| 14 | main (void) | ||
| 15 | @@ -12997,6 +12998,7 @@ cat >"conftest.$ac_ext" <<_ACEOF | ||
| 16 | #include <stdlib.h> | ||
| 17 | #include <stdarg.h> | ||
| 18 | #include <stdio.h> | ||
| 19 | +#include <wchar.h> | ||
| 20 | #ifdef HAVE_LIBUTF8_H | ||
| 21 | #include <libutf8.h> | ||
| 22 | #endif | ||
diff --git a/meta/recipes-core/ncurses/ncurses_6.3+20220423.bb b/meta/recipes-core/ncurses/ncurses_6.3+20220423.bb index 9fba5b584b..ca5fa32572 100644 --- a/meta/recipes-core/ncurses/ncurses_6.3+20220423.bb +++ b/meta/recipes-core/ncurses/ncurses_6.3+20220423.bb | |||
| @@ -3,6 +3,7 @@ require ncurses.inc | |||
| 3 | SRC_URI += "file://0001-tic-hang.patch \ | 3 | SRC_URI += "file://0001-tic-hang.patch \ |
| 4 | file://0002-configure-reproducible.patch \ | 4 | file://0002-configure-reproducible.patch \ |
| 5 | file://0003-gen-pkgconfig.in-Do-not-include-LDFLAGS-in-generated.patch \ | 5 | file://0003-gen-pkgconfig.in-Do-not-include-LDFLAGS-in-generated.patch \ |
| 6 | file://exit_prototype.patch \ | ||
| 6 | " | 7 | " |
| 7 | # commit id corresponds to the revision in package version | 8 | # commit id corresponds to the revision in package version |
| 8 | SRCREV = "20db1fb41ec91cd8a1f528e770362092c5403378" | 9 | SRCREV = "20db1fb41ec91cd8a1f528e770362092c5403378" |
