Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 7 Feb 2016 08:08:20 +0000 (UTC)
From:      Thomas Zander <riggs@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r408349 - in head/databases/mysql57-server: . files
Message-ID:  <201602070808.u1788K4Y075675@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: riggs
Date: Sun Feb  7 08:08:20 2016
New Revision: 408349
URL: https://svnweb.freebsd.org/changeset/ports/408349

Log:
  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:	mokhi64@gmail.com (maintainer)
  MFH:		2016Q1

Modified:
  head/databases/mysql57-server/Makefile
  head/databases/mysql57-server/files/mysql-server.in
  head/databases/mysql57-server/pkg-message

Modified: head/databases/mysql57-server/Makefile
==============================================================================
--- head/databases/mysql57-server/Makefile	Sun Feb  7 07:54:49 2016	(r408348)
+++ head/databases/mysql57-server/Makefile	Sun Feb  7 08:08:20 2016	(r408349)
@@ -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: head/databases/mysql57-server/files/mysql-server.in
==============================================================================
--- head/databases/mysql57-server/files/mysql-server.in	Sun Feb  7 07:54:49 2016	(r408348)
+++ head/databases/mysql57-server/files/mysql-server.in	Sun Feb  7 08:08:20 2016	(r408349)
@@ -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: head/databases/mysql57-server/pkg-message
==============================================================================
--- head/databases/mysql57-server/pkg-message	Sun Feb  7 07:54:49 2016	(r408348)
+++ head/databases/mysql57-server/pkg-message	Sun Feb  7 08:08:20 2016	(r408349)
@@ -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?201602070808.u1788K4Y075675>