From 92c67bf51d1a3fc04ab60fe0ecaef8e91eff6854 Mon Sep 17 00:00:00 2001 From: q66 Date: Tue, 13 Aug 2019 17:22:52 +0200 Subject: [PATCH] firefox-esr: use nodebug based on wordsize, also broken on ppc32 --- srcpkgs/firefox-esr/template | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/srcpkgs/firefox-esr/template b/srcpkgs/firefox-esr/template index 503350ec32..05a0a52134 100644 --- a/srcpkgs/firefox-esr/template +++ b/srcpkgs/firefox-esr/template @@ -30,17 +30,18 @@ conflicts="firefox>=0" build_options="alsa dbus gtk3 pulseaudio startup_notification xscreensaver sndio" build_options_default="alsa dbus gtk3 pulseaudio startup_notification xscreensaver sndio" +if [ "$XBPS_WORDSIZE" -eq 32 ]; then + nodebug=yes +fi + case $XBPS_TARGET_MACHINE in armv6*) broken="required NEON extensions are not supported on armv6" ;; - i686*) - # /usr/bin/ld: failed to set dynamic section sizes: memory exhausted - nodebug=yes - ;; + ppc64*) ;; + ppc*) broken="ftbfs in several places" ;; esac - post_extract() { case "$XBPS_TARGET_MACHINE" in *-musl) @@ -111,12 +112,10 @@ do_build() { ;; esac - case "$XBPS_MACHINE" in - i686*) + if [ "$XBPS_WORDSIZE" -eq 32 ]; then # ENOMEM echo "ac_add_options --disable-debug-symbols" >>.mozconfig - ;; - esac + fi export LDFLAGS+=" -Wl,-rpath=/usr/lib/firefox"