Added fix for rhbz#855923 - TB freezes on Fedora 18 for PPC64

This commit is contained in:
Dan Horák 2012-09-18 11:02:35 +02:00
parent 80709051d5
commit d27cc93101
2 changed files with 25 additions and 1 deletions

19
rhbz-855923.patch Normal file
View File

@ -0,0 +1,19 @@
Index: comm-release/mozilla/js/src/gc/Memory.cpp
===================================================================
--- comm-release.orig/mozilla/js/src/gc/Memory.cpp
+++ comm-release/mozilla/js/src/gc/Memory.cpp
@@ -348,9 +348,14 @@ UnmapPages(void *p, size_t size)
bool
MarkPagesUnused(void *p, size_t size)
{
+// A workaround for Bug 746112 - endless loop on ppc64
+#if !(defined(__powerpc__))
JS_ASSERT(uintptr_t(p) % PageSize == 0);
int result = madvise(p, size, MADV_DONTNEED);
return result != -1;
+#else
+ return true;
+#endif
}
bool

View File

@ -40,7 +40,7 @@
Summary: Mozilla Thunderbird mail/newsgroup client
Name: thunderbird
Version: 15.0.1
Release: 2%{?dist}
Release: 3%{?dist}
URL: http://www.mozilla.org/projects/thunderbird/
License: MPLv1.1 or GPLv2+ or LGPLv2+
Group: Applications/Internet
@ -68,6 +68,7 @@ Patch200: thunderbird-8.0-enable-addons.patch
# PPC fixes
Patch300: xulrunner-852698.patch
Patch301: rhbz-855923.patch
%if %{official_branding}
# Required by Mozilla Corporation
@ -156,6 +157,7 @@ cd ..
%patch200 -p1 -b .addons
%patch300 -p1 -b .852698
%patch301 -p1 -b .855923
%if %{official_branding}
# Required by Mozilla Corporation
@ -401,6 +403,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
#===============================================================================
%changelog
* Tue Sep 18 2012 Dan Horák <dan[at]danny.cz> - 15.0.1-3
- Added fix for rhbz#855923 - TB freezes on Fedora 18 for PPC64
* Fri Sep 14 2012 Martin Stransky <stransky@redhat.com> - 15.0.1-2
- Added build flags for second arches