[gentoo-commits] proj/hardened-dev:musl commit in: www-client/firefox/, www-client/firefox/files/

2015-04-06 Thread Anthony G. Basile
commit: 2ea22f9e6cec238b784825e331b2d921b0f1f4d2
Author: Felix Janda  posteo  de>
AuthorDate: Sun Mar 22 08:54:56 2015 +
Commit: Anthony G. Basile  gentoo  org>
CommitDate: Mon Apr  6 21:04:20 2015 +
URL:https://gitweb.gentoo.org/proj/hardened-dev.git/commit/?id=2ea22f9e

www-client/firefox: Update to 37.0.1

 www-client/firefox/files/1130164.patch |  68 +++
 www-client/firefox/files/1130175.patch |  33 ++
 www-client/firefox/files/1130710.patch |  57 +++
 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 -
 www-client/firefox/files/basename.patch|  25 ++
 www-client/firefox/files/crashreporter.patch   | 358 +++
 .../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 --
 .../files/firefox-35.0-gmp-clearkey-sprintf.patch  |  10 +
 .../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 -
 www-client/firefox/files/fts.patch | 480 +
 .../firefox/files/include-systypesh-musl.patch |  21 -
 .../firefox/files/libstagefright-cdefs.patch   |  21 +
 .../files/make-handleInt-unsigned-long-musl.patch  |  11 -
 www-client/firefox/files/profiler-gettid.patch |  51 +++
 www-client/firefox/files/sandbox-cdefs.patch   |  21 +
 ...{fix-sctp-includes-musl.patch => sctp-36.patch} |  25 +-
 www-client/firefox/files/sctp.patch|  58 +++
 www-client/firefox/files/sipcc.patch   | 159 +++
 www-client/firefox/files/stab.h|  72 
 www-client/firefox/files/updater.patch |  42 ++
 www-client/firefox/files/xpcom-blocksize.patch |  22 +
 ...34.0.5-r99.ebuild => firefox-37.0.1-r99.ebuild} | 111 +++--
 32 files changed, 1472 insertions(+), 467 deletions(-)

diff --git a/www-client/firefox/files/1130164.patch 
b/www-client/firefox/files/1130164.patch
new file mode 100644
index 000..2b292f8
--- /dev/null
+++ b/www-client/firefox/files/1130164.patch
@@ -0,0 +1,68 @@
+# HG changeset patch
+# User Felix Janda 
+# Date 1423173074 -3600
+#  Thu Feb 05 22:51:14 2015 +0100
+# Node ID a446b4e607445d1c6faec25b43a5d9b5d45bcacf
+# Parent  89120ad0518fb4932de5b5f466debed68ee787ce
+Bug 1130164 - tools/profiler: Use  types. r=jseward
+
+diff -r 89120ad0518f -r a446b4e60744 tools/profiler/UnwinderThread2.cpp
+--- a/tools/profiler/UnwinderThread2.cpp   Thu Mar 05 06:04:03 2015 -0500
 b/tools/profiler/UnwinderThread2.cpp   Thu Feb 05 22:51:14 2015 +0100
+@@ -470,7 +470,7 @@
+ //
+ 
+ // This is the interface to LUL.
+-typedef  struct { u_int64_t pc; u_int64_t sp; }  PCandSP;
++typedef  struct { uint64_t pc; uint64_t sp; }  PCandSP;
+ 
+ // Forward declaration.  Implementation is below.
+ static
+@@ -1338,7 +1338,7 @@
+   else {
+ // We have at least one N and one P entry available.
+ // Scan forwards to find the SP of the current P entry
+-u_int64_t sp_cur_P = 0;
++uint64_t sp_cur_P = 0;
+ unsigned int m = next_P + 1;
+ while (1) {
+   /* This assertion should hold because in a well formed
+@@ -1349,7 +1349,7 @@
+   if (ent.is_ent_hint('Q'))
+ break;
+   if (ent.is_ent('S')) {
+-sp_cur_P = reinterpret_cast(ent.get_tagPtr());
++sp_cur_P = reinterpret_cast(ent.get_tagPtr());
+ break;
+   }
+   m++;
+@@ -1358,7 +1358,7 @@
+   if (0) LOG("  P  <=  last_was_P && sp_cur_P == 0");
+   use_P = true;
+ } else {
+-  u_int64_t sp_cur_N = pairs[next_N].sp;
++  uint64_t sp_cur_N = pairs[next_N].sp;
+   use_P = (sp_cur_P > sp_cur_N);
+   if (0) LOGF("  %s  <=  sps P %p N %p",
+   use_P ? "P" : "N", (void*)(intptr_t)sp_cur_P, 
+diff -r 89120ad0518f -r a446b4e60744 
tools/profiler/local_debug_info_symbolizer.cc
+--- a/tools/profiler/local_debug_info_symbolizer.ccThu Mar 05 06:04:03 
2015 -0500
 b/tools/profiler/local_debug_info_symbolizer.ccThu Feb 05 22:51:14 
2015 +0100
+@@ -222,7 +222,7 @@
+ debug_info_module = it->second;
+   }
+ 
+-  u_int64_t address = frame->instruction - frame->module->base_address();
++  uint64_t address = frame->instruction - frame->module->base_address();
+   Module::Function* function =
+   debug_info_module->FindFunctionByA

[gentoo-commits] proj/hardened-dev:musl commit in: www-client/firefox/, www-client/firefox/files/icon/, www-client/firefox/files/

2014-12-19 Thread Anthony G. Basile
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