commit: 582f348c4d4c6f4e588031ac31dd4ff694b1f569
Author: Wiktor W Brodlo brodlo net>
AuthorDate: Wed Dec 10 01:30:02 2014 +
Commit: Anthony G. Basile gentoo org>
CommitDate: Sat Dec 20 00:37:06 2014 +
URL:
http://sources.gentoo.org/gitweb/?p=proj/hardened-dev.git;a=commit;h=582f348c
Add www-client/firefox-34.0.5
Signed-off-by: Anthony G. Basile gentoo.org>
---
www-client/firefox/files/avoid-basename-musl.patch | 30 ++
.../firefox/files/avoid-fts-on-nonglibc-musl.patch | 55 +++
.../firefox/files/avoid-getcontext-musl.patch | 15 +
.../files/define-gettid-unconditonally-musl.patch | 11 +
.../firefox/files/dont-include-aouth-musl.patch| 14 +
.../dont-include-cdefsh-stagefright-musl.patch | 10 +
...refox-31.0-webm-disallow-negative-samples.patch | 29 ++
.../files/firefox-32.0-hppa-js-configure.patch | 21 +
.../files/firefox-33.0-jemalloc-configure.patch| 29 ++
.../firefox/files/fix-amd64-build-musl.patch | 39 ++
.../firefox/files/fix-android-check-musl.patch | 11 +
.../firefox/files/fix-jemalloc-includes-musl.patch | 10 +
.../files/fix-mtransport-includes-musl.patch | 20 +
.../firefox/files/fix-sctp-includes-musl.patch | 47 +++
www-client/firefox/files/gentoo-default-prefs.js-1 | 17 +
www-client/firefox/files/icon/firefox.desktop | 9 +
.../firefox/files/include-systypesh-musl.patch | 21 +
.../files/make-handleInt-unsigned-long-musl.patch | 11 +
www-client/firefox/files/stab.h| 72
www-client/firefox/firefox-34.0.5-r99.ebuild | 428 +
20 files changed, 899 insertions(+)
diff --git a/www-client/firefox/files/avoid-basename-musl.patch
b/www-client/firefox/files/avoid-basename-musl.patch
new file mode 100644
index 000..63ba50b
--- /dev/null
+++ b/www-client/firefox/files/avoid-basename-musl.patch
@@ -0,0 +1,30 @@
+---
a/mozilla-release/toolkit/crashreporter/google-breakpad/src/common/linux/dump_symbols.cc
b/mozilla-release/toolkit/crashreporter/google-breakpad/src/common/linux/dump_symbols.cc
+@@ -834,9 +834,9 @@
+ // last slash, or the whole filename if there are no slashes.
+ string BaseFileName(const string &filename) {
+ // Lots of copies! basename's behavior is less than ideal.
+- char *c_filename = strdup(filename.c_str());
+- string base = basename(c_filename);
+- free(c_filename);
++ const char *c_filename = filename.c_str();
++ const char *p = strrchr(c_filename, '/');
++ string base = p ? p+1 : c_filename;
+ return base;
+ }
+
+--- a/mozilla-release/tools/profiler/LulElf.cpp
b/mozilla-release/tools/profiler/LulElf.cpp
+@@ -580,9 +580,9 @@
+ // last slash, or the whole filename if there are no slashes.
+ string BaseFileName(const string &filename) {
+ // Lots of copies! basename's behavior is less than ideal.
+- char *c_filename = strdup(filename.c_str());
+- string base = basename(c_filename);
+- free(c_filename);
++ const char *c_filename = filename.c_str();
++ const char *p = strrchr(c_filename, '/');
++ string base = p ? p+1 : c_filename;
+ return base;
+ }
+
diff --git a/www-client/firefox/files/avoid-fts-on-nonglibc-musl.patch
b/www-client/firefox/files/avoid-fts-on-nonglibc-musl.patch
new file mode 100644
index 000..fdabf90
--- /dev/null
+++ b/www-client/firefox/files/avoid-fts-on-nonglibc-musl.patch
@@ -0,0 +1,55 @@
+--- a/mozilla-release/ipc/chromium/src/base/file_util.h
b/mozilla-release/ipc/chromium/src/base/file_util.h
+@@ -14,10 +14,15 @@
+ #include
+ #elif defined(ANDROID)
+ #include
++#define NO_FTS
+ #elif defined(OS_POSIX)
+ #include
+-#include
+ #include
++#ifdef __GLIBC__
++#include
++#else
++#define NO_FTS
++#endif
+ #endif
+
+ #include
+--- a/mozilla-release/ipc/chromium/src/base/file_util_posix.cc
b/mozilla-release/ipc/chromium/src/base/file_util_posix.cc
+@@ -8,13 +8,13 @@
+ #include
+ #include
+ #include
+-#ifndef ANDROID
++#ifndef NO_FTS
+ #include
+ #endif
+ #include
+ #include
+ #include
+-#include
++#include
+ #include
+ #define _DARWIN_USE_64_BIT_INODE // Use 64-bit inode data structures
+ #include
+@@ -67,7 +67,7 @@
+ if (!recursive)
+ return (rmdir(path_str) == 0);
+
+-#ifdef ANDROID
++#ifdef NO_FTS
+ // XXX Need ftsless impl for bionic
+ return false;
+ #else
+@@ -140,7 +140,7 @@
+ return false;
+ }
+
+-#ifdef ANDROID
++#ifdef NO_FTS
+ // XXX Need ftsless impl for bionic
+ return false;
+ #else
diff --git a/www-client/firefox/files/avoid-getcontext-musl.patch
b/www-client/firefox/files/avoid-getcontext-musl.patch
new file mode 100644
index 000..e8e2fc0
--- /dev/null
+++ b/www-client/firefox/files/avoid-getcontext-musl.patch
@@ -0,0 +1,15 @@
+--- a/mozilla-release/tools/profiler/platform-linux.cc
b/mozilla-release/tools/profiler/platform-linux.cc
+@@ -625,10 +625,10 @@
+ {
+ MOZ_ASSERT(aContext);
+ ucontext_t* pContext = reinterpret_cast(aContext);
+- if (!getcontext(pContext)) {
++ /*i