Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Aug 2018 20:27:43 +0000 (UTC)
From:      "Carlos J. Puga Medina" <cpm@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r476675 - in head/www/chromium: . files
Message-ID:  <201808082027.w78KRh1e094485@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: cpm
Date: Wed Aug  8 20:27:42 2018
New Revision: 476675
URL: https://svnweb.freebsd.org/changeset/ports/476675

Log:
  www/chromium: minor fix in pkg-message
  
  %%DATADIR%% is not being expanded in pkg-message, and it shows up like this:
  
  --II--
  Chromium has a known problem of hanging tabs. The workaround
  for this problem is to mount ~/.cache/chromium as memory-fs.
  In order to do this, before you run Chromium, please run the
  following script as root once for each user who uses Chromium
  (replace {user}/{group} with your user/group names):
  
  # %%DATADIR%%/fix-hanging-tabs.sh {user} {group}
  
  - Add DATADIR to SUB_LIST to correctly be replaced with its value and move pkg-message to FILESDIR.
  - Bump PORTREVISION
  
  Reported by:	olgeni via mail

Added:
  head/www/chromium/files/pkg-message.in
     - copied unchanged from r476674, head/www/chromium/pkg-message
Deleted:
  head/www/chromium/pkg-message
Modified:
  head/www/chromium/Makefile

Modified: head/www/chromium/Makefile
==============================================================================
--- head/www/chromium/Makefile	Wed Aug  8 20:25:39 2018	(r476674)
+++ head/www/chromium/Makefile	Wed Aug  8 20:27:42 2018	(r476675)
@@ -3,6 +3,7 @@
 
 PORTNAME=	chromium
 PORTVERSION=	68.0.3440.84
+PORTREVISION=	1
 CATEGORIES?=	www
 MASTER_SITES=	https://commondatastorage.googleapis.com/chromium-browser-official/
 DISTFILES=	${DISTNAME}${EXTRACT_SUFX}
@@ -133,8 +134,8 @@ GN_ARGS+=	google_api_key="AIzaSyBsp9n41JLW8jCokwn7vhoa
 		google_default_client_secret="IR1za9-1VK0zZ0f_O8MVFicn"
 
 .if !defined(GN_ONLY)
-SUB_FILES=	chromium-browser.desktop chrome
-SUB_LIST+=	COMMENT="${COMMENT}"
+SUB_FILES=	chromium-browser.desktop chrome pkg-message
+SUB_LIST+=	COMMENT="${COMMENT}" DATADIR="${DATADIR}"
 
 OPTIONS_DEFINE=	CODECS CUPS DEBUG DRIVER KERBEROS TEST
 CODECS_DESC=	Compile and enable patented codecs like H.264

Copied: head/www/chromium/files/pkg-message.in (from r476674, head/www/chromium/pkg-message)
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/chromium/files/pkg-message.in	Wed Aug  8 20:27:42 2018	(r476675, copy of r476674, head/www/chromium/pkg-message)
@@ -0,0 +1,21 @@
+--I--
+For correct operation, shared memory support has to be enabled
+in Chromium by performing the following command as root:
+
+    # sysctl kern.ipc.shm_allow_removed=1
+
+To preserve this setting across reboots, append the following
+to /etc/sysctl.conf:
+
+    kern.ipc.shm_allow_removed=1
+
+FreeBSD 11.0-RELEASE and newer have this set by default.
+
+--II--
+Chromium has a known problem of hanging tabs. The workaround
+for this problem is to mount ~/.cache/chromium as memory-fs.
+In order to do this, before you run Chromium, please run the
+following script as root once for each user who uses Chromium
+(replace {user}/{group} with your user/group names):
+
+    # %%DATADIR%%/fix-hanging-tabs.sh {user} {group}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201808082027.w78KRh1e094485>