summaryrefslogtreecommitdiffstats
path: root/meta-oe
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2021-10-30 10:54:37 -0700
committerKhem Raj <raj.khem@gmail.com>2021-11-01 05:45:17 -0700
commite53d796e1f4767e7d7f7aab3e77200bdc27856df (patch)
tree3ad59f234856c43e7258500f9218f6be52eef523 /meta-oe
parentdfe7eef9ca7ac3452804ce72148679235855b9b4 (diff)
downloadmeta-openembedded-e53d796e1f4767e7d7f7aab3e77200bdc27856df.tar.gz
tiptop: Fix build with ncurses 6.3+
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe')
-rw-r--r--meta-oe/recipes-extended/tiptop/tiptop/0001-Fix-a-lot-of-Werror-format-security-errors-with-mvwp.patch31
-rw-r--r--meta-oe/recipes-extended/tiptop/tiptop_2.3.1.bb2
2 files changed, 32 insertions, 1 deletions
diff --git a/meta-oe/recipes-extended/tiptop/tiptop/0001-Fix-a-lot-of-Werror-format-security-errors-with-mvwp.patch b/meta-oe/recipes-extended/tiptop/tiptop/0001-Fix-a-lot-of-Werror-format-security-errors-with-mvwp.patch
new file mode 100644
index 0000000000..6d5e293c7f
--- /dev/null
+++ b/meta-oe/recipes-extended/tiptop/tiptop/0001-Fix-a-lot-of-Werror-format-security-errors-with-mvwp.patch
@@ -0,0 +1,31 @@
1From 42e99eb6c727df7c9d49586803a4bf9933a9796b Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 30 Oct 2021 10:52:42 -0700
4Subject: [PATCH] Fix a lot of -Werror=format-security errors with mvwprintw
5
6In all these places a non-constant is used as a format string which
7compiler complains about. Fix by using "%s" as format.
8
9Upstream-Status: Pending
10
11Signed-off-by: Khem Raj <raj.khem@gmail.com>
12---
13 src/helpwin.c | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
15
16diff --git a/src/helpwin.c b/src/helpwin.c
17index 0d660f9..1623d9c 100644
18--- a/src/helpwin.c
19+++ b/src/helpwin.c
20@@ -61,7 +61,7 @@ void show_help_win(WINDOW* win, screen_t* screen)
21 wattroff(win, A_REVERSE);
22
23 /* screen description */
24- mvwprintw(win, 2, 1, screen->desc);
25+ mvwprintw(win, 2, 1, "%s", screen->desc);
26
27 /* max size of column headers */
28 for(i = 0; i < n; i++) {
29--
302.33.1
31
diff --git a/meta-oe/recipes-extended/tiptop/tiptop_2.3.1.bb b/meta-oe/recipes-extended/tiptop/tiptop_2.3.1.bb
index 31d0dae25c..8334bc47d8 100644
--- a/meta-oe/recipes-extended/tiptop/tiptop_2.3.1.bb
+++ b/meta-oe/recipes-extended/tiptop/tiptop_2.3.1.bb
@@ -8,8 +8,8 @@ SRC_URI = "http://tiptop.gforge.inria.fr/releases/${BP}.tar.gz \
8 file://0001-Fix-parallel-build-problems-by-Adrian-Bunk.patch \ 8 file://0001-Fix-parallel-build-problems-by-Adrian-Bunk.patch \
9 file://0002-fix-reproducibility-of-build-process.patch \ 9 file://0002-fix-reproducibility-of-build-process.patch \
10 file://0001-Fix-build-when-S-B.patch \ 10 file://0001-Fix-build-when-S-B.patch \
11 file://0001-Fix-a-lot-of-Werror-format-security-errors-with-mvwp.patch \
11 " 12 "
12SRC_URI[md5sum] = "46ca0fdf0236f02dd2b96d347626d2a2"
13SRC_URI[sha256sum] = "51c4449c95bba34f16b429729c2f58431490665d8093efaa8643b2e1d1084182" 13SRC_URI[sha256sum] = "51c4449c95bba34f16b429729c2f58431490665d8093efaa8643b2e1d1084182"
14 14
15inherit autotools 15inherit autotools