summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/recipes-multimedia/libcdio/libcdio/0001-Fix-a-few-Werror-format-security-errors-with-mvprint.patch40
-rw-r--r--meta-oe/recipes-multimedia/libcdio/libcdio/Drop-LIBCDIO_SOURCE_PATH-by-dropping-STRIP_FROM_PATH.patch43
-rw-r--r--meta-oe/recipes-multimedia/libcdio/libcdio_2.2.0.bb (renamed from meta-oe/recipes-multimedia/libcdio/libcdio_2.1.0.bb)9
3 files changed, 3 insertions, 89 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
deleted file mode 100644
index 09e7dc3dfb..0000000000
--- a/meta-oe/recipes-multimedia/libcdio/libcdio/0001-Fix-a-few-Werror-format-security-errors-with-mvprint.patch
+++ /dev/null
@@ -1,40 +0,0 @@
1From e5e54be286bf6d8336b747503c803750bc674c57 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 30 Oct 2021 01:28:18 -0700
4Subject: [PATCH] Fix a few -Werror=format-security errors with mvprintw()
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
10Signed-off-by: Khem Raj <raj.khem@gmail.com>
11---
12 src/cdda-player.c | 6 +++---
13 1 file changed, 3 insertions(+), 3 deletions(-)
14
15diff --git a/src/cdda-player.c b/src/cdda-player.c
16index 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/Drop-LIBCDIO_SOURCE_PATH-by-dropping-STRIP_FROM_PATH.patch b/meta-oe/recipes-multimedia/libcdio/libcdio/Drop-LIBCDIO_SOURCE_PATH-by-dropping-STRIP_FROM_PATH.patch
deleted file mode 100644
index 0b25dff75e..0000000000
--- a/meta-oe/recipes-multimedia/libcdio/libcdio/Drop-LIBCDIO_SOURCE_PATH-by-dropping-STRIP_FROM_PATH.patch
+++ /dev/null
@@ -1,43 +0,0 @@
1From 08c1768aaeea86c522c0ef1705b9b6d434ebd3ae Mon Sep 17 00:00:00 2001
2From: Chris Lamb <chris@chris-lamb.co.uk>
3Date: Fri, 28 Jul 2017 11:49:13 +0100
4Subject: [PATCH] Drop LIBCDIO_SOURCE_PATH by dropping STRIP_FROM_PATH Doxygen
5 setup; it's not used as FULL_PATH_NAMES = no
6
7Source: https://sources.debian.org/data/main/libc/libcdio/2.1.0-4/debian/patches/Drop-LIBCDIO_SOURCE_PATH-by-dropping-STRIP_FROM_PATH.patch
8Upstream-Status: Pending
9Signed-off-by: Khem Raj <raj.khem@gmail.com>
10---
11 configure.ac | 5 -----
12 doc/doxygen/Doxyfile.in | 2 +-
13 2 files changed, 1 insertion(+), 6 deletions(-)
14
15Index: b/configure.ac
16===================================================================
17--- a/configure.ac
18+++ b/configure.ac
19@@ -557,11 +557,6 @@ AC_SUBST(HAVE_SOLARIS_CDROM)
20 AC_SUBST(HAVE_WIN32_CDROM)
21 AC_SUBST(HAVE_OS2_CDROM)
22
23-LIBCDIO_SOURCE_PATH="`pwd`"
24-AC_DEFINE_UNQUOTED(LIBCDIO_SOURCE_PATH, "$LIBCDIO_SOURCE_PATH",
25- [Full path to libcdio top_sourcedir.])
26-AC_SUBST(LIBCDIO_SOURCE_PATH)
27-
28 AC_CHECK_FUNCS( [chdir drand48 fseeko fseeko64 ftruncate geteuid getgid \
29 getuid getpwuid gettimeofday lseek64 lstat memcpy memset mkstemp rand \
30 seteuid setegid snprintf setenv strndup unsetenv tzset sleep \
31Index: b/doc/doxygen/Doxyfile.in
32===================================================================
33--- a/doc/doxygen/Doxyfile.in
34+++ b/doc/doxygen/Doxyfile.in
35@@ -138,7 +138,7 @@ FULL_PATH_NAMES = NO
36 # If left blank the directory from which doxygen is run is used as the
37 # path to strip.
38
39-STRIP_FROM_PATH = @LIBCDIO_SOURCE_PATH@
40+STRIP_FROM_PATH =
41
42 # The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of
43 # the path mentioned in the documentation of a class, which tells
diff --git a/meta-oe/recipes-multimedia/libcdio/libcdio_2.1.0.bb b/meta-oe/recipes-multimedia/libcdio/libcdio_2.2.0.bb
index d986f90d72..c443d9b891 100644
--- a/meta-oe/recipes-multimedia/libcdio/libcdio_2.1.0.bb
+++ b/meta-oe/recipes-multimedia/libcdio/libcdio_2.2.0.bb
@@ -4,14 +4,11 @@ SECTION = "libs"
4LICENSE = "GPL-3.0-or-later" 4LICENSE = "GPL-3.0-or-later"
5LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" 5LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
6 6
7SRC_URI = "${GNU_MIRROR}/${BPN}/${BP}.tar.bz2 \ 7SRC_URI = "${GITHUB_BASE_URI}/download/${PV}/${BP}.tar.bz2"
8 file://0001-Fix-a-few-Werror-format-security-errors-with-mvprint.patch \
9 file://Drop-LIBCDIO_SOURCE_PATH-by-dropping-STRIP_FROM_PATH.patch \
10 "
11 8
12SRC_URI[sha256sum] = "8550e9589dbd594bfac93b81ecf129b1dc9d0d51e90f9696f1b2f9b2af32712b" 9SRC_URI[sha256sum] = "6f8fbdf4d189cf63f2a7a1549c516cd720c7b222c7aaadbc924a26e745a48539"
13 10
14inherit autotools pkgconfig 11inherit autotools pkgconfig github-releases
15 12
16PACKAGECONFIG ??= "cdda-player" 13PACKAGECONFIG ??= "cdda-player"
17PACKAGECONFIG[cdda-player] = "--with-cdda-player,--without-cdda-player,ncurses" 14PACKAGECONFIG[cdda-player] = "--with-cdda-player,--without-cdda-player,ncurses"