Date: Sun, 11 Jan 2015 13:47:12 +0000 (UTC) From: Rene Ladan <rene@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r376780 - in head/www/chromium: . files Message-ID: <201501111347.t0BDlCOt035557@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: rene Date: Sun Jan 11 13:47:11 2015 New Revision: 376780 URL: https://svnweb.freebsd.org/changeset/ports/376780 QAT: https://qat.redports.org/buildarchive/r376780/ Log: 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] MFH: 2015Q1 Modified: head/www/chromium/Makefile head/www/chromium/files/patch-base__process__process_iterator_freebsd.cc head/www/chromium/pkg-plist Modified: head/www/chromium/Makefile ============================================================================== --- head/www/chromium/Makefile Sun Jan 11 13:31:50 2015 (r376779) +++ head/www/chromium/Makefile Sun Jan 11 13:47:11 2015 (r376780) @@ -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= 2 +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: head/www/chromium/files/patch-base__process__process_iterator_freebsd.cc ============================================================================== --- head/www/chromium/files/patch-base__process__process_iterator_freebsd.cc Sun Jan 11 13:31:50 2015 (r376779) +++ head/www/chromium/files/patch-base__process__process_iterator_freebsd.cc Sun Jan 11 13:47:11 2015 (r376780) @@ -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: head/www/chromium/pkg-plist ============================================================================== --- head/www/chromium/pkg-plist Sun Jan 11 13:31:50 2015 (r376779) +++ head/www/chromium/pkg-plist Sun Jan 11 13:47:11 2015 (r376780) @@ -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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201501111347.t0BDlCOt035557>