]> git.99rst.org Git - openwrt-packages.git/commit
pulseaudio: detect intl and iconv through meson dependency objects
authorMirko Vogt <redacted>
Sat, 12 Sep 2026 12:15:15 +0000 (12:15 +0000)
committerMirko Vogt <redacted>
Mon, 14 Sep 2026 15:46:54 +0000 (17:46 +0200)
commit74fbbb485adc2af69f378b736974972f82e351fa
tree03dc22090bf89b38ea48b288bb02bea1d3ec1b51
parent7d479353dd78a5ba9e38aea4b7acf1171038d28d
pulseaudio: detect intl and iconv through meson dependency objects

The build probes for dgettext and iconv_open with bare symbol checks,
which succeed against libc even when a standalone GNU libintl or
libiconv is on the include path. Their headers redirect the calls to
libintl_* and libiconv_* symbols, so the objects then need -lintl,
which the Makefile supplied through TARGET_LDFLAGS for every link,
and the standalone libiconv was bypassed through LIBICONV_PLUG.

Add the two patches from upstream merge request 877, which switch the
probes to meson's intl and iconv dependency objects. These compile a
test including the header, so they fall back to linking the library
exactly when the header requires it. With BUILD_NLS this links
libintl-full and libiconv-full where they are used; without it, the
libc implementations are used as before. The second patch makes the
libm link conditional in the same way. Drop the -lintl workaround.

Patches taken from merge request currently under review upstream:
https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/877

Signed-off-by: Mirko Vogt <redacted>
sound/pulseaudio/Makefile
sound/pulseaudio/patches/100-meson-use-intl-and-iconv-dependencies.patch [new file with mode: 0644]
sound/pulseaudio/patches/101-meson-conditionally-use-libm.patch [new file with mode: 0644]
git clone https://git.99rst.org/PROJECT