Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Feb 2016 18:41:55 +0000 (UTC)
From:      Thomas Zander <riggs@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org
Subject:   svn commit: r408495 - in branches/2016Q1/databases/mysql57-server: . files
Message-ID:  <201602081841.u18IftUn091811@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: riggs
Date: Mon Feb  8 18:41:55 2016
New Revision: 408495
URL: https://svnweb.freebsd.org/changeset/ports/408495

Log:
  MFH: r408349
  
  Revert recent change on performance_schema; introduce OPTION for it
  
  The recent port version 5.7.10_2 introduced a change in the default
  behaviour of performance_schema. Due to an ongoing debate in the
  community whether the default setting should lean towards performance
  (previous default before 5.7.10_2) or memory consumption, maintainer
  had changed the default to memory consumption in 5.7.10_2.
  This introduces an OPTION knob PERFSCHM to control the default behaviour
  of performance_schema. It defaults to ON, hence restoring the previous
  default.
  Bump PORTREVISION.
  
  PR:		206912
  Submitted by:	smh
  Reviewed by:	mokhi64@gmail.com (maintainer), riggs
  Approved by:	ports-secteam (feld), mokhi64@gmail.com (maintainer)

Modified:
  branches/2016Q1/databases/mysql57-server/Makefile
  branches/2016Q1/databases/mysql57-server/files/mysql-server.in
  branches/2016Q1/databases/mysql57-server/pkg-message
Directory Properties:
  branches/2016Q1/   (props changed)

Modified: branches/2016Q1/databases/mysql57-server/Makefile
==============================================================================
--- branches/2016Q1/databases/mysql57-server/Makefile	Mon Feb  8 18:29:36 2016	(r408494)
+++ branches/2016Q1/databases/mysql57-server/Makefile	Mon Feb  8 18:41:55 2016	(r408495)
@@ -3,7 +3,7 @@
 
 PORTNAME=	mysql
 PORTVERSION=	5.7.10
-PORTREVISION?=	2
+PORTREVISION?=	3
 CATEGORIES=	databases ipv6
 MASTER_SITES=	MYSQL/MySQL-5.7:MySQL SF/boost/boost/1.59.0:boost
 PKGNAMESUFFIX?=	57-server
@@ -102,6 +102,15 @@ INNOBASE_CMAKE_ON=	-DWITH_INNOBASE_STORA
 PARTITION_CMAKE_ON=	-DWITH_PARTITION_STORAGE_ENGINE=1
 PERFSCHEMA_CMAKE_ON=	-DWITH_PERFSCHEMA_STORAGE_ENGINE=1
 
+OPTIONS_GROUP+=		FEATURES
+OPTIONS_GROUP_FEATURES=	PERFSCHM
+FEATURES_DESC=		Default features knobs
+PERFSCHM_DESC=		Enable "Performance Schema" by default (High RAM usage)
+OPTIONS_DEFAULT+=	PERFSCHM
+
+PERFSCHM_SUB_LIST+=	PERFSCHEMRC=""
+PERFSCHM_SUB_LIST_OFF+=	PERFSCHEMRC="--skip-performance-schema"
+
 .else
 USES+=		readline
 .endif

Modified: branches/2016Q1/databases/mysql57-server/files/mysql-server.in
==============================================================================
--- branches/2016Q1/databases/mysql57-server/files/mysql-server.in	Mon Feb  8 18:29:36 2016	(r408494)
+++ branches/2016Q1/databases/mysql57-server/files/mysql-server.in	Mon Feb  8 18:41:55 2016	(r408495)
@@ -41,7 +41,7 @@ mysql_limits_args="-e -U ${mysql_user}"
 : ${hostname:=`/bin/hostname`}
 pidfile=${mysql_pidfile:-"${mysql_dbdir}/${hostname}.pid"}
 command="/usr/sbin/daemon"
-command_args="-c -f %%PREFIX%%/bin/mysqld_safe --defaults-extra-file=${mysql_optfile} --user=${mysql_user} --datadir=${mysql_dbdir} --pid-file=${pidfile} ${mysql_args} --skip-performance-schema"
+command_args="-c -f %%PREFIX%%/bin/mysqld_safe --defaults-extra-file=${mysql_optfile} --user=${mysql_user} --datadir=${mysql_dbdir} --pid-file=${pidfile} ${mysql_args} %%PERFSCHEMRC%%"
 procname="%%PREFIX%%/libexec/mysqld"
 start_precmd="${name}_prestart"
 start_postcmd="${name}_poststart"

Modified: branches/2016Q1/databases/mysql57-server/pkg-message
==============================================================================
--- branches/2016Q1/databases/mysql57-server/pkg-message	Mon Feb  8 18:29:36 2016	(r408494)
+++ branches/2016Q1/databases/mysql57-server/pkg-message	Mon Feb  8 18:41:55 2016	(r408495)
@@ -3,11 +3,8 @@
 Remember to run mysql_upgrade the first time you start the MySQL server
 after an upgrade from an earlier version.
 
-Init. password for first time use of MySQL is saved in $HOME/.mysql_secret
+Initial password for first time use of MySQL is saved in $HOME/.mysql_secret
 ie. when you want to use "mysql -u root -p" first you should see password
 in /root/.mysql_secret
 
-performance_schema feature is set off by default, because of using high RAM.
-if you need it enable it yourself :)
-
 *****************************************************************************



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