git: d77c919d01aa - main - lang/spidermonkey91: fix build on powerpc

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Wed, 27 Apr 2022 13:39:59 UTC
The branch main has been updated by pkubaj:

URL: https://cgit.FreeBSD.org/ports/commit/?id=d77c919d01aaa4ea44048518d76189009306283d

commit d77c919d01aaa4ea44048518d76189009306283d
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2022-04-27 13:18:49 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2022-04-27 13:18:49 +0000

    lang/spidermonkey91: fix build on powerpc
    
    Remove RUST_BACKTRACE to fix libunwind crash.
---
 lang/spidermonkey91/Makefile                                   |  2 ++
 lang/spidermonkey91/files/extra-patch-config_makefiles_rust.mk | 10 ++++++++++
 2 files changed, 12 insertions(+)

diff --git a/lang/spidermonkey91/Makefile b/lang/spidermonkey91/Makefile
index 4908ce4022b5..0170bf0a41cc 100644
--- a/lang/spidermonkey91/Makefile
+++ b/lang/spidermonkey91/Makefile
@@ -55,6 +55,8 @@ PLIST_SUB=	SP_VER=${SP_VER}
 
 .if ${ARCH} == amd64
 CONFIGURE_TARGET=	x86_64-portbld-freebsd${OSREL}
+.elif ${ARCH} == powerpc
+EXTRA_PATCHES=	${FILESDIR}/extra-patch-config_makefiles_rust.mk
 .endif
 
 # Require newer Clang than what's in base system unless user opted out
diff --git a/lang/spidermonkey91/files/extra-patch-config_makefiles_rust.mk b/lang/spidermonkey91/files/extra-patch-config_makefiles_rust.mk
new file mode 100644
index 000000000000..4a11a0bd1008
--- /dev/null
+++ b/lang/spidermonkey91/files/extra-patch-config_makefiles_rust.mk
@@ -0,0 +1,10 @@
+--- config/makefiles/rust.mk.orig	2022-04-02 10:37:19 UTC
++++ config/makefiles/rust.mk
+@@ -221,7 +221,6 @@
+ ifneq (,$(PKG_CONFIG_LIBDIR))
+ export PKG_CONFIG_LIBDIR
+ endif
+-export RUST_BACKTRACE=full
+ export MOZ_TOPOBJDIR=$(topobjdir)
+ export MOZ_FOLD_LIBS
+ export PYTHON3