diff options
author | Khem Raj <raj.khem@gmail.com> | 2024-08-24 17:11:22 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2024-08-25 09:02:15 -0700 |
commit | f7fe2415e1317c5bcb791c6c1ca9c36e476b0af8 (patch) | |
tree | 6c9ca5b34296dadf5a74ed975ac4ef85e73cefa8 | |
parent | fa2398e99968bc56b82e15e5f04dc6425174c8de (diff) | |
download | meta-openembedded-f7fe2415e1317c5bcb791c6c1ca9c36e476b0af8.tar.gz |
bluealsa: Fix build on musl
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r-- | meta-multimedia/recipes-multimedia/bluealsa/bluealsa/0001-Use-basename-implementation-from-glib-2.0.patch | 88 | ||||
-rw-r--r-- | meta-multimedia/recipes-multimedia/bluealsa/bluealsa_4.3.0.bb | 3 |
2 files changed, 90 insertions, 1 deletions
diff --git a/meta-multimedia/recipes-multimedia/bluealsa/bluealsa/0001-Use-basename-implementation-from-glib-2.0.patch b/meta-multimedia/recipes-multimedia/bluealsa/bluealsa/0001-Use-basename-implementation-from-glib-2.0.patch new file mode 100644 index 0000000000..fbd145e6b5 --- /dev/null +++ b/meta-multimedia/recipes-multimedia/bluealsa/bluealsa/0001-Use-basename-implementation-from-glib-2.0.patch | |||
@@ -0,0 +1,88 @@ | |||
1 | From 070ed35ac5cef8138ed4760582bb72e8d3e136e2 Mon Sep 17 00:00:00 2001 | ||
2 | From: Arkadiusz Bokowy <arkadiusz.bokowy@gmail.com> | ||
3 | Date: Sun, 25 Aug 2024 08:42:39 +0200 | ||
4 | Subject: [PATCH] Fix compilation on strict POSIX platforms | ||
5 | |||
6 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
7 | Upstream-Status: Submitted [https://github.com/arkq/bluez-alsa/commit/070ed35ac5cef8138ed4760582bb72e8d3e136e2] | ||
8 | --- | ||
9 | src/main.c | 2 +- | ||
10 | test/mock/mock.c | 2 +- | ||
11 | utils/aplay/aplay.c | 1 + | ||
12 | utils/cli/cli.c | 1 + | ||
13 | utils/rfcomm/rfcomm.c | 1 + | ||
14 | 5 files changed, 5 insertions(+), 2 deletions(-) | ||
15 | |||
16 | diff --git a/src/main.c b/src/main.c | ||
17 | index 96a66aee..eeb80165 100644 | ||
18 | --- a/src/main.c | ||
19 | +++ b/src/main.c | ||
20 | @@ -13,13 +13,13 @@ | ||
21 | #endif | ||
22 | |||
23 | #include <getopt.h> | ||
24 | +#include <libgen.h> | ||
25 | #include <sched.h> | ||
26 | #include <signal.h> | ||
27 | #include <stdbool.h> | ||
28 | #include <stdint.h> | ||
29 | #include <stdio.h> | ||
30 | #include <stdlib.h> | ||
31 | -#include <string.h> | ||
32 | #include <strings.h> | ||
33 | #include <syslog.h> | ||
34 | #include <time.h> | ||
35 | diff --git a/test/mock/mock.c b/test/mock/mock.c | ||
36 | index 947211a3..0a2f6091 100644 | ||
37 | --- a/test/mock/mock.c | ||
38 | +++ b/test/mock/mock.c | ||
39 | @@ -20,12 +20,12 @@ | ||
40 | #include <assert.h> | ||
41 | #include <errno.h> | ||
42 | #include <getopt.h> | ||
43 | +#include <libgen.h> | ||
44 | #include <signal.h> | ||
45 | #include <stdbool.h> | ||
46 | #include <stdint.h> | ||
47 | #include <stdio.h> | ||
48 | #include <stdlib.h> | ||
49 | -#include <string.h> | ||
50 | #include <strings.h> | ||
51 | #include <sys/stat.h> | ||
52 | #include <unistd.h> | ||
53 | diff --git a/utils/aplay/aplay.c b/utils/aplay/aplay.c | ||
54 | index 3de77902..36843e95 100644 | ||
55 | --- a/utils/aplay/aplay.c | ||
56 | +++ b/utils/aplay/aplay.c | ||
57 | @@ -15,6 +15,7 @@ | ||
58 | #include <assert.h> | ||
59 | #include <errno.h> | ||
60 | #include <getopt.h> | ||
61 | +#include <libgen.h> | ||
62 | #include <math.h> | ||
63 | #include <poll.h> | ||
64 | #include <pthread.h> | ||
65 | diff --git a/utils/cli/cli.c b/utils/cli/cli.c | ||
66 | index aeeabe58..0338b9e2 100644 | ||
67 | --- a/utils/cli/cli.c | ||
68 | +++ b/utils/cli/cli.c | ||
69 | @@ -13,6 +13,7 @@ | ||
70 | #endif | ||
71 | |||
72 | #include <getopt.h> | ||
73 | +#include <libgen.h> | ||
74 | #include <stdarg.h> | ||
75 | #include <stdbool.h> | ||
76 | #include <stdint.h> | ||
77 | diff --git a/utils/rfcomm/rfcomm.c b/utils/rfcomm/rfcomm.c | ||
78 | index d01f0810..3dacfd67 100644 | ||
79 | --- a/utils/rfcomm/rfcomm.c | ||
80 | +++ b/utils/rfcomm/rfcomm.c | ||
81 | @@ -15,6 +15,7 @@ | ||
82 | #include <ctype.h> | ||
83 | #include <errno.h> | ||
84 | #include <getopt.h> | ||
85 | +#include <libgen.h> | ||
86 | #include <poll.h> | ||
87 | #include <stdbool.h> | ||
88 | #include <stdint.h> | ||
diff --git a/meta-multimedia/recipes-multimedia/bluealsa/bluealsa_4.3.0.bb b/meta-multimedia/recipes-multimedia/bluealsa/bluealsa_4.3.0.bb index 419d6e8d22..f089e036e3 100644 --- a/meta-multimedia/recipes-multimedia/bluealsa/bluealsa_4.3.0.bb +++ b/meta-multimedia/recipes-multimedia/bluealsa/bluealsa_4.3.0.bb | |||
@@ -16,7 +16,8 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=143bc4e73f39cc5e89d6e096ac0315ba" | |||
16 | 16 | ||
17 | DEPENDS += "alsa-lib bluez5 dbus glib-2.0-native python3-packaging-native sbc" | 17 | DEPENDS += "alsa-lib bluez5 dbus glib-2.0-native python3-packaging-native sbc" |
18 | 18 | ||
19 | SRC_URI = "git://github.com/Arkq/bluez-alsa.git;protocol=https;branch=master" | 19 | SRC_URI = "git://github.com/Arkq/bluez-alsa.git;protocol=https;branch=master \ |
20 | file://0001-Use-basename-implementation-from-glib-2.0.patch" | ||
20 | 21 | ||
21 | SRCREV = "959573c2cccef5cf074f5b2fa7941abbd699c5f4" | 22 | SRCREV = "959573c2cccef5cf074f5b2fa7941abbd699c5f4" |
22 | 23 | ||