From owner-svn-ports-head@freebsd.org Fri Jun 26 23:14:07 2015 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3327898CAE4; Fri, 26 Jun 2015 23:14:07 +0000 (UTC) (envelope-from rene@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 0E0EB12C9; Fri, 26 Jun 2015 23:14:07 +0000 (UTC) (envelope-from rene@FreeBSD.org) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t5QNE6nZ036048; Fri, 26 Jun 2015 23:14:06 GMT (envelope-from rene@FreeBSD.org) Received: (from rene@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t5QNE4UM036024; Fri, 26 Jun 2015 23:14:04 GMT (envelope-from rene@FreeBSD.org) Message-Id: <201506262314.t5QNE4UM036024@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: rene set sender to rene@FreeBSD.org using -f From: Rene Ladan Date: Fri, 26 Jun 2015 23:14:04 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r390673 - in head/www/chromium: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Jun 2015 23:14:07 -0000 Author: rene Date: Fri Jun 26 23:14:03 2015 New Revision: 390673 URL: https://svnweb.freebsd.org/changeset/ports/390673 Log: www/chromium : update to 43.0.2357.130 * Fix some widely-reported crashes: [0,1] - settings page now displays - GMail works * Mark BROKEN on FreeBSD 8 [2] PR: 200601 [0] PR: 200646 [2] Submitted by: protocelt [0] Submitted by: truckman [2] Obtained from: https://github.com/gliaskos/freebsd-chromium [1] (pull requests 17-20) MFH: 2015Q2 Security: http://vuxml.freebsd.org/freebsd/d46ed7b8-1912-11e5-9fdf-00262d5ed8ee.html Added: head/www/chromium/files/patch-base__process__process_info_linux.cc (contents, props changed) head/www/chromium/files/patch-content__browser__time_zone_monitor_linux.cc (contents, props changed) head/www/chromium/files/patch-media__video__capture__fake_video_capture_device_factory.cc (contents, props changed) head/www/chromium/files/patch-media__video__capture__file_video_capture_device_factory.cc (contents, props changed) head/www/chromium/files/patch-media__video__capture__video_capture_device.cc (contents, props changed) head/www/chromium/files/patch-media__video__capture__video_capture_device.h (contents, props changed) head/www/chromium/files/patch-media__video__capture__video_capture_device_factory.cc (contents, props changed) Modified: head/www/chromium/Makefile head/www/chromium/distinfo head/www/chromium/files/patch-third_party__webrtc__base__systeminfo.cc Modified: head/www/chromium/Makefile ============================================================================== --- head/www/chromium/Makefile Fri Jun 26 23:10:09 2015 (r390672) +++ head/www/chromium/Makefile Fri Jun 26 23:14:03 2015 (r390673) @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= chromium -PORTVERSION= 43.0.2357.125 +PORTVERSION= 43.0.2357.130 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 @@ -137,6 +137,8 @@ PULSEAUDIO_LIB_DEPENDS= libpulse.so:${PO TEST_DISTFILES= ${PORTNAME}-${DISTVERSION}-testdata${EXTRACT_SUFX} +BROKEN_FreeBSD_8= Does not compile, missing locale + .include .if ${PORT_OPTIONS:MCODECS} Modified: head/www/chromium/distinfo ============================================================================== --- head/www/chromium/distinfo Fri Jun 26 23:10:09 2015 (r390672) +++ head/www/chromium/distinfo Fri Jun 26 23:14:03 2015 (r390673) @@ -1,4 +1,4 @@ -SHA256 (chromium-43.0.2357.125.tar.xz) = af1774d093f90f9ccfd7def3b2b3a8caa109274ac28d4bec0285e50f8a5a5405 -SIZE (chromium-43.0.2357.125.tar.xz) = 304342620 -SHA256 (chromium-43.0.2357.125-testdata.tar.xz) = ae2ee269015d5f1de514ce763e5d46014523a8823dd8ce8b9249681a2bc70d19 -SIZE (chromium-43.0.2357.125-testdata.tar.xz) = 114573352 +SHA256 (chromium-43.0.2357.130.tar.xz) = 62fb55439396a5d49ba53d4377e8d2554c14c2e8a6255f07909ccee8f248002e +SIZE (chromium-43.0.2357.130.tar.xz) = 304344816 +SHA256 (chromium-43.0.2357.130-testdata.tar.xz) = 9c51df4007e9f025256bc75e76414835dae730f850ef281f9ae9c1ff31e01302 +SIZE (chromium-43.0.2357.130-testdata.tar.xz) = 114568060 Added: head/www/chromium/files/patch-base__process__process_info_linux.cc ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/chromium/files/patch-base__process__process_info_linux.cc Fri Jun 26 23:14:03 2015 (r390673) @@ -0,0 +1,39 @@ +--- base/process/process_info_linux.cc.orig 2015-06-20 15:12:38 ++++ base/process/process_info_linux.cc +@@ -10,10 +10,28 @@ + #include "base/process/process_handle.h" + #include "base/time/time.h" + ++#if defined(__FreeBSD__) || defined(__DragonFly__) ++#include ++#include ++#include ++#endif ++ + namespace base { + + //static + const Time CurrentProcessInfo::CreationTime() { ++#if defined(__FreeBSD__) || defined(__DragonFly__) ++ int mib[] = { CTL_KERN, KERN_PROC, KERN_PROC_PID, getpid() }; ++ struct kinfo_proc proc; ++ size_t len = sizeof(struct kinfo_proc); ++ if (sysctl(mib, arraysize(mib), &proc, &len, NULL, 0) < 0) ++ return Time(); ++#if defined(__DragonFly__) ++ return Time::FromTimeVal(proc.kp_start); ++#else ++ return Time::FromTimeVal(proc.ki_start); ++#endif ++#else + ProcessHandle pid = GetCurrentProcessHandle(); + int64 start_ticks = + internal::ReadProcStatsAndGetFieldAsInt64(pid, internal::VM_STARTTIME); +@@ -22,6 +40,7 @@ + Time boot_time = internal::GetBootTime(); + DCHECK(!boot_time.is_null()); + return Time(boot_time + start_offset); ++#endif + } + + } // namespace base Added: head/www/chromium/files/patch-content__browser__time_zone_monitor_linux.cc ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/chromium/files/patch-content__browser__time_zone_monitor_linux.cc Fri Jun 26 23:14:03 2015 (r390673) @@ -0,0 +1,22 @@ +--- content/browser/time_zone_monitor_linux.cc.orig 2015-05-25 19:00:26 UTC ++++ content/browser/time_zone_monitor_linux.cc +@@ -51,6 +51,9 @@ + : base::RefCountedThreadSafe(), + file_path_watchers_(), + owner_(owner) { ++ } ++ ++ void StartWatching() { + DCHECK_CURRENTLY_ON(BrowserThread::UI); + BrowserThread::PostTask( + BrowserThread::FILE, +@@ -147,6 +150,9 @@ + // changed. + if (!getenv("TZ")) { + impl_ = new TimeZoneMonitorLinuxImpl(this); ++ if (impl_.get()) { ++ impl_->StartWatching(); ++ } + } + } + Added: head/www/chromium/files/patch-media__video__capture__fake_video_capture_device_factory.cc ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/chromium/files/patch-media__video__capture__fake_video_capture_device_factory.cc Fri Jun 26 23:14:03 2015 (r390673) @@ -0,0 +1,11 @@ +--- media/video/capture/fake_video_capture_device_factory.cc.orig 2015-06-19 21:21:37 UTC ++++ media/video/capture/fake_video_capture_device_factory.cc +@@ -48,7 +48,7 @@ + for (int n = 0; n < number_of_devices_; ++n) { + VideoCaptureDevice::Name name(base::StringPrintf("fake_device_%d", n), + base::StringPrintf("/dev/video%d", n) +-#if defined(OS_LINUX) ++#if defined(OS_LINUX) || defined(OS_BSD) + , VideoCaptureDevice::Name::V4L2_SINGLE_PLANE + #elif defined(OS_MACOSX) + , VideoCaptureDevice::Name::AVFOUNDATION Added: head/www/chromium/files/patch-media__video__capture__file_video_capture_device_factory.cc ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/chromium/files/patch-media__video__capture__file_video_capture_device_factory.cc Fri Jun 26 23:14:03 2015 (r390673) @@ -0,0 +1,11 @@ +--- media/video/capture/file_video_capture_device_factory.cc.orig 2015-06-19 21:29:29 UTC ++++ media/video/capture/file_video_capture_device_factory.cc +@@ -51,7 +51,7 @@ + command_line_file_path.value(), + kFileVideoCaptureDeviceName, + VideoCaptureDevice::Name::AVFOUNDATION)); +-#elif defined(OS_LINUX) ++#elif defined(OS_LINUX) || defined(OS_BSD) + device_names->push_back(VideoCaptureDevice::Name( + command_line_file_path.value(), + kFileVideoCaptureDeviceName, Added: head/www/chromium/files/patch-media__video__capture__video_capture_device.cc ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/chromium/files/patch-media__video__capture__video_capture_device.cc Fri Jun 26 23:14:03 2015 (r390673) @@ -0,0 +1,31 @@ +--- media/video/capture/video_capture_device.cc.orig 2015-06-19 21:26:28 UTC ++++ media/video/capture/video_capture_device.cc +@@ -9,6 +9,10 @@ + + namespace media { + ++const std::string VideoCaptureDevice::Name::GetModel() const { ++ return ""; ++} ++ + const std::string VideoCaptureDevice::Name::GetNameAndModel() const { + const std::string model_id = GetModel(); + if (model_id.empty()) +@@ -24,7 +28,7 @@ + VideoCaptureDevice::Name::Name(const std::string& name, const std::string& id) + : device_name_(name), unique_id_(id) {} + +-#if defined(OS_LINUX) ++#if defined(OS_LINUX) || defined(OS_BSD) + VideoCaptureDevice::Name::Name(const std::string& name, + const std::string& id, + const CaptureApiType api_type) +@@ -69,7 +73,7 @@ + + VideoCaptureDevice::Name::~Name() {} + +-#if defined(OS_LINUX) ++#if defined(OS_LINUX) || defined(OS_BSD) + const char* VideoCaptureDevice::Name::GetCaptureApiTypeString() const { + switch (capture_api_type()) { + case V4L2_SINGLE_PLANE: Added: head/www/chromium/files/patch-media__video__capture__video_capture_device.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/chromium/files/patch-media__video__capture__video_capture_device.h Fri Jun 26 23:14:03 2015 (r390673) @@ -0,0 +1,38 @@ +--- media/video/capture/video_capture_device.h.orig 2015-06-19 21:22:59 UTC ++++ media/video/capture/video_capture_device.h +@@ -41,7 +41,7 @@ + Name(); + Name(const std::string& name, const std::string& id); + +-#if defined(OS_LINUX) ++#if defined(OS_LINUX) || defined(OS_BSD) + // Linux/CrOS targets Capture Api type: it can only be set on construction. + enum CaptureApiType { + V4L2_SINGLE_PLANE, +@@ -85,7 +85,7 @@ + #endif + + #if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || \ +- defined(OS_ANDROID) ++ defined(OS_ANDROID) || defined(OS_BSD) + Name(const std::string& name, const std::string& id, + const CaptureApiType api_type); + #endif +@@ -123,7 +123,7 @@ + } + + #if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || \ +- defined(OS_ANDROID) ++ defined(OS_ANDROID) || defined(OS_BSD) + CaptureApiType capture_api_type() const { + return capture_api_class_.capture_api_type(); + } +@@ -155,7 +155,7 @@ + std::string device_name_; + std::string unique_id_; + #if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || \ +- defined(OS_ANDROID) ++ defined(OS_ANDROID) || defined(OS_BSD) + // This class wraps the CaptureApiType to give it a by default value if not + // initialized. + class CaptureApiClass { Added: head/www/chromium/files/patch-media__video__capture__video_capture_device_factory.cc ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/chromium/files/patch-media__video__capture__video_capture_device_factory.cc Fri Jun 26 23:14:03 2015 (r390673) @@ -0,0 +1,21 @@ +--- media/video/capture/video_capture_device_factory.cc.orig 2015-06-19 21:33:03 UTC ++++ media/video/capture/video_capture_device_factory.cc +@@ -14,6 +14,10 @@ + // static + scoped_ptr VideoCaptureDeviceFactory::CreateFactory( + scoped_refptr ui_task_runner) { ++#if defined(OS_BSD) ++ return scoped_ptr(new ++ media::FakeVideoCaptureDeviceFactory()); ++#else + const base::CommandLine* command_line = + base::CommandLine::ForCurrentProcess(); + // Use a Fake or File Video Device Factory if the command line flags are +@@ -32,6 +36,7 @@ + return scoped_ptr( + CreateVideoCaptureDeviceFactory(ui_task_runner)); + } ++#endif + } + + VideoCaptureDeviceFactory::VideoCaptureDeviceFactory() { Modified: head/www/chromium/files/patch-third_party__webrtc__base__systeminfo.cc ============================================================================== --- head/www/chromium/files/patch-third_party__webrtc__base__systeminfo.cc Fri Jun 26 23:10:09 2015 (r390672) +++ head/www/chromium/files/patch-third_party__webrtc__base__systeminfo.cc Fri Jun 26 23:14:03 2015 (r390673) @@ -1,4 +1,4 @@ ---- third_party/webrtc/base/systeminfo.cc.orig 2014-10-10 09:16:13 UTC +--- third_party/webrtc/base/systeminfo.cc.orig 2015-06-11 20:19:52 UTC +++ third_party/webrtc/base/systeminfo.cc @@ -19,8 +19,12 @@ #elif defined(WEBRTC_MAC) && !defined(WEBRTC_IOS) @@ -23,19 +23,21 @@ #include "webrtc/base/linux.h" #endif #include "webrtc/base/common.h" -@@ -168,6 +172,17 @@ +@@ -168,6 +172,19 @@ } #elif defined(__native_client__) // TODO(ryanpetrie): Implement this via PPAPI when it's available. +#elif defined(OS_FREEBSD) -+ void* sysctl_value; ++ int sysctl_value; + size_t length = sizeof(sysctl_value); + if (!sysctlbyname("hw.ncpu", &sysctl_value, &length, NULL, 0)) { -+ physical_cpus_ = *static_cast(sysctl_value); ++ physical_cpus_ = sysctl_value; + } ++#if !defined(__DragonFly__) + if (!sysctlbyname("kern.smp.cpus", &sysctl_value, &length, NULL, 0)) { -+ logical_cpus_ = *static_cast(sysctl_value); ++ logical_cpus_ = sysctl_value; + } ++#endif + // L3 / L2 cache size? + // CPU family/model/stepping (available in dmesg, kernel only TODO) #else // WEBRTC_LINUX