diff --git a/srcpkgs/pulseaudio/template b/srcpkgs/pulseaudio/template index 708ab4f79ab..0f12836e76a 100644 --- a/srcpkgs/pulseaudio/template +++ b/srcpkgs/pulseaudio/template @@ -45,6 +45,14 @@ case "$XBPS_TARGET_MACHINE" in arm*) configure_args+=" -Db_lto=false" esac +post_patch() { + if [ "$XBPS_TARGET_LIBC" = musl ]; then + # Configure detects presence of open64 due to musl providing aliases for them in the linker, this is not correct. + # This was fixed in musl 1.2.x, but we are currently using 1.1.x + vsed -e "s/'open64',//g" -i meson.build + fi +} + post_install() { rm ${DESTDIR}/etc/dbus-1/system.d/pulseaudio-system.conf vmkdir usr/share/examples/pulseaudio/sv/