Skip to content

Commit

Permalink
Xulrunner / Firefox : rebuild for EL-6.5
Browse files Browse the repository at this point in the history
  • Loading branch information
remicollet committed Dec 24, 2013
1 parent 8c53e2a commit 729508a
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 9 deletions.
16 changes: 13 additions & 3 deletions firefox/firefox.spec
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Use system nss/nspr?
%if 0%{?fedora} < 21
%if 0%{?fedora} < 18 && 0%{?rhel} < 6
%define system_nss 0
%else
%define system_nss 1
Expand Down Expand Up @@ -31,7 +31,7 @@

%global xulrunner_version 26.0
%global xulrunner_version_max 26.1
%global xulrunner_release 1
%global xulrunner_release 2
%global alpha_version 0
%global beta_version 0
%global rc_version 0
Expand Down Expand Up @@ -72,7 +72,7 @@
Summary: Mozilla Firefox Web browser
Name: firefox
Version: 26.0
Release: 1%{?pre_tag}%{?dist}
Release: 2%{?pre_tag}%{?dist}
URL: http://www.mozilla.org/projects/firefox/
License: MPLv1.1 or GPLv2+ or LGPLv2+
Group: Applications/Internet
Expand All @@ -96,6 +96,7 @@ Patch15: firefox-15.0-enable-addons.patch
Patch16: firefox-duckduckgo.patch

# Upstream patches
Patch20: mozilla-938730.patch

%if %{official_branding}
# Required by Mozilla Corporation
Expand Down Expand Up @@ -151,6 +152,7 @@ cd %{tarballdir}
%patch16 -p1 -b .duckduckgo

# Upstream patches
%patch20 -p1 -b .938730

%if %{official_branding}
# Required by Mozilla Corporation
Expand Down Expand Up @@ -518,6 +520,14 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
#---------------------------------------------------------------------

%changelog
* Tue Dec 24 2013 Remi Collet <RPMS@FamilleCollet.com> - 26.0-2
- sync patch with rawhide
- rebuild against RHEL-6.5

* Tue Dec 17 2013 Martin Stransky <stransky@redhat.com> - 26.0-4
- Added fix for rhbz#1007603 - NSS and cert9 (sql): firefox crash
on exit with https-everywhere installed (edit)

* Tue Dec 10 2013 Remi Collet <RPMS@FamilleCollet.com> - 26.0-1
- sync with rawhide, update to 26.0 Build 2

Expand Down
27 changes: 27 additions & 0 deletions firefox/mozilla-938730.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
diff -up mozilla-release/storage/src/Makefile.in.938730 mozilla-release/storage/src/Makefile.in
--- mozilla-release/storage/src/Makefile.in.938730 2013-12-09 15:15:44.708527295 +0100
+++ mozilla-release/storage/src/Makefile.in 2013-12-09 15:17:16.119682503 +0100
@@ -6,14 +6,23 @@
# Don't use the jemalloc allocator on Android, because we can't guarantee
# that Gecko will configure sqlite before it is first used (bug 730495).
#
+# Don't use the jemalloc allocator when using system NSS. Linked in libraries
+# (such as NSS) might trigger an initialization of sqlite and allocation
+# of memory using the default allocator, prior to the storage service
+# registering its allocator, causing memory management failures (bug 938730).
+#
# Note: On Windows our sqlite build assumes we use jemalloc. If you disable
# MOZ_STORAGE_MEMORY on Windows, you will also need to change the "ifdef
# MOZ_MEMORY" options in db/sqlite3/src/Makefile.in.
+
+ifndef _USE_SYSTEM_NSS
ifdef MOZ_MEMORY
ifneq ($(OS_TARGET), Android)
DEFINES += -DMOZ_STORAGE_MEMORY
endif
endif
+endif
+

# For nsDependentJSString
LOCAL_INCLUDES = \
22 changes: 18 additions & 4 deletions xulrunner/mozilla-build-arm.patch
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
--- mozilla-release/gfx/layers/BufferUnrotate.cpp.old 2013-12-05 17:07:31.000000000 +0100
+++ mozilla-release/gfx/layers/BufferUnrotate.cpp 2013-12-10 14:43:25.948164298 +0100
diff -up mozilla-release/gfx/layers/BufferUnrotate.cpp.arm mozilla-release/gfx/layers/BufferUnrotate.cpp
--- mozilla-release/gfx/layers/BufferUnrotate.cpp.arm 2013-12-05 17:07:31.000000000 +0100
+++ mozilla-release/gfx/layers/BufferUnrotate.cpp 2013-12-10 14:47:43.234182482 +0100
@@ -8,6 +8,7 @@
#include <stdint.h>
#include <stdio.h>
Expand All @@ -8,8 +9,9 @@

void BufferUnrotate(uint8_t* aBuffer, int aByteWidth, int aHeight,
int aByteStride, int aXBoundary, int aYBoundary)
--- mozilla-release/gfx/ycbcr/moz.build.arm 2013-10-23 15:52:17.056493264 +0200
+++ mozilla-release/gfx/ycbcr/moz.build 2013-10-23 16:03:04.496045050 +0200
diff -up mozilla-release/gfx/ycbcr/moz.build.arm mozilla-release/gfx/ycbcr/moz.build
--- mozilla-release/gfx/ycbcr/moz.build.arm 2013-12-05 17:07:32.000000000 +0100
+++ mozilla-release/gfx/ycbcr/moz.build 2013-12-10 14:47:43.235182479 +0100
@@ -61,7 +61,7 @@ else:
'yuv_row_other.cpp',
]
Expand All @@ -19,3 +21,15 @@
ASFILES += [
'yuv_row_arm.s',
]
diff -up mozilla-release/media/libtheora/lib/moz.build.arm mozilla-release/media/libtheora/lib/moz.build
--- mozilla-release/media/libtheora/lib/moz.build.arm 2013-12-05 17:07:48.000000000 +0100
+++ mozilla-release/media/libtheora/lib/moz.build 2013-12-12 11:45:41.882119059 +0100
@@ -8,7 +8,7 @@ MODULE = 'theora'

LIBRARY_NAME = 'theora'

-if CONFIG['OS_TEST'] == 'arm' and CONFIG['GNU_AS']:
+if CONFIG['HAVE_ARM_NEON'] and CONFIG['GNU_AS']:
asm_suffix = CONFIG['ASM_SUFFIX']
ASFILES += [
'armbits-gnu.%s' % asm_suffix,
8 changes: 6 additions & 2 deletions xulrunner/xulrunner.spec
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Use system nspr/nss?
%if 0%{?fedora} < 21
%if 0%{?fedora} < 18 && 0%{?rhel} < 6
%define system_nss 0
%else
%define system_nss 1
Expand Down Expand Up @@ -91,7 +91,7 @@
Summary: XUL Runtime for Gecko Applications
Name: %{shortname}-last
Version: 26.0
Release: 1%{?pre_tag}%{?dist}
Release: 2%{?pre_tag}%{?dist}
URL: http://developer.mozilla.org/En/XULRunner
License: MPLv1.1 or GPLv2+ or LGPLv2+
Group: Applications/Internet
Expand Down Expand Up @@ -607,6 +607,10 @@ fi
#---------------------------------------------------------------------

%changelog
* Tue Dec 24 2013 Remi Collet <RPMS@FamilleCollet.com> - 26.0-2
- sync patch with rawhide
- rebuild against RHEL-6.5

* Tue Dec 10 2013 Remi Collet <RPMS@FamilleCollet.com> - 26.0-1
- sync with rawhide, update to 26.0 Build 2

Expand Down

0 comments on commit 729508a

Please sign in to comment.