Skip to content

Commit afe1b5d

Browse files
authored
Bump to Pulseaudio 16.1/Alsa 1.2.8/Alpine 3.17 (#137)
1 parent 2b323b2 commit afe1b5d

File tree

5 files changed

+38
-134
lines changed

5 files changed

+38
-134
lines changed

Dockerfile

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ FROM ${BUILD_FROM}
33

44
SHELL ["/bin/ash", "-o", "pipefail", "-c"]
55

6-
ARG ALSA_VERSION
6+
ARG ALSA_LIB_VERSION
7+
ARG ALSA_TOOLS_VERSION
78
ARG PULSE_VERSION
89

910
COPY patches /usr/src/patches
@@ -15,6 +16,7 @@ RUN \
1516
libltdl \
1617
alsa-utils \
1718
alsa-lib \
19+
alsa-plugins-pulse \
1820
dbus-libs \
1921
tdb-libs \
2022
bluez-libs \
@@ -45,11 +47,11 @@ RUN \
4547
patch \
4648
\
4749
&& curl -L -s --retry 5 \
48-
"ftp://ftp.alsa-project.org/pub/lib/alsa-ucm-conf-${ALSA_VERSION}.tar.bz2" \
50+
"https://www.alsa-project.org/files/pub/lib/alsa-ucm-conf-${ALSA_LIB_VERSION}.tar.bz2" \
4951
| tar xvfj - -C /usr/share/alsa --strip-components=1 \
5052
\
5153
&& curl -L -s --retry 5 \
52-
"ftp://ftp.alsa-project.org/pub/lib/alsa-topology-conf-${ALSA_VERSION}.tar.bz2" \
54+
"https://www.alsa-project.org/files/pub/lib/alsa-topology-conf-${ALSA_TOOLS_VERSION}.tar.bz2" \
5355
| tar xvfj - -C /usr/share/alsa --strip-components=1 \
5456
\
5557
&& git clone -b v${PULSE_VERSION} --depth 1 \
@@ -75,7 +77,7 @@ RUN \
7577
-Dalsa=enabled \
7678
-Dasyncns=disabled \
7779
-Davahi=disabled \
78-
-Dbluez5=true \
80+
-Dbluez5=enabled \
7981
-Ddbus=enabled \
8082
-Dfftw=enabled \
8183
-Dglib=enabled \
@@ -93,6 +95,7 @@ RUN \
9395
-Dsystemd=disabled \
9496
-Dudev=enabled \
9597
-Dx11=disabled \
98+
-Ddoxygen=false \
9699
-Dudevrulesdir=/usr/lib/udev/rules.d \
97100
. output \
98101
&& ninja -C output \

build.yaml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
image: homeassistant/{arch}-hassio-audio
22
shadow_repository: ghcr.io/home-assistant
33
build_from:
4-
aarch64: ghcr.io/home-assistant/aarch64-base:3.13
5-
armhf: ghcr.io/home-assistant/armhf-base:3.13
6-
armv7: ghcr.io/home-assistant/armv7-base:3.13
7-
amd64: ghcr.io/home-assistant/amd64-base:3.13
8-
i386: ghcr.io/home-assistant/i386-base:3.13
4+
aarch64: ghcr.io/home-assistant/aarch64-base:3.17
5+
armhf: ghcr.io/home-assistant/armhf-base:3.17
6+
armv7: ghcr.io/home-assistant/armv7-base:3.17
7+
amd64: ghcr.io/home-assistant/amd64-base:3.17
8+
i386: ghcr.io/home-assistant/i386-base:3.17
99
codenotary:
1010
signer: notary@home-assistant.io
1111
base_image: notary@home-assistant.io
1212
args:
13-
ALSA_VERSION: 1.2.5.1
14-
PULSE_VERSION: 14.2
13+
ALSA_LIB_VERSION: 1.2.8
14+
ALSA_TOOLS_VERSION: 1.2.5
15+
PULSE_VERSION: 16.1
1516
labels:
1617
io.hass.type: audio
1718
org.opencontainers.image.title: Home Assistant Audio Plugin

patches/check_uid.patch

Lines changed: 0 additions & 13 deletions
This file was deleted.

patches/link-libintl.patch

Lines changed: 7 additions & 110 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
diff --git a/meson.build b/meson.build
2-
index a10a1b3c8..c4cf8c6a9 100644
2+
index 658eeee..349752e 100644
33
--- a/meson.build
44
+++ b/meson.build
5-
@@ -296,6 +296,12 @@ if cc.has_function('SYS_memfd_create', prefix : '#include <sys/syscall.h>')
6-
cdata.set('HAVE_MEMFD', 1)
5+
@@ -307,6 +307,12 @@ else
6+
libintl_dep = cc.find_library('intl')
77
endif
88

99
+if cc.has_function('libintl_dgettext')
@@ -15,119 +15,16 @@ index a10a1b3c8..c4cf8c6a9 100644
1515
# Symbols
1616

1717
if cc.has_header_symbol('signal.h', 'SIGXCPU')
18-
diff --git a/src/daemon/meson.build b/src/daemon/meson.build
19-
index 9bc3bf18e..9c9f807e7 100644
20-
--- a/src/daemon/meson.build
21-
+++ b/src/daemon/meson.build
22-
@@ -31,7 +31,7 @@ executable('pulseaudio',
23-
include_directories : [configinc, topinc],
24-
link_args : ['-ffast-math'],
25-
link_with : [libpulsecore, libpulsecommon, libpulse],
26-
- dependencies : [ltdl_dep, cap_dep, dbus_dep, libsystemd_dep, dl_dep],
27-
+ dependencies : [ltdl_dep, cap_dep, dbus_dep, libsystemd_dep, dl_dep, libintl_dep],
28-
c_args : pa_c_args,
29-
)
30-
31-
diff --git a/src/meson.build b/src/meson.build
32-
index c9b71a484..832c0de0d 100644
33-
--- a/src/meson.build
34-
+++ b/src/meson.build
35-
@@ -183,7 +183,7 @@ libpulsecommon = shared_library('pulsecommon-' + pa_version_major_minor,
36-
install_dir : privlibdir,
37-
dependencies : [
38-
libm_dep, thread_dep, dl_dep, shm_dep, iconv_dep, sndfile_dep, dbus_dep,
39-
- x11_dep, libsystemd_dep, glib_dep, gtk_dep, asyncns_dep
40-
+ x11_dep, libsystemd_dep, glib_dep, gtk_dep, asyncns_dep, libintl_dep,
41-
],
42-
implicit_include_directories : false)
43-
4418
diff --git a/src/pulse/meson.build b/src/pulse/meson.build
45-
index 00c686772..2a6f78489 100644
19+
index aaebff5..3f68ac3 100644
4620
--- a/src/pulse/meson.build
4721
+++ b/src/pulse/meson.build
48-
@@ -81,10 +81,10 @@ libpulse = shared_library('pulse',
49-
link_args : [nodelete_link_args, versioning_link_args],
50-
install : true,
51-
install_rpath : privlibdir,
52-
- dependencies : [libm_dep, thread_dep, libpulsecommon_dep, dbus_dep, dl_dep, iconv_dep],
53-
+ dependencies : [libm_dep, thread_dep, libpulsecommon_dep, dbus_dep, dl_dep, iconv_dep, libintl_dep],
22+
@@ -84,7 +84,7 @@ libpulse = shared_library('pulse',
23+
dependencies : [libm_dep, thread_dep, libpulsecommon_dep, dbus_dep, dl_dep, iconv_dep, libintl_dep],
5424
implicit_include_directories : false)
5525

5626
-libpulse_dep = declare_dependency(link_with: libpulse)
5727
+libpulse_dep = declare_dependency(link_with: libpulse, dependencies: libintl_dep)
5828

59-
install_data(
29+
install_headers(
6030
libpulse_headers, 'simple.h',
61-
diff --git a/src/pulsecore/meson.build b/src/pulsecore/meson.build
62-
index 19f6b9e99..0bd596cbd 100644
63-
--- a/src/pulsecore/meson.build
64-
+++ b/src/pulsecore/meson.build
65-
@@ -198,7 +198,7 @@ libpulsecore = shared_library('pulsecore-' + pa_version_major_minor,
66-
install_rpath : privlibdir,
67-
install_dir : privlibdir,
68-
link_with : libpulsecore_simd_lib,
69-
- dependencies : [libm_dep, libpulsecommon_dep, libpulse_dep, ltdl_dep, shm_dep, sndfile_dep, database_dep, dbus_dep, libatomic_ops_dep, orc_dep, samplerate_dep, soxr_dep, speex_dep, x11_dep],
70-
+ dependencies : [libm_dep, libpulsecommon_dep, libpulse_dep, ltdl_dep, shm_dep, sndfile_dep, database_dep, dbus_dep, libatomic_ops_dep, orc_dep, samplerate_dep, soxr_dep, speex_dep, x11_dep, libintl_dep],
71-
implicit_include_directories : false)
72-
73-
libpulsecore_dep = declare_dependency(link_with: libpulsecore)
74-
diff --git a/src/tests/meson.build b/src/tests/meson.build
75-
index 621c2c965..a03d73cdb 100644
76-
--- a/src/tests/meson.build
77-
+++ b/src/tests/meson.build
78-
@@ -53,7 +53,7 @@ default_tests = [
79-
[ 'queue-test', 'queue-test.c',
80-
[ check_dep, libpulse_dep, libpulsecommon_dep, libpulsecore_dep ] ],
81-
[ 'resampler-test', 'resampler-test.c',
82-
- [ libpulse_dep, libpulsecommon_dep, libpulsecore_dep ] ],
83-
+ [ libpulse_dep, libpulsecommon_dep, libpulsecore_dep, libintl_dep ] ],
84-
[ 'rtpoll-test', 'rtpoll-test.c',
85-
[ check_dep, libpulse_dep, libpulsecommon_dep, libpulsecore_dep ] ],
86-
[ 'smoother-test', 'smoother-test.c',
87-
diff --git a/src/utils/meson.build b/src/utils/meson.build
88-
index d00e030ae..dedf4e404 100644
89-
--- a/src/utils/meson.build
90-
+++ b/src/utils/meson.build
91-
@@ -15,7 +15,7 @@ executable('pacat',
92-
install_rpath : privlibdir,
93-
include_directories : [configinc, topinc],
94-
link_with : [libpulsecommon, libpulse],
95-
- dependencies : [sndfile_dep],
96-
+ dependencies : [sndfile_dep, libintl_dep],
97-
c_args : pa_c_args,
98-
)
99-
100-
@@ -36,7 +36,7 @@ executable('pactl',
101-
install_rpath : privlibdir,
102-
include_directories : [configinc, topinc],
103-
link_with : [libpulsecommon, libpulse],
104-
- dependencies : [sndfile_dep],
105-
+ dependencies : [sndfile_dep, libintl_dep],
106-
c_args : pa_c_args,
107-
)
108-
109-
@@ -50,6 +50,7 @@ executable('pasuspender',
110-
install_rpath : privlibdir,
111-
include_directories : [configinc, topinc],
112-
link_with : [libpulsecommon, libpulse],
113-
+ dependencies: [libintl_dep],
114-
c_args : pa_c_args,
115-
)
116-
117-
@@ -63,6 +64,7 @@ executable('pacmd',
118-
install_rpath : privlibdir,
119-
include_directories : [configinc, topinc],
120-
link_with : [libpulsecommon, libpulse],
121-
+ dependencies: [libintl_dep],
122-
c_args : pa_c_args,
123-
)
124-
125-
@@ -77,7 +79,7 @@ if x11_dep.found()
126-
install_rpath : privlibdir,
127-
include_directories : [configinc, topinc],
128-
link_with : [libpulsecommon, libpulse],
129-
- dependencies : [x11_dep],
130-
+ dependencies : [x11_dep, libintl_dep],
131-
c_args : pa_c_args,
132-
)
133-
endif

patches/remove-once-test.patch

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
--- a/src/tests/meson.build
2+
+++ b/src/tests/meson.build
3+
@@ -111,13 +111,6 @@
4+
]
5+
endif
6+
7+
- if host_machine.system() != 'darwin'
8+
- default_tests += [
9+
- [ 'once-test', 'once-test.c',
10+
- [ check_dep, thread_dep, libpulse_dep, libpulsecommon_dep, libpulsecore_dep, libatomic_ops_dep ] ],
11+
- ]
12+
- endif
13+
-
14+
if alsa_dep.found()
15+
default_tests += [
16+
[ 'alsa-mixer-path-test', 'alsa-mixer-path-test.c',

0 commit comments

Comments
 (0)