From eef296498f51ae6a26b408c6b670ebed3a3da8cb Mon Sep 17 00:00:00 2001 From: q66 Date: Sat, 19 Jan 2019 20:54:18 +0100 Subject: [PATCH] firefox: add a jemalloc patch for ppc/ppc64 [ci skip] --- .../firefox/patches/ppc-no-static-sizes.patch | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 srcpkgs/firefox/patches/ppc-no-static-sizes.patch diff --git a/srcpkgs/firefox/patches/ppc-no-static-sizes.patch b/srcpkgs/firefox/patches/ppc-no-static-sizes.patch new file mode 100644 index 00000000000..3f77023bb5f --- /dev/null +++ b/srcpkgs/firefox/patches/ppc-no-static-sizes.patch @@ -0,0 +1,19 @@ +# HG changeset patch +# Parent b735e618c2a860972197942f6680c941e3c9a67f +# User Gustavo Luiz Duarte +Bug 997353 - Do not use compile-time page size for PowerPC. + +The PowerPC architecture allows various memory page sizes, making it impossible +to predict the runtime page size. + +--- memory/build/mozjemalloc.cpp ++++ memory/build/mozjemalloc.cpp +@@ -369,7 +369,7 @@ + // Debug builds are opted out too, for test coverage. + #ifndef MOZ_DEBUG + #if !defined(__ia64__) && !defined(__sparc__) && !defined(__mips__) && \ +- !defined(__aarch64__) ++ !defined(__aarch64__) && !defined(__powerpc__) && !defined(__powerpc64__) + #define MALLOC_STATIC_PAGESIZE 1 + #endif + #endif