svn commit: r377351 - in branches/2015Q1/www/chromium: . files
Rene Ladan
rene at FreeBSD.org
Sun Jan 18 22:20:26 UTC 2015
Author: rene
Date: Sun Jan 18 22:20:24 2015
New Revision: 377351
URL: https://svnweb.freebsd.org/changeset/ports/377351
QAT: https://qat.redports.org/buildarchive/r377351/
Log:
MFH: r376780
www/chromium:
- install libpdf.so to enable the built-in PDF viewer [1]
- show memory usage of browser, GPU, individual plugins, and individual tabs
in chrome://memory-redirect [2]
- bump PORTREVISION
Submitted by: Imre Vadász via GitHub [1,2]
Approved by: portmgr (unanswered, but needed for next MFH to align)
Modified:
branches/2015Q1/www/chromium/Makefile
branches/2015Q1/www/chromium/files/patch-base__process__process_iterator_freebsd.cc
branches/2015Q1/www/chromium/pkg-plist
Directory Properties:
branches/2015Q1/ (props changed)
Modified: branches/2015Q1/www/chromium/Makefile
==============================================================================
--- branches/2015Q1/www/chromium/Makefile Sun Jan 18 22:01:52 2015 (r377350)
+++ branches/2015Q1/www/chromium/Makefile Sun Jan 18 22:20:24 2015 (r377351)
@@ -4,7 +4,7 @@
#TODO bz@ : if you do undestand the gyp stuff, third_party/widevine/cdm/widevine_cdm.gyp talks about it (plz install libwidevinecdm.so)
PORTNAME= chromium
PORTVERSION= 39.0.2171.95
-PORTREVISION= 1
+PORTREVISION= 3
CATEGORIES= www
MASTER_SITES= http://commondatastorage.googleapis.com/chromium-browser-official/
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
@@ -360,6 +360,8 @@ do-install:
${STAGEDIR}${DATADIR}
${INSTALL_LIB} ${WRKSRC}/out/${BUILDTYPE}/libffmpegsumo.so \
${STAGEDIR}${DATADIR}
+ ${INSTALL_LIB} ${WRKSRC}/out/${BUILDTYPE}/libpdf.so \
+ ${STAGEDIR}${DATADIR}
cd ${WRKSRC}/out/${BUILDTYPE} && \
${COPYTREE_SHARE} "locales resources" ${STAGEDIR}${DATADIR}
@${MKDIR} ${STAGEDIR}${DESKTOPDIR}
Modified: branches/2015Q1/www/chromium/files/patch-base__process__process_iterator_freebsd.cc
==============================================================================
--- branches/2015Q1/www/chromium/files/patch-base__process__process_iterator_freebsd.cc Sun Jan 18 22:01:52 2015 (r377350)
+++ branches/2015Q1/www/chromium/files/patch-base__process__process_iterator_freebsd.cc Sun Jan 18 22:20:24 2015 (r377351)
@@ -11,3 +11,26 @@
#include "base/logging.h"
#include "base/strings/string_util.h"
+@@ -68,19 +72,13 @@
+ for (; index_of_kinfo_proc_ < kinfo_procs_.size(); ++index_of_kinfo_proc_) {
+ size_t length;
+ struct kinfo_proc kinfo = kinfo_procs_[index_of_kinfo_proc_];
+- int mib[] = { CTL_KERN, KERN_PROC_ARGS, kinfo.ki_pid };
++ int mib[] = { CTL_KERN, KERN_PROC, KERN_PROC_ARGS, kinfo.ki_pid };
+
+ if ((kinfo.ki_pid > 0) && (kinfo.ki_stat == SZOMB))
+ continue;
+
+- length = 0;
+- if (sysctl(mib, arraysize(mib), NULL, &length, NULL, 0) < 0) {
+- LOG(ERROR) << "failed to figure out the buffer size for a command line";
+- continue;
+- }
+-
+- data.resize(length);
+-
++ data.resize(ARG_MAX);
++ length = ARG_MAX;
+ if (sysctl(mib, arraysize(mib), &data[0], &length, NULL, 0) < 0) {
+ LOG(ERROR) << "failed to fetch a commandline";
+ continue;
Modified: branches/2015Q1/www/chromium/pkg-plist
==============================================================================
--- branches/2015Q1/www/chromium/pkg-plist Sun Jan 18 22:01:52 2015 (r377350)
+++ branches/2015Q1/www/chromium/pkg-plist Sun Jan 18 22:20:24 2015 (r377351)
@@ -7,6 +7,7 @@ share/applications/chromium-browser.desk
%%DATADIR%%/content_resources.pak
%%DATADIR%%/keyboard_resources.pak
%%DATADIR%%/libffmpegsumo.so
+%%DATADIR%%/libpdf.so
%%DATADIR%%/locales/am.pak
%%DATADIR%%/locales/ar.pak
%%DATADIR%%/locales/bg.pak
More information about the svn-ports-branches
mailing list