From 4744827bd6812418163363bb5f2bfead5f321321 Mon Sep 17 00:00:00 2001 From: q66 Date: Tue, 18 Jan 2022 20:55:36 +0100 Subject: [PATCH] firefox: disable webrtc on big endian (ftbfs) --- srcpkgs/firefox/template | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/srcpkgs/firefox/template b/srcpkgs/firefox/template index 66f7c26a8f8..e6431cddd35 100644 --- a/srcpkgs/firefox/template +++ b/srcpkgs/firefox/template @@ -85,11 +85,11 @@ do_build() { ;; esac - # webrtc currently fails to build on 32-bit ppc... - case "$XBPS_TARGET_MACHINE" in - ppc64*) ;; - ppc*) echo "ac_add_options --disable-webrtc" >>.mozconfig ;; - esac + # third_party/libwebrtc/common_audio/wav_file.cc:93:2: error: + # #error "Need to convert samples to big-endian when reading from WAV file" + if [ "$XBPS_TARGET_ENDIAN" = "be" ]; then + echo "ac_add_options --disable-webrtc" >>.mozconfig + fi if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then export LDFLAGS+=" -latomic"