Added fix for PPC

This commit is contained in:
Jan Horak 2012-09-07 15:14:54 +02:00
parent 21430f6e1d
commit e26da1cc33
2 changed files with 22 additions and 1 deletions

View File

@ -40,7 +40,7 @@
Summary: Mozilla Thunderbird mail/newsgroup client
Name: thunderbird
Version: 15.0
Release: 1%{?dist}
Release: 2%{?dist}
URL: http://www.mozilla.org/projects/thunderbird/
License: MPLv1.1 or GPLv2+ or LGPLv2+
Group: Applications/Internet
@ -66,6 +66,9 @@ Patch104: xulrunner-10.0-gcc47.patch
# Linux specific
Patch200: thunderbird-8.0-enable-addons.patch
# PPC fixes
Patch300: xulrunner-852698.patch
%if %{official_branding}
# Required by Mozilla Corporation
@ -152,6 +155,7 @@ cd mozilla
cd ..
%patch200 -p1 -b .addons
%patch300 -p1 -b .852698
%if %{official_branding}
# Required by Mozilla Corporation
@ -389,6 +393,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
#===============================================================================
%changelog
* Fri Sep 7 2012 Jan Horak <jhorak@redhat.com> - 15.0-2
- Added workaround fix for PPC (rbhz#852698)
* Mon Aug 27 2012 Jan Horak <jhorak@redhat.com> - 15.0-1
- Update to 15.0

14
xulrunner-852698.patch Normal file
View File

@ -0,0 +1,14 @@
Index: comm-release/mozilla/memory/jemalloc/jemalloc.c
===================================================================
--- comm-release.orig/mozilla/memory/jemalloc/jemalloc.c
+++ comm-release/mozilla/memory/jemalloc/jemalloc.c
@@ -1091,7 +1091,9 @@ static unsigned ncpus;
* controlling the malloc behavior are defined as compile-time constants
* for best performance and cannot be altered at runtime.
*/
+#if !(defined(__powerpc__))
#define MALLOC_STATIC_SIZES 1
+#endif
#ifdef MALLOC_STATIC_SIZES