From b87ec8f3ca216b6d9cfb4836f236fca13f45c2ab Mon Sep 17 00:00:00 2001 From: oreo639 Date: Fri, 7 Mar 2025 05:14:38 -0800 Subject: [PATCH] pulseaudio: fix build with gcc14 --- srcpkgs/pulseaudio/template | 8 ++++++++ 1 file changed, 8 insertions(+) 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/