From 917162c275a8f79e2568a95f40bee84444fafcc8 Mon Sep 17 00:00:00 2001 From: rene Date: Tue, 25 Oct 2011 18:21:28 +0000 Subject: Update to 15.0.874.102 Obtained from: Chromium/Chruetertee development repository Security: http://www.vuxml.org/freebsd/6887828f-0229-11e0-b84d-00262d5ed8ee.html --- www/chromium/Makefile | 17 +++++--- www/chromium/distinfo | 4 +- .../files/extra-patch-base__base.gypi-freebsd | 20 ++++----- .../files/patch-base__allocator__allocator.gyp | 2 +- ...patch-base__files__file_path_watcher_freebsd.cc | 6 +-- .../files/patch-base__process_util_freebsd.cc | 13 +++--- www/chromium/files/patch-build__common.gypi | 19 ++++---- .../patch-chrome__app__chrome_exe_main_gtk.cc | 12 ------ ...rome__browser__chrome_content_browser_client.cc | 50 +++++++++++++++++++--- ...e__browser__ui__webui__print_preview_handler.cc | 10 ----- www/chromium/files/patch-chrome__nacl.gypi | 22 ++++++++++ ...-chrome__test__base__in_process_browser_test.cc | 13 ++++++ ...h-chrome__test__base__testing_browser_process.h | 11 +++++ .../patch-chrome__test__in_process_browser_test.cc | 13 ------ .../patch-chrome__test__testing_browser_process.h | 11 ----- .../patch-content__browser__zygote_host_linux.cc | 15 ++++--- .../patch-content__browser__zygote_main_linux.cc | 19 +++----- .../files/patch-content__common__seccomp_sandbox.h | 12 ++++++ ...derer__renderer_main_platform_delegate_linux.cc | 11 ----- www/chromium/files/patch-media__media.gyp | 11 +++++ .../files/patch-net__base__dns_reloader.cc | 12 ++++++ .../patch-net__dns__dns_config_service_posix.h | 14 ++++++ www/chromium/files/patch-remoting__remoting.gyp | 34 +++++---------- ...patch-skia__ext__vector_platform_device_skia.cc | 11 +++++ .../patch-skia__ext__vector_platform_device_skia.h | 11 +++++ ...ty__WebKit__Source__WebCore__platform__UUID.cpp | 35 --------------- .../files/patch-third_party__ffmpeg__ffmpeg.gyp | 25 ++--------- www/chromium/files/patch-third_party__icu__icu.gyp | 12 ------ ...tch-third_party__leveldatabase__env_chromium.cc | 12 ++++++ ...tch-third_party__leveldb__util__env_chromium.cc | 20 --------- .../files/patch-third_party__libvpx__libvpx.gyp | 22 +++++----- ...atch-tools__gyp__pylib__gyp__generator__make.py | 15 ++----- ...src__extensions__experimental__experimental.gyp | 32 -------------- ...src__extensions__experimental__number-format.cc | 48 --------------------- www/chromium/files/patch-views_native_types.h | 20 ++++----- www/chromium/pkg-plist | 4 +- 36 files changed, 272 insertions(+), 346 deletions(-) delete mode 100644 www/chromium/files/patch-chrome__app__chrome_exe_main_gtk.cc delete mode 100644 www/chromium/files/patch-chrome__browser__ui__webui__print_preview_handler.cc create mode 100644 www/chromium/files/patch-chrome__nacl.gypi create mode 100644 www/chromium/files/patch-chrome__test__base__in_process_browser_test.cc create mode 100644 www/chromium/files/patch-chrome__test__base__testing_browser_process.h delete mode 100644 www/chromium/files/patch-chrome__test__in_process_browser_test.cc delete mode 100644 www/chromium/files/patch-chrome__test__testing_browser_process.h create mode 100644 www/chromium/files/patch-content__common__seccomp_sandbox.h delete mode 100644 www/chromium/files/patch-content__renderer__renderer_main_platform_delegate_linux.cc create mode 100644 www/chromium/files/patch-media__media.gyp create mode 100644 www/chromium/files/patch-net__base__dns_reloader.cc create mode 100644 www/chromium/files/patch-net__dns__dns_config_service_posix.h create mode 100644 www/chromium/files/patch-skia__ext__vector_platform_device_skia.cc create mode 100644 www/chromium/files/patch-skia__ext__vector_platform_device_skia.h delete mode 100644 www/chromium/files/patch-third_party__WebKit__Source__WebCore__platform__UUID.cpp delete mode 100644 www/chromium/files/patch-third_party__icu__icu.gyp create mode 100644 www/chromium/files/patch-third_party__leveldatabase__env_chromium.cc delete mode 100644 www/chromium/files/patch-third_party__leveldb__util__env_chromium.cc delete mode 100644 www/chromium/files/patch-v8__src__extensions__experimental__experimental.gyp delete mode 100644 www/chromium/files/patch-v8__src__extensions__experimental__number-format.cc diff --git a/www/chromium/Makefile b/www/chromium/Makefile index 5c0fa193d54a..ebe86fdfbfb1 100644 --- a/www/chromium/Makefile +++ b/www/chromium/Makefile @@ -7,8 +7,7 @@ PORTNAME= chromium DISTVERSIONPREFIX= courgette-redacted- -DISTVERSION= 14.0.835.202 -PORTREVISION= 1 +DISTVERSION= 15.0.874.102 CATEGORIES= www MASTER_SITES= http://download.goodking.org/downloads/ \ ftp://rene-ladan.nl/pub/distfiles/ \ @@ -39,9 +38,6 @@ LIB_DEPENDS= execinfo.1:${PORTSDIR}/devel/libexecinfo \ nss3.1:${PORTSDIR}/security/nss \ gnome-keyring.0:${PORTSDIR}/security/libgnome-keyring \ cups.2:${PORTSDIR}/print/cups-client \ - icuuc.48:${PORTSDIR}/devel/icu \ - icui18n.48:${PORTSDIR}/devel/icu \ - icudata.48:${PORTSDIR}/devel/icu \ event-1.4:${PORTSDIR}/devel/libevent \ vpx:${PORTSDIR}/multimedia/libvpx \ tcmalloc.2:${PORTSDIR}/devel/google-perftools @@ -67,7 +63,6 @@ ALL_TARGET= chrome # See build/common.gypi for all the available variables. GYP_DEFINES+= use_cups=1 \ - use_system_icu=1 \ use_system_vpx=1 \ use_system_yasm=1 \ use_system_libxml=1 \ @@ -84,6 +79,7 @@ GYP_DEFINES+= use_cups=1 \ OPTIONS= CODECS "Compile and enable patented codecs like H.264" on \ GCONF "Use GConf2 for preferences" on \ + PULSE "Enable Pulse Audio support" off \ CLANG "Compile Chromium with clang" off \ GCC45 "Compile Chromium with gcc 4.5+" off \ DEBUG "Compile with debug symbols and verbose output" off @@ -116,6 +112,13 @@ USE_GNOME+= gconf2 GYP_DEFINES+= use_gconf=0 .endif +.if defined(WITH_PULSEAUDIO) +LIB_DEPENDS+= pulse.0:${PORTSDIR}/audio/pulseaudio +GYP_DEFINES+= use_pulseaudio=1 +.else +GYP_DEFINES+= use_pulseaudio=0 +.endif + .if ! ${MACHINE_CPU:Msse2} GYP_DEFINES+= disable_sse2=1 .endif @@ -197,7 +200,7 @@ do-install: ${WRKSRC}/out/${BUILDTYPE}/resources.pak ${DATADIR} ${INSTALL_SCRIPT} ${WRKSRC}/out/${BUILDTYPE}/chrome-wrapper \ ${WRKSRC}/out/${BUILDTYPE}/xdg-settings ${DATADIR} -.for f in chrome ffmpegsumo_nolink libffmpegsumo.so mksnapshot protoc +.for f in chrome libffmpegsumo.so mksnapshot protoc ${INSTALL_PROGRAM} ${WRKSRC}/out/${BUILDTYPE}/${f} ${DATADIR} .endfor cd ${WRKSRC}/out/${BUILDTYPE} && \ diff --git a/www/chromium/distinfo b/www/chromium/distinfo index 930a60abb47c..8d165c43fea5 100644 --- a/www/chromium/distinfo +++ b/www/chromium/distinfo @@ -1,2 +1,2 @@ -SHA256 (chromium-courgette-redacted-14.0.835.202.tar.xz) = 45cfb4c45a30f5fc140c21099f4301bf4f46df364e767e352ca7dd8dbbdc488b -SIZE (chromium-courgette-redacted-14.0.835.202.tar.xz) = 124424472 +SHA256 (chromium-courgette-redacted-15.0.874.102.tar.xz) = 5334bb25b4682da9c680625558d86b11e004e43aeeea81db0ff5191b30ac172a +SIZE (chromium-courgette-redacted-15.0.874.102.tar.xz) = 120177844 diff --git a/www/chromium/files/extra-patch-base__base.gypi-freebsd b/www/chromium/files/extra-patch-base__base.gypi-freebsd index 850b5505b09b..9ee58a67d1a9 100644 --- a/www/chromium/files/extra-patch-base__base.gypi-freebsd +++ b/www/chromium/files/extra-patch-base__base.gypi-freebsd @@ -1,14 +1,14 @@ ---- base/base.gypi.orig 2011-06-28 22:44:26.635806924 +0300 -+++ base/base.gypi 2011-06-28 23:21:49.321810313 +0300 -@@ -94,6 +94,7 @@ +--- base/base.gypi.orig 2011-10-07 11:32:10.000000000 +0300 ++++ base/base.gypi 2011-10-08 21:38:52.007156128 +0300 +@@ -96,6 +96,7 @@ 'files/file_path_watcher_linux.cc', 'files/file_path_watcher_mac.cc', 'files/file_path_watcher_win.cc', + 'files/file_path_watcher_freebsd.cc', - 'fix_wp64.h', 'float_util.h', 'global_descriptors_posix.cc', -@@ -189,6 +190,7 @@ + 'global_descriptors_posix.h', +@@ -188,6 +189,7 @@ 'process_posix.cc', 'process_util.cc', 'process_util.h', @@ -16,9 +16,9 @@ 'process_util_linux.cc', 'process_util_mac.mm', 'process_util_posix.cc', -@@ -371,11 +373,9 @@ - 'message_pump_glib_x.cc', - ], +@@ -388,11 +390,9 @@ + }, { + 'sources!' : [ 'message_pump_gtk.cc', ], }], - [ 'OS != "linux"', { + [ 'OS != "linux" and OS != "freebsd"', { @@ -29,7 +29,7 @@ 'linux_util.cc', ], }, -@@ -413,7 +413,7 @@ +@@ -434,7 +434,7 @@ 'string16.cc', ], },], @@ -38,7 +38,7 @@ 'sources!': [ 'files/file_path_watcher_linux.cc', ], -@@ -491,6 +491,13 @@ +@@ -508,6 +508,13 @@ ], }], [ 'OS == "freebsd" or OS == "openbsd"', { diff --git a/www/chromium/files/patch-base__allocator__allocator.gyp b/www/chromium/files/patch-base__allocator__allocator.gyp index 13eeccbe079f..dee2f39ac278 100644 --- a/www/chromium/files/patch-base__allocator__allocator.gyp +++ b/www/chromium/files/patch-base__allocator__allocator.gyp @@ -94,7 +94,7 @@ - '<(tcmalloc_dir)/src/base/spinlock_posix-inl.h', - '<(tcmalloc_dir)/src/base/spinlock_win32-inl.h', - '<(tcmalloc_dir)/src/base/stl_allocator.h', -- '<(tcmalloc_dir)/src/base/src/synchronization_profiling.h', +- '<(tcmalloc_dir)/src/base/synchronization_profiling.h', - '<(tcmalloc_dir)/src/base/sysinfo.cc', - '<(tcmalloc_dir)/src/base/sysinfo.h', - '<(tcmalloc_dir)/src/base/thread_annotations.h', diff --git a/www/chromium/files/patch-base__files__file_path_watcher_freebsd.cc b/www/chromium/files/patch-base__files__file_path_watcher_freebsd.cc index 8693ac0bf2ee..512e3a695c23 100644 --- a/www/chromium/files/patch-base__files__file_path_watcher_freebsd.cc +++ b/www/chromium/files/patch-base__files__file_path_watcher_freebsd.cc @@ -1,5 +1,5 @@ ---- /dev/null 2011-06-28 22:00:00.000000000 +0300 -+++ base/files/file_path_watcher_freebsd.cc 2011-06-28 22:03:34.898806831 +0300 +--- /dev/null 2011-10-09 00:44:00.000000000 +0300 ++++ base/files/file_path_watcher_freebsd.cc 2011-10-09 00:49:08.473941731 +0300 @@ -0,0 +1,473 @@ +// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be @@ -410,7 +410,7 @@ + target_ = path; + + MessageLoop::current()->AddDestructionObserver(this); -+ io_message_loop_ = base::MessageLoopProxy::CreateForCurrentThread(); ++ io_message_loop_ = base::MessageLoopProxy::current(); + + kqueue_ = kqueue(); + if (kqueue_ == -1) { diff --git a/www/chromium/files/patch-base__process_util_freebsd.cc b/www/chromium/files/patch-base__process_util_freebsd.cc index cfdafe209846..6dd4127d396d 100644 --- a/www/chromium/files/patch-base__process_util_freebsd.cc +++ b/www/chromium/files/patch-base__process_util_freebsd.cc @@ -1,6 +1,6 @@ ---- /dev/null 2011-10-02 18:27:33.000000000 +0300 -+++ base/process_util_freebsd.cc 2011-10-02 18:26:22.000000000 +0300 -@@ -0,0 +1,320 @@ +--- base/process_util_freebsd.cc.orig 2011-10-08 23:30:09.938179749 +0300 ++++ base/process_util_freebsd.cc 2011-10-09 14:30:52.108006527 +0300 +@@ -0,0 +1,323 @@ +// Copyright (c) 2009 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. @@ -311,10 +311,13 @@ +} + +void EnableTerminationOnOutOfMemory() { -+ NOTIMPLEMENTED(); -+ return; ++ DLOG(WARNING) << "Not feasible."; +} + ++void EnableTerminationOnHeapCorruption() { ++ // Nothing to do. ++} ++ +bool AdjustOOMScore(ProcessId process, int score) { + NOTIMPLEMENTED(); + return false; diff --git a/www/chromium/files/patch-build__common.gypi b/www/chromium/files/patch-build__common.gypi index dcb9a55e5ab9..f9be724f3209 100644 --- a/www/chromium/files/patch-build__common.gypi +++ b/www/chromium/files/patch-build__common.gypi @@ -1,8 +1,8 @@ ---- build/common.gypi.orig 2011-09-14 11:01:28.000000000 +0300 -+++ build/common.gypi 2011-09-29 23:13:08.000000000 +0300 -@@ -303,6 +303,10 @@ - 'enable_register_protocol_handler%': '<(enable_register_protocol_handler)', - 'enable_smooth_scrolling%': '<(enable_smooth_scrolling)', +--- build/common.gypi.orig 2011-10-07 08:32:09.000000000 +0000 ++++ build/common.gypi 2011-10-10 19:06:38.844749713 +0000 +@@ -331,6 +331,10 @@ + # Whether to build for Wayland display server + 'use_wayland%': 0, + 'os_ver%': 0, + 'prefix_dir%': '/usr', @@ -11,7 +11,7 @@ # The release channel that this build targets. This is used to restrict # channel-specific build options, like which installer packages to create. # The default is 'all', which does no channel-specific filtering. -@@ -516,7 +520,7 @@ +@@ -551,7 +555,7 @@ # This is used to tweak build flags for gcc 4.4. 'gcc_version%': 'system_request_context(); } -#if defined(OS_LINUX) @@ -18,3 +45,12 @@ int ChromeContentBrowserClient::GetCrashSignalFD( const std::string& process_type) { if (process_type == switches::kRendererProcess) +@@ -794,7 +794,7 @@ + + return -1; + } +-#endif // defined(OS_LINUX) ++#endif // defined(OS_LINUX) || defined(OS_FREEBSD) + + #if defined(OS_WIN) + const wchar_t* ChromeContentBrowserClient::GetResourceDllName() { diff --git a/www/chromium/files/patch-chrome__browser__ui__webui__print_preview_handler.cc b/www/chromium/files/patch-chrome__browser__ui__webui__print_preview_handler.cc deleted file mode 100644 index dda4df939c87..000000000000 --- a/www/chromium/files/patch-chrome__browser__ui__webui__print_preview_handler.cc +++ /dev/null @@ -1,10 +0,0 @@ ---- chrome/browser/ui/webui/print_preview_handler.cc.orig 2011-09-30 03:01:50.000000000 -0500 -+++ chrome/browser/ui/webui/print_preview_handler.cc 2011-10-06 00:48:39.943195565 -0500 -@@ -46,6 +46,7 @@ - - #if defined(USE_CUPS) - #include -+#include - - #include "base/file_util.h" - #endif diff --git a/www/chromium/files/patch-chrome__nacl.gypi b/www/chromium/files/patch-chrome__nacl.gypi new file mode 100644 index 000000000000..7d2ee172a349 --- /dev/null +++ b/www/chromium/files/patch-chrome__nacl.gypi @@ -0,0 +1,22 @@ +--- chrome/nacl.gypi.orig 2011-10-10 21:43:36.427755838 +0300 ++++ chrome/nacl.gypi 2011-10-10 21:47:51.837729515 +0300 +@@ -103,8 +103,8 @@ + ], + }, + ], +- }], +- ['OS!="win" and target_arch=="ia32"', { ++ }], # Disable nacl on freebsd for now. ++ ['OS!="win" and OS!="freebsd" and target_arch=="ia32"', { + # Linux-x86-32 and OSX need only the x86-32 IRT. + 'actions': [ + { +@@ -120,7 +120,7 @@ + }, + ], + }], +- ['OS!="win" and target_arch=="x64"', { ++ ['OS!="win" and OS!="freebsd" and target_arch=="x64"', { + # Linux-x86-64 needs only the x86-64 IRT. + 'actions': [ + { diff --git a/www/chromium/files/patch-chrome__test__base__in_process_browser_test.cc b/www/chromium/files/patch-chrome__test__base__in_process_browser_test.cc new file mode 100644 index 000000000000..63a41a321300 --- /dev/null +++ b/www/chromium/files/patch-chrome__test__base__in_process_browser_test.cc @@ -0,0 +1,13 @@ +--- chrome/test/base/in_process_browser_test.cc.orig 2011-09-14 00:41:45.000000000 +0300 ++++ chrome/test/base/in_process_browser_test.cc 2011-09-14 00:46:15.000000000 +0300 +@@ -41,6 +41,10 @@ + #include "net/test/test_server.h" + #include "sandbox/src/dep.h" + ++#if defined(OS_FREEBSD) ++#include ++#endif ++ + #if defined(OS_MACOSX) + #include "base/mac/mac_util.h" + #include "base/system_monitor/system_monitor.h" diff --git a/www/chromium/files/patch-chrome__test__base__testing_browser_process.h b/www/chromium/files/patch-chrome__test__base__testing_browser_process.h new file mode 100644 index 000000000000..a7ed54f24493 --- /dev/null +++ b/www/chromium/files/patch-chrome__test__base__testing_browser_process.h @@ -0,0 +1,11 @@ +--- chrome/test/base/testing_browser_process.h.orig 2011-07-28 11:01:47.000000000 +0300 ++++ chrome/test/base/testing_browser_process.h 2011-09-06 22:56:31.000000000 +0300 +@@ -104,7 +104,7 @@ + virtual bool plugin_finder_disabled() const; + virtual void CheckForInspectorFiles() {} + +-#if (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) ++#if (defined(OS_WIN) || defined(OS_LINUX) || defined(OS_FREEBSD)) && !defined(OS_CHROMEOS) + virtual void StartAutoupdateTimer() {} + #endif + diff --git a/www/chromium/files/patch-chrome__test__in_process_browser_test.cc b/www/chromium/files/patch-chrome__test__in_process_browser_test.cc deleted file mode 100644 index 4493056a2649..000000000000 --- a/www/chromium/files/patch-chrome__test__in_process_browser_test.cc +++ /dev/null @@ -1,13 +0,0 @@ ---- chrome/test/in_process_browser_test.cc.orig 2011-09-14 00:41:45.000000000 +0300 -+++ chrome/test/in_process_browser_test.cc 2011-09-14 00:46:15.000000000 +0300 -@@ -41,6 +41,10 @@ - #include "net/test/test_server.h" - #include "sandbox/src/dep.h" - -+#if defined(OS_FREEBSD) -+#include -+#endif -+ - #if defined(OS_MACOSX) - #include "base/mac/mac_util.h" - #include "base/system_monitor/system_monitor.h" diff --git a/www/chromium/files/patch-chrome__test__testing_browser_process.h b/www/chromium/files/patch-chrome__test__testing_browser_process.h deleted file mode 100644 index 77a2ab0e2e4d..000000000000 --- a/www/chromium/files/patch-chrome__test__testing_browser_process.h +++ /dev/null @@ -1,11 +0,0 @@ ---- chrome/test/testing_browser_process.h.orig 2011-07-28 11:01:47.000000000 +0300 -+++ chrome/test/testing_browser_process.h 2011-09-06 22:56:31.000000000 +0300 -@@ -104,7 +104,7 @@ - virtual bool plugin_finder_disabled() const; - virtual void CheckForInspectorFiles() {} - --#if (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) -+#if (defined(OS_WIN) || defined(OS_LINUX) || defined(OS_FREEBSD)) && !defined(OS_CHROMEOS) - virtual void StartAutoupdateTimer() {} - #endif - diff --git a/www/chromium/files/patch-content__browser__zygote_host_linux.cc b/www/chromium/files/patch-content__browser__zygote_host_linux.cc index 20c71f7dda0f..83b2c1a15b50 100644 --- a/www/chromium/files/patch-content__browser__zygote_host_linux.cc +++ b/www/chromium/files/patch-content__browser__zygote_host_linux.cc @@ -1,12 +1,17 @@ ---- content/browser/zygote_host_linux.cc.orig 2011-10-02 18:12:41.000000000 +0300 -+++ content/browser/zygote_host_linux.cc 2011-10-02 18:11:51.000000000 +0300 -@@ -259,8 +259,10 @@ +--- content/browser/zygote_host_linux.cc.orig 2011-10-07 11:31:44.000000000 +0300 ++++ content/browser/zygote_host_linux.cc 2011-10-08 22:10:14.930730097 +0300 +@@ -271,6 +271,7 @@ return base::kNullProcessHandle; } +#if !defined(OS_FREEBSD) - const int kRendererScore = 5; - AdjustRendererOOMScore(pid, kRendererScore); + // This is just a starting score for a renderer or extension (the + // only types of processes that will be started this way). It will + // get adjusted as time goes on. (This is the same value as +@@ -278,6 +279,7 @@ + // that's not something we can include here.) + const int kLowestRendererOomScore = 300; + AdjustRendererOOMScore(pid, kLowestRendererOomScore); +#endif return pid; diff --git a/www/chromium/files/patch-content__browser__zygote_main_linux.cc b/www/chromium/files/patch-content__browser__zygote_main_linux.cc index 32cde774d1a5..6510e774ca04 100644 --- a/www/chromium/files/patch-content__browser__zygote_main_linux.cc +++ b/www/chromium/files/patch-content__browser__zygote_main_linux.cc @@ -1,15 +1,6 @@ ---- content/browser/zygote_main_linux.cc.orig 2011-09-14 11:01:10.000000000 +0300 -+++ content/browser/zygote_main_linux.cc 2011-10-02 15:28:48.000000000 +0300 -@@ -57,7 +57,7 @@ - #endif - - #if defined(ARCH_CPU_X86_FAMILY) && !defined(CHROMIUM_SELINUX) && \ -- !defined(__clang__) -+ !defined(__clang__) && !defined(OS_FREEBSD) - // The seccomp sandbox is enabled on all ia32 and x86-64 processor as long as - // we aren't using SELinux or clang. - #define SECCOMP_SANDBOX -@@ -720,11 +720,16 @@ +--- content/browser/zygote_main_linux.cc.orig 2011-10-07 11:31:44.000000000 +0300 ++++ content/browser/zygote_main_linux.cc 2011-10-08 22:11:46.609222627 +0300 +@@ -727,11 +727,16 @@ // dumpable. const CommandLine& command_line = *CommandLine::ForCurrentProcess(); if (!command_line.HasSwitch(switches::kAllowSandboxDebugging)) { @@ -24,5 +15,5 @@ + return false; +#endif } - } else if (CommandLine::ForCurrentProcess()->HasSwitch( - switches::kEnableSeccompSandbox)) { + #if defined(SECCOMP_SANDBOX) + } else if (SeccompSandboxEnabled()) { diff --git a/www/chromium/files/patch-content__common__seccomp_sandbox.h b/www/chromium/files/patch-content__common__seccomp_sandbox.h new file mode 100644 index 000000000000..e96e28b7018d --- /dev/null +++ b/www/chromium/files/patch-content__common__seccomp_sandbox.h @@ -0,0 +1,12 @@ +--- content/common/seccomp_sandbox.h.orig 2011-10-10 20:30:54.487723398 +0000 ++++ content/common/seccomp_sandbox.h 2011-10-10 20:31:27.083734776 +0000 +@@ -18,7 +18,8 @@ + #include "content/common/content_switches.h" + + #if defined(ARCH_CPU_X86_FAMILY) && !defined(CHROMIUM_SELINUX) && \ +- !defined(__clang__) && !defined(OS_CHROMEOS) && !defined(TOOLKIT_VIEWS) ++ !defined(__clang__) && !defined(OS_CHROMEOS) && !defined(TOOLKIT_VIEWS) && \ ++ !defined(OS_FREEBSD) + #define SECCOMP_SANDBOX + #include "seccompsandbox/sandbox.h" + #endif diff --git a/www/chromium/files/patch-content__renderer__renderer_main_platform_delegate_linux.cc b/www/chromium/files/patch-content__renderer__renderer_main_platform_delegate_linux.cc deleted file mode 100644 index 345be5fa59be..000000000000 --- a/www/chromium/files/patch-content__renderer__renderer_main_platform_delegate_linux.cc +++ /dev/null @@ -1,11 +0,0 @@ ---- content/renderer/renderer_main_platform_delegate_linux.cc.orig 2011-03-20 22:02:04.353053389 +0200 -+++ content/renderer/renderer_main_platform_delegate_linux.cc 2011-03-20 22:02:04.476736985 +0200 -@@ -36,7 +36,7 @@ - // The seccomp sandbox is started in the renderer. - // http://code.google.com/p/seccompsandbox/ - #if defined(ARCH_CPU_X86_FAMILY) && !defined(CHROMIUM_SELINUX) && \ -- !defined(__clang__) -+ !defined(__clang__) && !defined(OS_FREEBSD) - // N.b. SupportsSeccompSandbox() returns a cached result, as we already - // called it earlier in the zygote. Thus, it is OK for us to not pass in - // a file descriptor for "/proc". diff --git a/www/chromium/files/patch-media__media.gyp b/www/chromium/files/patch-media__media.gyp new file mode 100644 index 000000000000..ccdfd9185f6e --- /dev/null +++ b/www/chromium/files/patch-media__media.gyp @@ -0,0 +1,11 @@ +--- media/media.gyp.orig 2011-10-10 20:58:23.652729836 +0000 ++++ media/media.gyp 2011-10-10 20:58:50.086730237 +0000 +@@ -248,7 +248,7 @@ + ], + }, + 'conditions': [ +- ['OS=="linux"', { ++ ['OS=="linux" or OS=="freebsd"', { + 'conditions': [ + ['use_pulseaudio == 1', { + 'link_settings': { diff --git a/www/chromium/files/patch-net__base__dns_reloader.cc b/www/chromium/files/patch-net__base__dns_reloader.cc new file mode 100644 index 000000000000..b28dbf814c83 --- /dev/null +++ b/www/chromium/files/patch-net__base__dns_reloader.cc @@ -0,0 +1,12 @@ +--- net/base/dns_reloader.cc.orig 2011-10-09 01:12:14.189268935 +0300 ++++ net/base/dns_reloader.cc 2011-10-09 01:32:07.358661959 +0300 +@@ -6,6 +6,9 @@ + + #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_OPENBSD) + ++#if defined(OS_FREEBSD) ++#include ++#endif + #include + + #include "base/basictypes.h" diff --git a/www/chromium/files/patch-net__dns__dns_config_service_posix.h b/www/chromium/files/patch-net__dns__dns_config_service_posix.h new file mode 100644 index 000000000000..453e13168f5d --- /dev/null +++ b/www/chromium/files/patch-net__dns__dns_config_service_posix.h @@ -0,0 +1,14 @@ +--- net/dns/dns_config_service_posix.h.orig 2011-10-09 01:34:20.846923374 +0300 ++++ net/dns/dns_config_service_posix.h 2011-10-09 01:35:52.752414016 +0300 +@@ -6,6 +6,11 @@ + #define NET_DNS_DNS_CONFIG_SERVICE_POSIX_H_ + #pragma once + ++#include "build/build_config.h" ++ ++#if defined(OS_FREEBSD) ++#include ++#endif + #include + + #include "base/compiler_specific.h" diff --git a/www/chromium/files/patch-remoting__remoting.gyp b/www/chromium/files/patch-remoting__remoting.gyp index eaf803408485..7455d2b5e06f 100644 --- a/www/chromium/files/patch-remoting__remoting.gyp +++ b/www/chromium/files/patch-remoting__remoting.gyp @@ -1,23 +1,11 @@ ---- remoting/remoting.gyp.orig 2011-09-07 02:04:45.000000000 +0300 -+++ remoting/remoting.gyp 2011-09-07 02:08:27.000000000 +0300 -@@ -53,6 +53,20 @@ - 'resources/linux/chromoting16.png', - ], - }], -+ ['OS=="freebsd" and target_arch=="x64"', { -+ 'name_suffix': '- FreeBSD - amd64', -+ 'remoting_it2me_os_files': [ -+ 'resources/linux/chromoting128.png', -+ 'resources/linux/chromoting16.png', -+ ], -+ }], -+ ['OS=="freebsd" and target_arch!="x64"', { -+ 'name_suffix': '- FreeBSD', -+ 'remoting_it2me_os_files': [ -+ 'resources/linux/chromoting128.png', -+ 'resources/linux/chromoting16.png', -+ ], -+ }], - ['OS=="win"', { - 'plugin_extension': 'dll', - 'plugin_prefix': '', +--- remoting/remoting.gyp.orig 2011-10-07 11:31:35.000000000 +0300 ++++ remoting/remoting.gyp 2011-10-09 14:43:52.277370445 +0300 +@@ -345,7 +345,7 @@ + '../ui/ui.gyp:ui', + '../net/net.gyp:net', + '../skia/skia.gyp:skia', +- '../third_party/libvpx/libvpx.gyp:libvpx', ++ '../third_party/libvpx/libvpx.gyp:libvpx_lib', + '../third_party/protobuf/protobuf.gyp:protobuf_lite', + '../third_party/zlib/zlib.gyp:zlib', + '../media/media.gyp:yuv_convert', diff --git a/www/chromium/files/patch-skia__ext__vector_platform_device_skia.cc b/www/chromium/files/patch-skia__ext__vector_platform_device_skia.cc new file mode 100644 index 000000000000..be2cea3859fa --- /dev/null +++ b/www/chromium/files/patch-skia__ext__vector_platform_device_skia.cc @@ -0,0 +1,11 @@ +--- skia/ext/vector_platform_device_skia.cc.orig 2011-10-09 00:19:19.935845255 +0300 ++++ skia/ext/vector_platform_device_skia.cc 2011-10-09 00:19:41.820724365 +0300 +@@ -88,7 +88,7 @@ + SkASSERT(false); + return NULL; + } +-#elif defined(OS_LINUX) ++#elif defined(OS_LINUX) || defined(OS_FREEBSD) + void VectorPlatformDeviceSkia::DrawToNativeContext( + PlatformSurface surface, int x, int y, const PlatformRect* src_rect) { + // Should never be called on Linux. diff --git a/www/chromium/files/patch-skia__ext__vector_platform_device_skia.h b/www/chromium/files/patch-skia__ext__vector_platform_device_skia.h new file mode 100644 index 000000000000..15fba9c89def --- /dev/null +++ b/www/chromium/files/patch-skia__ext__vector_platform_device_skia.h @@ -0,0 +1,11 @@ +--- skia/ext/vector_platform_device_skia.h.orig 2011-10-09 00:19:07.294915003 +0300 ++++ skia/ext/vector_platform_device_skia.h 2011-10-09 00:20:01.103617064 +0300 +@@ -40,7 +40,7 @@ + virtual void DrawToNativeContext(CGContext* context, int x, int y, + const CGRect* src_rect); + virtual CGContextRef GetBitmapContext(); +-#elif defined(OS_LINUX) ++#elif defined(OS_LINUX) || defined(OS_FREEBSD) + virtual void DrawToNativeContext(PlatformSurface surface, int x, int y, + const PlatformRect* src_rect); + #endif diff --git a/www/chromium/files/patch-third_party__WebKit__Source__WebCore__platform__UUID.cpp b/www/chromium/files/patch-third_party__WebKit__Source__WebCore__platform__UUID.cpp deleted file mode 100644 index a5a1d9f5b64e..000000000000 --- a/www/chromium/files/patch-third_party__WebKit__Source__WebCore__platform__UUID.cpp +++ /dev/null @@ -1,35 +0,0 @@ ---- ./third_party/WebKit/Source/WebCore/platform/UUID.cpp.orig 2011-01-25 10:33:42.000000000 +0100 -+++ ./third_party/WebKit/Source/WebCore/platform/UUID.cpp 2011-01-25 10:43:15.000000000 +0100 -@@ -41,6 +41,8 @@ - #include - #elif OS(DARWIN) - #include -+#elif OS(FREEBSD) -+#include - #elif OS(LINUX) && !PLATFORM(CHROMIUM) - #include - #elif OS(LINUX) && PLATFORM(CHROMIUM) -@@ -80,6 +82,23 @@ - String canonicalUuidStr = uuidStr.lower(); // make it lower. - ASSERT(canonicalUuidStr[uuidVersionIdentifierIndex] == uuidVersionRequired); - return canonicalUuidStr; -+#elif OS(FREEBSD) -+ uuid_t *store; -+ char *uuid; -+ store = (uuid_t*)malloc(sizeof(uuid_t)); -+ if (store == NULL) -+ return String(); -+ -+ if (uuidgen(store, 1) != 0) -+ return String(); -+ -+ uuid_to_string(store, &uuid, NULL); -+ String canonicalUuidStr = String(uuid).lower(); // make it lower -+ free(uuid); -+ free(store); -+ ASSERT(canonicalUuidStr[uuidVersionIdentifierIndex] == uuidVersionRequired); -+ return canonicalUuidStr; -+ - #elif OS(LINUX) && !PLATFORM(CHROMIUM) - // This does not work for the linux system that turns on sandbox. - FILE* fptr = fopen("/proc/sys/kernel/random/uuid", "r"); diff --git a/www/chromium/files/patch-third_party__ffmpeg__ffmpeg.gyp b/www/chromium/files/patch-third_party__ffmpeg__ffmpeg.gyp index d6d97025d241..f7d36b57f480 100644 --- a/www/chromium/files/patch-third_party__ffmpeg__ffmpeg.gyp +++ b/www/chromium/files/patch-third_party__ffmpeg__ffmpeg.gyp @@ -1,25 +1,6 @@ ---- third_party/ffmpeg/ffmpeg.gyp.orig 2011-09-14 02:43:26.000000000 +0300 -+++ third_party/ffmpeg/ffmpeg.gyp 2011-09-14 03:03:08.000000000 +0300 -@@ -528,6 +528,9 @@ - 'libraries': [ - '-lvpx', - ], -+ 'ldflags': [ -+ '-L<(prefix_dir)/lib', -+ ], - }], - ], - }, -@@ -642,7 +645,7 @@ - }, { - # Using libvpx provided by the system. - 'include_dirs': [ -- '/usr/include/vpx', -+ '<(prefix_dir)/include', - ], - } - ], -@@ -941,6 +944,7 @@ +--- third_party/ffmpeg/ffmpeg.gyp.orig 2011-10-07 11:34:35.000000000 +0300 ++++ third_party/ffmpeg/ffmpeg.gyp 2011-10-08 22:31:59.259508048 +0300 +@@ -508,6 +508,7 @@ 'include_dirs': [ 'config', 'patched-ffmpeg', diff --git a/www/chromium/files/patch-third_party__icu__icu.gyp b/www/chromium/files/patch-third_party__icu__icu.gyp deleted file mode 100644 index 959732e54bf6..000000000000 --- a/www/chromium/files/patch-third_party__icu__icu.gyp +++ /dev/null @@ -1,12 +0,0 @@ ---- third_party/icu/icu.gyp.orig 2011-09-09 23:54:57.000000000 +0300 -+++ third_party/icu/icu.gyp 2011-09-10 00:17:17.000000000 +0300 -@@ -517,6 +517,9 @@ - 'defines': [ - 'USE_SYSTEM_ICU', - ], -+ 'include_dirs': [ -+ '( - icu::NumberFormat::createInstance(icu_locale, style, *status)); diff --git a/www/chromium/files/patch-views_native_types.h b/www/chromium/files/patch-views_native_types.h index 75c6f35534df..0308ce641c4a 100644 --- a/www/chromium/files/patch-views_native_types.h +++ b/www/chromium/files/patch-views_native_types.h @@ -1,5 +1,5 @@ ---- views/native_types.h.orig 2011-09-10 16:05:08.000000000 +0300 -+++ views/native_types.h 2011-09-10 16:05:37.000000000 +0300 +--- views/native_types.h.orig 2011-10-07 11:32:08.000000000 +0300 ++++ views/native_types.h 2011-10-08 22:57:20.811082782 +0300 @@ -8,7 +8,7 @@ #include "ui/gfx/native_widget_types.h" @@ -9,12 +9,12 @@ typedef union _GdkEvent GdkEvent; #endif #if defined(USE_X11) -@@ -32,7 +32,7 @@ - #if defined(OS_WIN) +@@ -44,7 +44,7 @@ + typedef aura::Event* NativeEvent; + #elif defined(OS_WIN) typedef MSG NativeEvent; - #endif --#if defined(OS_LINUX) -+#if defined(OS_LINUX) || defined(OS_FREEBSD) - typedef GdkEvent* NativeEvent; - #endif - #if defined(USE_X11) +-#elif defined(OS_LINUX) ++#elif defined(OS_LINUX) || defined(OS_FREEBSD) + + #if defined(USE_WAYLAND) + typedef ui::WaylandEvent* NativeEvent; diff --git a/www/chromium/pkg-plist b/www/chromium/pkg-plist index bd9fbadc5e75..740af7fb6e31 100644 --- a/www/chromium/pkg-plist +++ b/www/chromium/pkg-plist @@ -2,7 +2,6 @@ bin/chrome %%DATADIR%%/chrome %%DATADIR%%/chrome-wrapper %%DATADIR%%/chrome.pak -%%DATADIR%%/ffmpegsumo_nolink %%DATADIR%%/libffmpegsumo.so %%DATADIR%%/locales/am.pak %%DATADIR%%/locales/ar.pak @@ -211,6 +210,9 @@ bin/chrome %%DATADIR%%/resources/inspector/Images/warningOrangeDot.png %%DATADIR%%/resources/inspector/Images/warningsErrors.png %%DATADIR%%/resources/inspector/ScriptFormatterWorker.js +%%DATADIR%%/resources/inspector/dataGrid.css +%%DATADIR%%/resources/inspector/inspectorCommon.css +%%DATADIR%%/resources/inspector/networkLogView.css %%DATADIR%%/resources/inspector/devTools.css %%DATADIR%%/resources/inspector/devtools.html %%DATADIR%%/xdg-settings -- cgit