- fix build on s390

This commit is contained in:
Dan Horák 2010-09-16 20:15:03 +02:00
parent 8119d14817
commit 47b83e8de4
2 changed files with 19 additions and 1 deletions

11
mozilla-build-s390.patch Normal file
View File

@ -0,0 +1,11 @@
diff -up mozilla/js/src/jstl.h.old mozilla/js/src/jstl.h
--- mozilla/js/src/jstl.h.old 2010-03-10 10:01:51.000000000 +0100
+++ mozilla/js/src/jstl.h 2010-03-10 12:24:55.000000000 +0100
@@ -195,7 +195,6 @@ class ReentrancyGuard
static JS_ALWAYS_INLINE size_t
RoundUpPow2(size_t x)
{
- typedef tl::StaticAssert<tl::IsSameType<size_t,JSUword>::result>::result _;
size_t log2 = JS_CEILING_LOG2W(x);
JS_ASSERT(log2 < tl::BitSize<size_t>::result);
size_t result = size_t(1) << log2;

View File

@ -25,7 +25,7 @@
Summary: Mozilla Thunderbird mail/newsgroup client
Name: thunderbird
Version: 3.1.3
Release: 1%{?dist}
Release: 2%{?dist}
URL: http://www.mozilla.org/projects/thunderbird/
License: MPLv1.1 or GPLv2+ or LGPLv2+
Group: Applications/Internet
@ -68,6 +68,7 @@ Patch4: xulrunner-1.9.2.1-build.patch
Patch6: mozilla-libjpeg-turbo.patch
Patch7: mozilla-missing-cflags.patch
Patch8: mozilla-build-s390.patch
%if %{official_branding}
# Required by Mozilla Corporation
@ -131,6 +132,9 @@ sed -e 's/__RPM_VERSION_INTERNAL__/%{version_internal}/' %{P:%%PATCH0} \
%patch4 -p1 -b .protected
%patch6 -p1 -b .turbo
%patch7 -p1 -b .mozcflags
%ifarch s390
%patch8 -p0 -b .s390
%endif
%if %{official_branding}
@ -387,6 +391,9 @@ fi
#===============================================================================
%changelog
* Thu Sep 16 2010 Dan Horák <dan[at]danny.cz> - 3.1.3-2
- fix build on s390
* Tue Sep 7 2010 Jan Horak <jhorak@redhat.com> - 3.1.3-1
- Update to 3.1.3