summaryrefslogtreecommitdiffstats
path: root/meta/recipes-multimedia/alsa
diff options
context:
space:
mode:
authorMartin Jansa <Martin.Jansa@gmail.com>2023-08-01 11:42:23 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-08-04 11:44:28 +0100
commitb3286e3024041d8417ba7eb0ca24400ccc820ab9 (patch)
treea44b471fc218c6dbdab2ca831984ae64864cae5a /meta/recipes-multimedia/alsa
parent0402e69853f21cd8f0718ca9197574a4aa162f53 (diff)
downloadpoky-b3286e3024041d8417ba7eb0ca24400ccc820ab9.tar.gz
alsa-utils: backport a fix to build with glibc-2.38
(From OE-Core rev: b2cc6f150d68ffcdb7e767b94731bc2ff258e4de) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-multimedia/alsa')
-rw-r--r--meta/recipes-multimedia/alsa/alsa-utils/0001-alsactl-add-define-to-compile-with-glibc-2.38.patch39
-rw-r--r--meta/recipes-multimedia/alsa/alsa-utils_1.2.9.bb1
2 files changed, 40 insertions, 0 deletions
diff --git a/meta/recipes-multimedia/alsa/alsa-utils/0001-alsactl-add-define-to-compile-with-glibc-2.38.patch b/meta/recipes-multimedia/alsa/alsa-utils/0001-alsactl-add-define-to-compile-with-glibc-2.38.patch
new file mode 100644
index 0000000000..8c23fb2cec
--- /dev/null
+++ b/meta/recipes-multimedia/alsa/alsa-utils/0001-alsactl-add-define-to-compile-with-glibc-2.38.patch
@@ -0,0 +1,39 @@
1From a610f4c21b083c0f9cf62ad2251dfadc98abb50e Mon Sep 17 00:00:00 2001
2From: Rudi Heitbaum <rudi@heitbaum.com>
3Date: Sat, 22 Jul 2023 15:36:09 +0000
4Subject: [PATCH] alsactl: add define to compile with glibc 2.38
5
6strlcat and strlcpy have been added to glibc 2.38.
7update the defines to use the glibc versions, and not conflict with
8string.h.
9
10ref:
11- https://sourceware.org/git/?p=glibc.git;a=commit;h=454a20c8756c9c1d55419153255fc7692b3d2199
12
13Fixes: https://github.com/alsa-project/alsa-utils/pull/225
14Signed-off-by: Jaroslav Kysela <perex@perex.cz>
15Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
16
17Upstream-Status: Backport [https://github.com/alsa-project/alsa-utils/commit/d6a71bfbde9e1710743d3a446c6ea3b41c45234e]
18---
19 alsactl/init_sysdeps.c | 2 ++
20 1 file changed, 2 insertions(+)
21
22diff --git a/alsactl/init_sysdeps.c b/alsactl/init_sysdeps.c
23index 3aca1b4..f09b1ae 100644
24--- a/alsactl/init_sysdeps.c
25+++ b/alsactl/init_sysdeps.c
26@@ -18,6 +18,7 @@
27 */
28
29 #if defined(__GLIBC__) && !(defined(__UCLIBC__) && defined(__USE_BSD))
30+#if !(__GLIBC_PREREQ(2, 38))
31 static size_t strlcpy(char *dst, const char *src, size_t size)
32 {
33 size_t bytes = 0;
34@@ -60,4 +61,5 @@ static size_t strlcat(char *dst, const char *src, size_t size)
35 *q = '\0';
36 return bytes;
37 }
38+#endif /* !(__GLIBC_PREREQ(2, 38)) */
39 #endif /* __GLIBC__ */
diff --git a/meta/recipes-multimedia/alsa/alsa-utils_1.2.9.bb b/meta/recipes-multimedia/alsa/alsa-utils_1.2.9.bb
index 2f344015a9..af28f5468f 100644
--- a/meta/recipes-multimedia/alsa/alsa-utils_1.2.9.bb
+++ b/meta/recipes-multimedia/alsa/alsa-utils_1.2.9.bb
@@ -26,6 +26,7 @@ PACKAGECONFIG[manpages] = "--enable-xmlto, --disable-xmlto, xmlto-native docbook
26# alsa-utils specified in SRC_URI due to alsa-utils-scripts recipe 26# alsa-utils specified in SRC_URI due to alsa-utils-scripts recipe
27SRC_URI = "https://www.alsa-project.org/files/pub/utils/alsa-utils-${PV}.tar.bz2 \ 27SRC_URI = "https://www.alsa-project.org/files/pub/utils/alsa-utils-${PV}.tar.bz2 \
28 file://0001-alsactl-fix-compilation-when-building-in-a-subdir.patch \ 28 file://0001-alsactl-fix-compilation-when-building-in-a-subdir.patch \
29 file://0001-alsactl-add-define-to-compile-with-glibc-2.38.patch \
29 " 30 "
30SRC_URI[sha256sum] = "e7623d4525595f92e11ce25ee9a97f2040a14c6e4dcd027aa96e06cbce7817bd" 31SRC_URI[sha256sum] = "e7623d4525595f92e11ce25ee9a97f2040a14c6e4dcd027aa96e06cbce7817bd"
31 32