1 |
commit: db481f423592a88ec37d16ca056d8402e50ef2f6 |
2 |
Author: Ian Stakenvicius <axs <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jul 5 15:37:03 2016 +0000 |
4 |
Commit: Ian Stakenvicius <axs <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jul 5 15:37:03 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/mozilla.git/commit/?id=db481f42 |
7 |
|
8 |
add missing patches that dirtied the firefox-47.0 ebuild in the last commit |
9 |
|
10 |
.../firefox/files/firefox-47.0-crashreporter.patch | 27 ++++++++++++++++++++++ |
11 |
...47.0-define-HUNSPELL_STATIC-conditionally.patch | 8 +++++++ |
12 |
2 files changed, 35 insertions(+) |
13 |
|
14 |
diff --git a/www-client/firefox/files/firefox-47.0-crashreporter.patch b/www-client/firefox/files/firefox-47.0-crashreporter.patch |
15 |
new file mode 100644 |
16 |
index 0000000..7b3bf3d |
17 |
--- /dev/null |
18 |
+++ b/www-client/firefox/files/firefox-47.0-crashreporter.patch |
19 |
@@ -0,0 +1,27 @@ |
20 |
+--- a/toolkit/crashreporter/google-breakpad/src/common/linux/dump_symbols.cc |
21 |
++++ b/toolkit/crashreporter/google-breakpad/src/common/linux/dump_symbols.cc |
22 |
+@@ -920,10 +920,9 @@ string FormatIdentifier(unsigned char identifier[16]) { |
23 |
+ // Return the non-directory portion of FILENAME: the portion after the |
24 |
+ // last slash, or the whole filename if there are no slashes. |
25 |
+ string BaseFileName(const string &filename) { |
26 |
+- // Lots of copies! basename's behavior is less than ideal. |
27 |
+- char* c_filename = strdup(filename.c_str()); |
28 |
+- string base = basename(c_filename); |
29 |
+- free(c_filename); |
30 |
++ const char *c_filename = filename.c_str(); |
31 |
++ const char *p = strrchr(c_filename, '/'); |
32 |
++ string base = p ? p+1 : c_filename; |
33 |
+ return base; |
34 |
+ } |
35 |
+ |
36 |
+--- a/toolkit/crashreporter/google-breakpad/src/third_party/lss/linux_syscall_support.h |
37 |
++++ b/toolkit/crashreporter/google-breakpad/src/third_party/lss/linux_syscall_support.h |
38 |
+@@ -3851,7 +3851,7 @@ struct kernel_statfs { |
39 |
+ return -1; |
40 |
+ } |
41 |
+ } |
42 |
+- #if defined(__x86_64__) |
43 |
++ #if defined(__x86_64__) && defined(__ILP32__) |
44 |
+ /* Need to make sure loff_t isn't truncated to 32-bits under x32. */ |
45 |
+ LSS_INLINE ssize_t LSS_NAME(pread64)(int f, void *b, size_t c, loff_t o) { |
46 |
+ LSS_BODY(4, ssize_t, pread64, LSS_SYSCALL_ARG(f), LSS_SYSCALL_ARG(b), |
47 |
|
48 |
diff --git a/www-client/firefox/files/firefox-47.0-define-HUNSPELL_STATIC-conditionally.patch b/www-client/firefox/files/firefox-47.0-define-HUNSPELL_STATIC-conditionally.patch |
49 |
new file mode 100644 |
50 |
index 0000000..f7fb3b3 |
51 |
--- /dev/null |
52 |
+++ b/www-client/firefox/files/firefox-47.0-define-HUNSPELL_STATIC-conditionally.patch |
53 |
@@ -0,0 +1,8 @@ |
54 |
+--- a/extensions/spellcheck/hunspell/glue/moz.build |
55 |
++++ b/extensions/spellcheck/hunspell/glue/moz.build |
56 |
+@@ -38,4 +38,4 @@ if CONFIG['GNU_CXX']: |
57 |
+ |
58 |
+ # This variable is referenced in configure.in. Make sure to change that file |
59 |
+ # too if you need to change this variable. |
60 |
+-DEFINES['HUNSPELL_STATIC'] = True |
61 |
++DEFINES['HUNSPELL_STATIC'] = not CONFIG['MOZ_NATIVE_HUNSPELL'] |