summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Stransky <stransky@redhat.com>2017-01-24 11:35:57 +0100
committerMartin Stransky <stransky@redhat.com>2017-01-24 11:35:57 +0100
commit402aa35821464cf89dbbff9b3530a84bd54d1af6 (patch)
treedba1477cab0d5ccaf031469febcebec5ffbf4d7f
parentDon't build with system sqlite on F24 (diff)
downloadlibrewolf-fedora-ff-402aa35821464cf89dbbff9b3530a84bd54d1af6.tar.gz
librewolf-fedora-ff-402aa35821464cf89dbbff9b3530a84bd54d1af6.tar.bz2
librewolf-fedora-ff-402aa35821464cf89dbbff9b3530a84bd54d1af6.zip
Added fix for aarch64 crashes (rhbz#1354671)
-rw-r--r--firefox.spec12
-rw-r--r--rhbz-1354671.patch16
2 files changed, 27 insertions, 1 deletions
diff --git a/firefox.spec b/firefox.spec
index bcfa7f3..eb1b219 100644
--- a/firefox.spec
+++ b/firefox.spec
@@ -97,7 +97,7 @@ ExcludeArch: armv7hl
Summary: Mozilla Firefox Web browser
Name: firefox
Version: 51.0
-Release: 2%{?pre_tag}%{?dist}
+Release: 3%{?pre_tag}%{?dist}
URL: https://www.mozilla.org/firefox/
License: MPLv1.1 or GPLv2+ or LGPLv2+
Group: Applications/Internet
@@ -133,6 +133,8 @@ Patch219: rhbz-1173156.patch
Patch221: firefox-fedora-ua.patch
Patch224: mozilla-1170092.patch
Patch225: mozilla-1005640-accept-lang.patch
+#ARM run-time patch
+Patch226: rhbz-1354671.patch
# Upstream patches
Patch304: mozilla-1253216.patch
@@ -279,6 +281,11 @@ cd %{tarballdir}
%patch221 -p2 -b .fedora-ua
%patch224 -p1 -b .1170092
%patch225 -p1 -b .1005640-accept-lang
+#ARM run-time patch
+%ifarch aarch64
+%patch226 -p1 -b .1354671
+%endif
+
%patch304 -p1 -b .1253216
%patch402 -p1 -b .1196777
%patch406 -p1 -b .256180
@@ -776,6 +783,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
#---------------------------------------------------------------------
%changelog
+* Tue Jan 24 2017 Martin Stransky <stransky@redhat.com> - 51.0-3
+- Added fix for aarch64 crashes (rhbz#1354671)
+
* Thu Jan 19 2017 Martin Stransky <stransky@redhat.com> - 51.0-2
- Update to 51.0 (B2)
diff --git a/rhbz-1354671.patch b/rhbz-1354671.patch
new file mode 100644
index 0000000..7164e3d
--- /dev/null
+++ b/rhbz-1354671.patch
@@ -0,0 +1,16 @@
+@@ -, +, @@
+---
+ layout/base/nsIPresShell.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+--- a/layout/base/nsIPresShell.h
++++ a/layout/base/nsIPresShell.h
+@@ -224,7 +224,7 @@ public:
+ * to the same aSize value. AllocateFrame returns zero-filled memory.
+ * AllocateFrame is infallible and will abort on out-of-memory.
+ */
+- void* AllocateFrame(nsQueryFrame::FrameIID aID, size_t aSize)
++ void* __attribute__((optimize("no-lifetime-dse"))) AllocateFrame(nsQueryFrame::FrameIID aID, size_t aSize)
+ {
+ void* result = mFrameArena.AllocateByFrameID(aID, aSize);
+ RecordAlloc(result);
+--
bgstack15