summaryrefslogtreecommitdiff
path: root/package/firefox/patches
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2015-12-29 20:27:14 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2015-12-29 20:29:43 +0100
commite17110aeb3863c1292eb3e58b7597174bea6cc85 (patch)
treeac3ca5ce5f3ff282fbf1cc22de463d473d5a8096 /package/firefox/patches
parent6b30dd2a4fc0f9f2ed61ddae25ef63b44270deae (diff)
firefox: update to latest stable version, runtime tested on IBM X40
Diffstat (limited to 'package/firefox/patches')
-rw-r--r--package/firefox/patches/patch-dom_media_webm_WebMDemuxer_cpp10
-rw-r--r--package/firefox/patches/patch-tools_profiler_core_platform-linux_cc11
-rw-r--r--package/firefox/patches/patch-tools_profiler_local_debug_info_symbolizer_cc10
-rw-r--r--package/firefox/patches/patch-tools_profiler_lul_LulElf_cpp12
-rw-r--r--package/firefox/patches/patch-xpcom_io_nsLocalFileUnix_cpp16
5 files changed, 49 insertions, 10 deletions
diff --git a/package/firefox/patches/patch-dom_media_webm_WebMDemuxer_cpp b/package/firefox/patches/patch-dom_media_webm_WebMDemuxer_cpp
new file mode 100644
index 000000000..f8df2eb45
--- /dev/null
+++ b/package/firefox/patches/patch-dom_media_webm_WebMDemuxer_cpp
@@ -0,0 +1,10 @@
+--- firefox-42.0.orig/dom/media/webm/WebMDemuxer.cpp 2015-10-29 23:17:57.000000000 +0100
++++ firefox-42.0/dom/media/webm/WebMDemuxer.cpp 2015-12-08 05:28:13.471186350 +0100
+@@ -17,6 +17,7 @@
+ #include "nsAutoRef.h"
+ #include "NesteggPacketHolder.h"
+ #include "XiphExtradata.h"
++#include "prprf.h"
+
+ #include <algorithm>
+ #include <stdint.h>
diff --git a/package/firefox/patches/patch-tools_profiler_core_platform-linux_cc b/package/firefox/patches/patch-tools_profiler_core_platform-linux_cc
new file mode 100644
index 000000000..da8f08abf
--- /dev/null
+++ b/package/firefox/patches/patch-tools_profiler_core_platform-linux_cc
@@ -0,0 +1,11 @@
+--- firefox-42.0.orig/tools/profiler/core/platform-linux.cc 2015-10-29 23:18:01.000000000 +0100
++++ firefox-42.0/tools/profiler/core/platform-linux.cc 2015-12-17 05:41:35.091485672 +0100
+@@ -57,7 +57,7 @@
+ #include <fcntl.h> // open
+ #include <unistd.h> // sysconf
+ #include <semaphore.h>
+-#ifdef __GLIBC__
++#if defined(__GLIBC__) && !defined(__UCLIBC__)
+ #include <execinfo.h> // backtrace, backtrace_symbols
+ #endif // def __GLIBC__
+ #include <strings.h> // index
diff --git a/package/firefox/patches/patch-tools_profiler_local_debug_info_symbolizer_cc b/package/firefox/patches/patch-tools_profiler_local_debug_info_symbolizer_cc
deleted file mode 100644
index 12d413718..000000000
--- a/package/firefox/patches/patch-tools_profiler_local_debug_info_symbolizer_cc
+++ /dev/null
@@ -1,10 +0,0 @@
---- mozilla-release.orig/tools/profiler/local_debug_info_symbolizer.cc 2013-09-11 01:15:26.000000000 +0200
-+++ mozilla-release/tools/profiler/local_debug_info_symbolizer.cc 2013-10-23 16:28:38.000000000 +0200
-@@ -3,6 +3,7 @@
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-
-+#include <sys/types.h>
- #include "PlatformMacros.h"
- #include "nsAutoPtr.h"
-
diff --git a/package/firefox/patches/patch-tools_profiler_lul_LulElf_cpp b/package/firefox/patches/patch-tools_profiler_lul_LulElf_cpp
new file mode 100644
index 000000000..8e50fdbba
--- /dev/null
+++ b/package/firefox/patches/patch-tools_profiler_lul_LulElf_cpp
@@ -0,0 +1,12 @@
+--- firefox-42.0.orig/tools/profiler/lul/LulElf.cpp 2015-10-29 23:18:01.000000000 +0100
++++ firefox-42.0/tools/profiler/lul/LulElf.cpp 2015-12-17 06:09:09.809776525 +0100
+@@ -66,6 +66,9 @@
+ #include "LulElfInt.h"
+ #include "LulMainInt.h"
+
++#ifndef NT_GNU_BUILD_ID
++#define NT_GNU_BUILD_ID 3
++#endif
+
+ #if defined(LUL_PLAT_arm_android) && !defined(SHT_ARM_EXIDX)
+ // bionic and older glibsc don't define it
diff --git a/package/firefox/patches/patch-xpcom_io_nsLocalFileUnix_cpp b/package/firefox/patches/patch-xpcom_io_nsLocalFileUnix_cpp
new file mode 100644
index 000000000..32345a436
--- /dev/null
+++ b/package/firefox/patches/patch-xpcom_io_nsLocalFileUnix_cpp
@@ -0,0 +1,16 @@
+--- firefox-42.0.orig/xpcom/io/nsLocalFileUnix.cpp 2015-10-29 23:18:01.000000000 +0100
++++ firefox-42.0/xpcom/io/nsLocalFileUnix.cpp 2015-12-17 18:31:49.639751737 +0100
+@@ -1407,8 +1407,13 @@ nsLocalFile::GetDiskSpaceAvailable(int64
+ && dq.dqb_bhardlimit) {
+ int64_t QuotaSpaceAvailable = 0;
+ // dqb_bhardlimit is count of BLOCK_SIZE blocks, dqb_curspace is bytes
++#if defined(__UCLIBC__)
++ if ((BLOCK_SIZE * dq.dqb_bhardlimit) > dq.dqb_curblocks)
++ QuotaSpaceAvailable = int64_t(fs_buf.F_BSIZE * (dq.dqb_bhardlimit - dq.dqb_curblocks));
++#else
+ if ((BLOCK_SIZE * dq.dqb_bhardlimit) > dq.dqb_curspace)
+ QuotaSpaceAvailable = int64_t(BLOCK_SIZE * dq.dqb_bhardlimit - dq.dqb_curspace);
++#endif
+ if (QuotaSpaceAvailable < *aDiskSpaceAvailable) {
+ *aDiskSpaceAvailable = QuotaSpaceAvailable;
+ }