From 2a2161922a3c83719f1a38c55e65f8f97a409eb7 Mon Sep 17 00:00:00 2001 From: q66 Date: Thu, 7 May 2020 19:28:53 +0200 Subject: [PATCH] firefox: fix build on big endian ppc64 with vendor nss --- .../patches/vendor-nss-ppc64-vsx.patch | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 srcpkgs/firefox/patches/vendor-nss-ppc64-vsx.patch diff --git a/srcpkgs/firefox/patches/vendor-nss-ppc64-vsx.patch b/srcpkgs/firefox/patches/vendor-nss-ppc64-vsx.patch new file mode 100644 index 00000000000..af4a7b81782 --- /dev/null +++ b/srcpkgs/firefox/patches/vendor-nss-ppc64-vsx.patch @@ -0,0 +1,25 @@ +From bb8c878129e872c8a4cd3534f85486ff6c000ac2 Mon Sep 17 00:00:00 2001 +From: q66 +Date: Thu, 7 May 2020 19:18:18 +0200 +Subject: [PATCH] fix build on non-vsx ppc64 platforms + +--- + security/nss/lib/freebl/gcm.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git security/nss/lib/freebl/gcm.h security/nss/lib/freebl/gcm.h +index b2c30a7..54fb3d0 100644 +--- security/nss/lib/freebl/gcm.h ++++ security/nss/lib/freebl/gcm.h +@@ -30,7 +30,7 @@ + #include + #endif + +-#if defined(__powerpc64__) && !defined(NSS_DISABLE_ALTIVEC) ++#if defined(__powerpc64__) && defined(__VSX__) && !defined(NSS_DISABLE_ALTIVEC) + #include "altivec-types.h" + + /* The ghash freebl test tries to use this in C++, and gcc defines conflict. */ +-- +2.25.1 +