Date: Thu, 9 Feb 2017 11:59:06 +0000 (UTC) From: "Carlos J. Puga Medina" <cpm@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org Subject: svn commit: r433723 - in branches/2017Q1/www/chromium: . files Message-ID: <201702091159.v19Bx7U7034301@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: cpm Date: Thu Feb 9 11:59:06 2017 New Revision: 433723 URL: https://svnweb.freebsd.org/changeset/ports/433723 Log: MFH: r433722 www/chromium: fix segfault which prevents to load some websites. PR: 207298 Approved by: ports-secteam (blanket) Added: branches/2017Q1/www/chromium/files/patch-apps_ui_views_app__window__frame__view.cc - copied unchanged from r433722, head/www/chromium/files/patch-apps_ui_views_app__window__frame__view.cc branches/2017Q1/www/chromium/files/patch-chrome_browser_ui_views_accelerator__table.cc - copied unchanged from r433722, head/www/chromium/files/patch-chrome_browser_ui_views_accelerator__table.cc branches/2017Q1/www/chromium/files/patch-chrome_browser_ui_views_app__list_linux_app__list__linux.cc - copied unchanged from r433722, head/www/chromium/files/patch-chrome_browser_ui_views_app__list_linux_app__list__linux.cc branches/2017Q1/www/chromium/files/patch-device_bluetooth_BUILD.gn - copied unchanged from r433722, head/www/chromium/files/patch-device_bluetooth_BUILD.gn branches/2017Q1/www/chromium/files/patch-device_gamepad_gamepad__provider.cc - copied unchanged from r433722, head/www/chromium/files/patch-device_gamepad_gamepad__provider.cc branches/2017Q1/www/chromium/files/patch-device_media__transfer__protocol_media__transfer__protocol__daemon__client.h - copied unchanged from r433722, head/www/chromium/files/patch-device_media__transfer__protocol_media__transfer__protocol__daemon__client.h branches/2017Q1/www/chromium/files/patch-services_ui_public_cpp_gles2__context.cc - copied unchanged from r433722, head/www/chromium/files/patch-services_ui_public_cpp_gles2__context.cc branches/2017Q1/www/chromium/files/patch-services_ui_surfaces_surfaces__context__provider.cc - copied unchanged from r433722, head/www/chromium/files/patch-services_ui_surfaces_surfaces__context__provider.cc branches/2017Q1/www/chromium/files/patch-v8_src_globals.h - copied unchanged from r433722, head/www/chromium/files/patch-v8_src_globals.h Modified: branches/2017Q1/www/chromium/Makefile branches/2017Q1/www/chromium/files/patch-chrome_browser_ui_startup_startup__browser__creator.cc branches/2017Q1/www/chromium/files/patch-content_browser_memory_memory__coordinator__impl.cc branches/2017Q1/www/chromium/files/patch-ui_gfx_font__fallback__linux.cc Directory Properties: branches/2017Q1/ (props changed) Modified: branches/2017Q1/www/chromium/Makefile ============================================================================== --- branches/2017Q1/www/chromium/Makefile Thu Feb 9 11:52:49 2017 (r433722) +++ branches/2017Q1/www/chromium/Makefile Thu Feb 9 11:59:06 2017 (r433723) @@ -3,6 +3,7 @@ PORTNAME= chromium PORTVERSION= 56.0.2924.87 +PORTREVISION= 1 CATEGORIES= www MASTER_SITES= http://commondatastorage.googleapis.com/chromium-browser-official/ DISTFILES= ${DISTNAME}${EXTRACT_SUFX} # default, but needed to get distinfo correct if TEST is on Copied: branches/2017Q1/www/chromium/files/patch-apps_ui_views_app__window__frame__view.cc (from r433722, head/www/chromium/files/patch-apps_ui_views_app__window__frame__view.cc) ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ branches/2017Q1/www/chromium/files/patch-apps_ui_views_app__window__frame__view.cc Thu Feb 9 11:59:06 2017 (r433723, copy of r433722, head/www/chromium/files/patch-apps_ui_views_app__window__frame__view.cc) @@ -0,0 +1,11 @@ +--- apps/ui/views/app_window_frame_view.cc.orig 2017-02-02 02:02:46 UTC ++++ apps/ui/views/app_window_frame_view.cc +@@ -132,7 +132,7 @@ gfx::Rect AppWindowFrameView::GetBoundsF + gfx::Rect AppWindowFrameView::GetWindowBoundsForClientBounds( + const gfx::Rect& client_bounds) const { + gfx::Rect window_bounds = client_bounds; +-#if defined(OS_LINUX) && !defined(OS_CHROMEOS) ++#if (defined(OS_LINUX) || defined(OS_BSD)) && !defined(OS_CHROMEOS) + // Get the difference between the widget's client area bounds and window + // bounds, and grow |window_bounds| by that amount. + gfx::Insets native_frame_insets = Modified: branches/2017Q1/www/chromium/files/patch-chrome_browser_ui_startup_startup__browser__creator.cc ============================================================================== --- branches/2017Q1/www/chromium/files/patch-chrome_browser_ui_startup_startup__browser__creator.cc Thu Feb 9 11:52:49 2017 (r433722) +++ branches/2017Q1/www/chromium/files/patch-chrome_browser_ui_startup_startup__browser__creator.cc Thu Feb 9 11:59:06 2017 (r433723) @@ -1,11 +1,23 @@ ---- chrome/browser/ui/startup/startup_browser_creator.cc.orig 2017-01-26 00:49:09 UTC +--- chrome/browser/ui/startup/startup_browser_creator.cc.orig 2017-02-02 02:02:50 UTC +++ chrome/browser/ui/startup/startup_browser_creator.cc @@ -95,7 +95,7 @@ #include "components/user_manager/user_manager.h" #endif -#if defined(TOOLKIT_VIEWS) && defined(OS_LINUX) -+#if defined(TOOLKIT_VIEWS) && (defined(OS_LINUX) || defined(OS_FREEBSD)) ++#if defined(TOOLKIT_VIEWS) && (defined(OS_LINUX) || defined(OS_BSD)) #include "ui/events/devices/x11/touch_factory_x11.h" // nogncheck #endif +@@ -651,9 +651,11 @@ bool StartupBrowserCreator::ProcessCmdLi + } + #endif // OS_CHROMEOS + ++#if 0 /* XXX */ + #if defined(TOOLKIT_VIEWS) && defined(USE_X11) + ui::TouchFactory::SetTouchDeviceListFromCommandLine(); + #endif ++#endif + + #if defined(OS_MACOSX) + if (web_app::MaybeRebuildShortcut(command_line)) Copied: branches/2017Q1/www/chromium/files/patch-chrome_browser_ui_views_accelerator__table.cc (from r433722, head/www/chromium/files/patch-chrome_browser_ui_views_accelerator__table.cc) ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ branches/2017Q1/www/chromium/files/patch-chrome_browser_ui_views_accelerator__table.cc Thu Feb 9 11:59:06 2017 (r433723, copy of r433722, head/www/chromium/files/patch-chrome_browser_ui_views_accelerator__table.cc) @@ -0,0 +1,29 @@ +--- chrome/browser/ui/views/accelerator_table.cc.orig 2017-02-02 02:02:50 UTC ++++ chrome/browser/ui/views/accelerator_table.cc +@@ -72,7 +72,7 @@ const AcceleratorMapping kAcceleratorMap + { ui::VKEY_S, ui::EF_CONTROL_DOWN, IDC_SAVE_PAGE }, + { ui::VKEY_9, kPlatformModifier, IDC_SELECT_LAST_TAB }, + { ui::VKEY_NUMPAD9, kPlatformModifier, IDC_SELECT_LAST_TAB }, +-#if defined(OS_LINUX) && !defined(OS_CHROMEOS) ++#if (defined(OS_LINUX) || defined(OS_BSD)) && !defined(OS_CHROMEOS) + { ui::VKEY_9, ui::EF_ALT_DOWN, IDC_SELECT_LAST_TAB }, + { ui::VKEY_NUMPAD9, ui::EF_ALT_DOWN, IDC_SELECT_LAST_TAB }, + { ui::VKEY_NEXT, ui::EF_CONTROL_DOWN | ui::EF_SHIFT_DOWN, IDC_MOVE_TAB_NEXT }, +@@ -100,7 +100,7 @@ const AcceleratorMapping kAcceleratorMap + { ui::VKEY_NUMPAD7, kPlatformModifier, IDC_SELECT_TAB_6 }, + { ui::VKEY_8, kPlatformModifier, IDC_SELECT_TAB_7 }, + { ui::VKEY_NUMPAD8, kPlatformModifier, IDC_SELECT_TAB_7 }, +-#if defined(OS_LINUX) && !defined(OS_CHROMEOS) ++#if (defined(OS_LINUX) || defined(OS_BSD)) && !defined(OS_CHROMEOS) + { ui::VKEY_1, ui::EF_ALT_DOWN, IDC_SELECT_TAB_0 }, + { ui::VKEY_NUMPAD1, ui::EF_ALT_DOWN, IDC_SELECT_TAB_0 }, + { ui::VKEY_2, ui::EF_ALT_DOWN, IDC_SELECT_TAB_1 }, +@@ -149,7 +149,7 @@ const AcceleratorMapping kAcceleratorMap + { ui::VKEY_F11, ui::EF_NONE, IDC_FULLSCREEN }, + + // Platform-specific key maps. +-#if defined(OS_LINUX) ++#if defined(OS_LINUX) || defined(OS_BSD) + { ui::VKEY_BROWSER_BACK, ui::EF_NONE, IDC_BACK }, + { ui::VKEY_BROWSER_FORWARD, ui::EF_NONE, IDC_FORWARD }, + { ui::VKEY_BROWSER_HOME, ui::EF_NONE, IDC_HOME }, Copied: branches/2017Q1/www/chromium/files/patch-chrome_browser_ui_views_app__list_linux_app__list__linux.cc (from r433722, head/www/chromium/files/patch-chrome_browser_ui_views_app__list_linux_app__list__linux.cc) ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ branches/2017Q1/www/chromium/files/patch-chrome_browser_ui_views_app__list_linux_app__list__linux.cc Thu Feb 9 11:59:06 2017 (r433723, copy of r433722, head/www/chromium/files/patch-chrome_browser_ui_views_app__list_linux_app__list__linux.cc) @@ -0,0 +1,11 @@ +--- chrome/browser/ui/views/app_list/linux/app_list_linux.cc.orig 2017-02-02 02:02:50 UTC ++++ chrome/browser/ui/views/app_list/linux/app_list_linux.cc +@@ -91,7 +91,7 @@ void AppListLinux::MoveNearCursor(app_li + view->SetBubbleArrow(views::BubbleBorder::FLOAT); + + AppListPositioner::ScreenEdge edge; +-#if defined(OS_LINUX) && !defined(OS_CHROMEOS) ++#if (defined(OS_LINUX) || defined(OS_BSD)) && !defined(OS_CHROMEOS) + // In the Unity desktop environment, special case SCREEN_EDGE_LEFT. It is + // always on the left side in Unity, but ShelfLocationInDisplay will not + // detect this if the shelf is hidden. Modified: branches/2017Q1/www/chromium/files/patch-content_browser_memory_memory__coordinator__impl.cc ============================================================================== --- branches/2017Q1/www/chromium/files/patch-content_browser_memory_memory__coordinator__impl.cc Thu Feb 9 11:52:49 2017 (r433722) +++ branches/2017Q1/www/chromium/files/patch-content_browser_memory_memory__coordinator__impl.cc Thu Feb 9 11:59:06 2017 (r433723) @@ -1,11 +1,11 @@ ---- content/browser/memory/memory_coordinator_impl.cc.orig 2017-01-26 00:49:13 UTC +--- content/browser/memory/memory_coordinator_impl.cc.orig 2017-02-02 02:02:53 UTC +++ content/browser/memory/memory_coordinator_impl.cc @@ -116,8 +116,12 @@ void RecordMetricsOnStateChange(base::Me struct MemoryCoordinatorSingletonTraits : public base::LeakySingletonTraits<MemoryCoordinator> { static MemoryCoordinator* New() { +#if defined(OS_BSD) -+ return NULL; ++ return nullptr; +#else return new MemoryCoordinatorImpl(base::ThreadTaskRunnerHandle::Get(), CreateMemoryMonitor()); Copied: branches/2017Q1/www/chromium/files/patch-device_bluetooth_BUILD.gn (from r433722, head/www/chromium/files/patch-device_bluetooth_BUILD.gn) ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ branches/2017Q1/www/chromium/files/patch-device_bluetooth_BUILD.gn Thu Feb 9 11:59:06 2017 (r433723, copy of r433722, head/www/chromium/files/patch-device_bluetooth_BUILD.gn) @@ -0,0 +1,11 @@ +--- device/bluetooth/BUILD.gn.orig 2017-02-02 02:02:54 UTC ++++ device/bluetooth/BUILD.gn +@@ -193,7 +193,7 @@ component("bluetooth") { + ] + } + +- if (is_chromeos || is_linux) { ++ if (is_chromeos || (is_linux && !is_bsd)) { + if (use_dbus) { + sources += [ + "bluez/bluetooth_adapter_bluez.cc", Copied: branches/2017Q1/www/chromium/files/patch-device_gamepad_gamepad__provider.cc (from r433722, head/www/chromium/files/patch-device_gamepad_gamepad__provider.cc) ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ branches/2017Q1/www/chromium/files/patch-device_gamepad_gamepad__provider.cc Thu Feb 9 11:59:06 2017 (r433723, copy of r433722, head/www/chromium/files/patch-device_gamepad_gamepad__provider.cc) @@ -0,0 +1,11 @@ +--- device/gamepad/gamepad_provider.cc.orig 2017-02-02 02:02:54 UTC ++++ device/gamepad/gamepad_provider.cc +@@ -145,7 +145,7 @@ void GamepadProvider::Initialize(std::un + monitor->AddDevicesChangedObserver(this); + + polling_thread_.reset(new base::Thread("Gamepad polling thread")); +-#if defined(OS_LINUX) ++#if defined(OS_LINUX) || defined(OS_BSD) + // On Linux, the data fetcher needs to watch file descriptors, so the message + // loop needs to be a libevent loop. + const base::MessageLoop::Type kMessageLoopType = base::MessageLoop::TYPE_IO; Copied: branches/2017Q1/www/chromium/files/patch-device_media__transfer__protocol_media__transfer__protocol__daemon__client.h (from r433722, head/www/chromium/files/patch-device_media__transfer__protocol_media__transfer__protocol__daemon__client.h) ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ branches/2017Q1/www/chromium/files/patch-device_media__transfer__protocol_media__transfer__protocol__daemon__client.h Thu Feb 9 11:59:06 2017 (r433723, copy of r433722, head/www/chromium/files/patch-device_media__transfer__protocol_media__transfer__protocol__daemon__client.h) @@ -0,0 +1,11 @@ +--- device/media_transfer_protocol/media_transfer_protocol_daemon_client.h.orig 2017-02-02 02:02:54 UTC ++++ device/media_transfer_protocol/media_transfer_protocol_daemon_client.h +@@ -19,7 +19,7 @@ + #include "base/macros.h" + #include "build/build_config.h" + +-#if !defined(OS_LINUX) ++#if !defined(OS_LINUX) && !defined(OS_BSD) + #error "Only used on Linux and ChromeOS" + #endif + Copied: branches/2017Q1/www/chromium/files/patch-services_ui_public_cpp_gles2__context.cc (from r433722, head/www/chromium/files/patch-services_ui_public_cpp_gles2__context.cc) ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ branches/2017Q1/www/chromium/files/patch-services_ui_public_cpp_gles2__context.cc Thu Feb 9 11:59:06 2017 (r433723, copy of r433722, head/www/chromium/files/patch-services_ui_public_cpp_gles2__context.cc) @@ -0,0 +1,11 @@ +--- services/ui/public/cpp/gles2_context.cc.orig 2017-02-02 02:02:57 UTC ++++ services/ui/public/cpp/gles2_context.cc +@@ -46,7 +46,7 @@ bool GLES2Context::Initialize( + gpu::CommandBuffer* command_buffer = command_buffer_proxy_impl_.get(); + gpu::GpuControl* gpu_control = command_buffer_proxy_impl_.get(); + +- constexpr gpu::SharedMemoryLimits default_limits; ++ constexpr gpu::SharedMemoryLimits default_limits = gpu::SharedMemoryLimits(); + gles2_helper_.reset(new gpu::gles2::GLES2CmdHelper(command_buffer)); + if (!gles2_helper_->Initialize(default_limits.command_buffer_size)) + return false; Copied: branches/2017Q1/www/chromium/files/patch-services_ui_surfaces_surfaces__context__provider.cc (from r433722, head/www/chromium/files/patch-services_ui_surfaces_surfaces__context__provider.cc) ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ branches/2017Q1/www/chromium/files/patch-services_ui_surfaces_surfaces__context__provider.cc Thu Feb 9 11:59:06 2017 (r433723, copy of r433722, head/www/chromium/files/patch-services_ui_surfaces_surfaces__context__provider.cc) @@ -0,0 +1,11 @@ +--- services/ui/surfaces/surfaces_context_provider.cc.orig 2017-02-02 02:02:57 UTC ++++ services/ui/surfaces/surfaces_context_provider.cc +@@ -78,7 +78,7 @@ bool SurfacesContextProvider::BindToCurr + gpu::CommandBuffer* command_buffer = command_buffer_proxy_impl_.get(); + + gles2_helper_.reset(new gpu::gles2::GLES2CmdHelper(command_buffer)); +- constexpr gpu::SharedMemoryLimits default_limits; ++ constexpr gpu::SharedMemoryLimits default_limits = gpu::SharedMemoryLimits(); + if (!gles2_helper_->Initialize(default_limits.command_buffer_size)) + return false; + gles2_helper_->SetAutomaticFlushes(false); Modified: branches/2017Q1/www/chromium/files/patch-ui_gfx_font__fallback__linux.cc ============================================================================== --- branches/2017Q1/www/chromium/files/patch-ui_gfx_font__fallback__linux.cc Thu Feb 9 11:52:49 2017 (r433722) +++ branches/2017Q1/www/chromium/files/patch-ui_gfx_font__fallback__linux.cc Thu Feb 9 11:59:06 2017 (r433723) @@ -1,11 +1,11 @@ ---- ui/gfx/font_fallback_linux.cc.orig 2017-01-26 00:49:31 UTC +--- ui/gfx/font_fallback_linux.cc.orig 2017-02-02 02:03:13 UTC +++ ui/gfx/font_fallback_linux.cc @@ -15,6 +15,10 @@ #include "base/memory/ptr_util.h" #include "ui/gfx/font.h" +#if defined(OS_BSD) -+# include <unistd.h> ++#include <unistd.h> +#endif + namespace gfx { Copied: branches/2017Q1/www/chromium/files/patch-v8_src_globals.h (from r433722, head/www/chromium/files/patch-v8_src_globals.h) ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ branches/2017Q1/www/chromium/files/patch-v8_src_globals.h Thu Feb 9 11:59:06 2017 (r433723, copy of r433722, head/www/chromium/files/patch-v8_src_globals.h) @@ -0,0 +1,14 @@ +--- v8/src/globals.h.orig 2017-02-02 02:04:00 UTC ++++ v8/src/globals.h +@@ -182,7 +182,11 @@ const size_t kCodeRangeAreaAlignment = 2 + const size_t kMaximalCodeRangeSize = 512 * MB; + const size_t kCodeRangeAreaAlignment = 64 * KB; // OS page on PPC Linux + #else ++#if defined(__FreeBSD__) ++const size_t kMaximalCodeRangeSize = 256 * MB; ++#else + const size_t kMaximalCodeRangeSize = 512 * MB; ++#endif + const size_t kCodeRangeAreaAlignment = 4 * KB; // OS page. + #endif + #if V8_OS_WIN
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201702091159.v19Bx7U7034301>