diff options
| author | Khem Raj <raj.khem@gmail.com> | 2021-10-30 01:34:37 -0700 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2021-11-01 05:45:17 -0700 |
| commit | a1ac306208bb9f56fc6e311bd9ff87c46dc2182f (patch) | |
| tree | 5961b7d2ce0558d24a326695936316102cf27d4f | |
| parent | 1f6ef41c0658a2900b6d537b5e728bd9f8029461 (diff) | |
| download | meta-openembedded-a1ac306208bb9f56fc6e311bd9ff87c46dc2182f.tar.gz | |
libcdio: Fix build with ncurses 6.3+
Signed-off-by: Khem Raj <raj.khem@gmail.com>
| -rw-r--r-- | meta-oe/recipes-multimedia/libcdio/libcdio/0001-Fix-a-few-Werror-format-security-errors-with-mvprint.patch | 40 | ||||
| -rw-r--r-- | meta-oe/recipes-multimedia/libcdio/libcdio_2.1.0.bb | 4 |
2 files changed, 43 insertions, 1 deletions
diff --git a/meta-oe/recipes-multimedia/libcdio/libcdio/0001-Fix-a-few-Werror-format-security-errors-with-mvprint.patch b/meta-oe/recipes-multimedia/libcdio/libcdio/0001-Fix-a-few-Werror-format-security-errors-with-mvprint.patch new file mode 100644 index 0000000000..09e7dc3dfb --- /dev/null +++ b/meta-oe/recipes-multimedia/libcdio/libcdio/0001-Fix-a-few-Werror-format-security-errors-with-mvprint.patch | |||
| @@ -0,0 +1,40 @@ | |||
| 1 | From e5e54be286bf6d8336b747503c803750bc674c57 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Sat, 30 Oct 2021 01:28:18 -0700 | ||
| 4 | Subject: [PATCH] Fix a few -Werror=format-security errors with mvprintw() | ||
| 5 | |||
| 6 | In all these places a non-constant is used as a format string which | ||
| 7 | compiler complains about. Fix by using "%s" as format. | ||
| 8 | |||
| 9 | Upstream-Status: Pending | ||
| 10 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 11 | --- | ||
| 12 | src/cdda-player.c | 6 +++--- | ||
| 13 | 1 file changed, 3 insertions(+), 3 deletions(-) | ||
| 14 | |||
| 15 | diff --git a/src/cdda-player.c b/src/cdda-player.c | ||
| 16 | index 69eddee..8834d60 100644 | ||
| 17 | --- a/src/cdda-player.c | ||
| 18 | +++ b/src/cdda-player.c | ||
| 19 | @@ -298,7 +298,7 @@ action(const char *psz_action) | ||
| 20 | psz_action); | ||
| 21 | else | ||
| 22 | snprintf(psz_action_line, sizeof(psz_action_line), "%s", "" ); | ||
| 23 | - mvprintw(LINE_ACTION, 0, psz_action_line); | ||
| 24 | + mvprintw(LINE_ACTION, 0, "%s", psz_action_line); | ||
| 25 | clrtoeol(); | ||
| 26 | refresh(); | ||
| 27 | } | ||
| 28 | @@ -1029,10 +1029,10 @@ display_tracks(void) | ||
| 29 | } | ||
| 30 | if (sub.track == i) { | ||
| 31 | attron(A_STANDOUT); | ||
| 32 | - mvprintw(i_line++, 0, line); | ||
| 33 | + mvprintw(i_line++, 0, "%s", line); | ||
| 34 | attroff(A_STANDOUT); | ||
| 35 | } else | ||
| 36 | - mvprintw(i_line++, 0, line); | ||
| 37 | + mvprintw(i_line++, 0, "%s", line); | ||
| 38 | clrtoeol(); | ||
| 39 | } | ||
| 40 | } | ||
diff --git a/meta-oe/recipes-multimedia/libcdio/libcdio_2.1.0.bb b/meta-oe/recipes-multimedia/libcdio/libcdio_2.1.0.bb index 2340132984..2becafb2a4 100644 --- a/meta-oe/recipes-multimedia/libcdio/libcdio_2.1.0.bb +++ b/meta-oe/recipes-multimedia/libcdio/libcdio_2.1.0.bb | |||
| @@ -4,7 +4,9 @@ SECTION = "libs" | |||
| 4 | LICENSE = "GPLv3+" | 4 | LICENSE = "GPLv3+" |
| 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" | 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" |
| 6 | 6 | ||
| 7 | SRC_URI = "${GNU_MIRROR}/${BPN}/${BP}.tar.bz2" | 7 | SRC_URI = "${GNU_MIRROR}/${BPN}/${BP}.tar.bz2 \ |
| 8 | file://0001-Fix-a-few-Werror-format-security-errors-with-mvprint.patch \ | ||
| 9 | " | ||
| 8 | 10 | ||
| 9 | SRC_URI[md5sum] = "aa7629e8f73662a762f64c444b901055" | 11 | SRC_URI[md5sum] = "aa7629e8f73662a762f64c444b901055" |
| 10 | SRC_URI[sha256sum] = "8550e9589dbd594bfac93b81ecf129b1dc9d0d51e90f9696f1b2f9b2af32712b" | 12 | SRC_URI[sha256sum] = "8550e9589dbd594bfac93b81ecf129b1dc9d0d51e90f9696f1b2f9b2af32712b" |
