From d27cc9310164c8cec062cc133c669a9233b97a42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dan=20Hor=C3=A1k?= Date: Tue, 18 Sep 2012 11:02:35 +0200 Subject: [PATCH] Added fix for rhbz#855923 - TB freezes on Fedora 18 for PPC64 --- rhbz-855923.patch | 19 +++++++++++++++++++ thunderbird.spec | 7 ++++++- 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 rhbz-855923.patch diff --git a/rhbz-855923.patch b/rhbz-855923.patch new file mode 100644 index 0000000..c6282b0 --- /dev/null +++ b/rhbz-855923.patch @@ -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 diff --git a/thunderbird.spec b/thunderbird.spec index bbc3231..203cbd2 100644 --- a/thunderbird.spec +++ b/thunderbird.spec @@ -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 - 15.0.1-3 +- Added fix for rhbz#855923 - TB freezes on Fedora 18 for PPC64 + * Fri Sep 14 2012 Martin Stransky - 15.0.1-2 - Added build flags for second arches