Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Apr 2016 22:23:19 +0000 (UTC)
From:      Dimitry Andric <dim@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r412695 - in head/databases/mysql57-server: . files
Message-ID:  <201604072223.u37MNJq1050931@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dim (src committer)
Date: Thu Apr  7 22:23:19 2016
New Revision: 412695
URL: https://svnweb.freebsd.org/changeset/ports/412695

Log:
  In the exp-run for bug 208158, building databases/mysql57-server
  resulted in errors with libc++ 3.8.0, because it declares the allocators
  for several std::map declarations incorrectly.  Fix this by sprinkling
  const in the right places.
  
  Approved by:	mokhi64@gmail.com (maintainer)
  PR:		208525
  MFH:		2016Q2

Added:
  head/databases/mysql57-server/files/patch-sql_json__dom.h   (contents, props changed)
  head/databases/mysql57-server/files/patch-storage_innobase_buf_buf0buf.cc   (contents, props changed)
  head/databases/mysql57-server/files/patch-storage_innobase_dict_dict0stats.cc   (contents, props changed)
  head/databases/mysql57-server/files/patch-storage_innobase_sync_sync0debug.cc   (contents, props changed)
Modified:
  head/databases/mysql57-server/Makefile
  head/databases/mysql57-server/files/patch-include_CMakeLists.txt
  head/databases/mysql57-server/files/patch-man_CMakeLists.txt

Modified: head/databases/mysql57-server/Makefile
==============================================================================
--- head/databases/mysql57-server/Makefile	Thu Apr  7 20:30:11 2016	(r412694)
+++ head/databases/mysql57-server/Makefile	Thu Apr  7 22:23:19 2016	(r412695)
@@ -3,7 +3,7 @@
 
 PORTNAME=	mysql
 PORTVERSION=	5.7.10
-PORTREVISION?=	3
+PORTREVISION?=	4
 CATEGORIES=	databases ipv6
 MASTER_SITES=	MYSQL/MySQL-5.7:MySQL SF/boost/boost/1.59.0:boost
 PKGNAMESUFFIX?=	57-server

Modified: head/databases/mysql57-server/files/patch-include_CMakeLists.txt
==============================================================================
--- head/databases/mysql57-server/files/patch-include_CMakeLists.txt	Thu Apr  7 20:30:11 2016	(r412694)
+++ head/databases/mysql57-server/files/patch-include_CMakeLists.txt	Thu Apr  7 22:23:19 2016	(r412695)
@@ -1,8 +1,9 @@
 --- include/CMakeLists.txt.orig	2015-11-29 19:16:24 UTC
 +++ include/CMakeLists.txt
-@@ -69,10 +69,12 @@ SET(HEADERS 
+@@ -68,11 +68,13 @@ SET(HEADERS 
+   ${HEADERS_GEN_CONFIGURE}
  )
-
+ 
 +IF(FALSE) 
  INSTALL(FILES ../libbinlogevents/export/binary_log_types.h DESTINATION ${INSTALL_INCLUDEDIR})
  INSTALL(FILES ${HEADERS} DESTINATION ${INSTALL_INCLUDEDIR} COMPONENT Development)

Modified: head/databases/mysql57-server/files/patch-man_CMakeLists.txt
==============================================================================
--- head/databases/mysql57-server/files/patch-man_CMakeLists.txt	Thu Apr  7 20:30:11 2016	(r412694)
+++ head/databases/mysql57-server/files/patch-man_CMakeLists.txt	Thu Apr  7 22:23:19 2016	(r412695)
@@ -1,11 +1,13 @@
 --- man/CMakeLists.txt.orig	2015-11-29 19:16:24 UTC
 +++ man/CMakeLists.txt
-@@ -15,8 +15,6 @@
+@@ -14,9 +14,7 @@
+ # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
  
  # Copy man pages
- FILE(GLOB MAN1_FILES *.1)
+-FILE(GLOB MAN1_FILES *.1)
 -FILE(GLOB MAN1_EXCLUDE make_win_bin_dist.1)
 -FILE(GLOB MAN1_NDB ndb*.1)
++FILE(GLOB MAN1_FILES my_print_defaults.1 myisam_ftdump.1 myisamchk.1 myisamlog.1 myisampack.1  mysql.server.1 mysql_convert_table_format.1 mysql_fix_extensions.1  mysql_install_db.1 mysql_plugin.1 mysql_secure_installation.1 mysql_setpermission.1  mysql_tzinfo_to_sql.1 mysql_upgrade.1 mysql_zap.1 mysqlbug.1  mysqld_multi.1 mysqld_safe.1 mysqldumpslow.1 mysqlhotcopy.1 mysqlman.1  mysqltest.1 perror.1 replace.1 resolve_stack_dump.1 resolveip.1)
  FILE(GLOB MAN8_FILES *.8)
  FILE(GLOB MAN8_NDB ndb*.8)
  IF(MAN1_FILES)

Added: head/databases/mysql57-server/files/patch-sql_json__dom.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/databases/mysql57-server/files/patch-sql_json__dom.h	Thu Apr  7 22:23:19 2016	(r412695)
@@ -0,0 +1,22 @@
+--- sql/json_dom.h.orig	2015-11-29 19:16:24 UTC
++++ sql/json_dom.h
+@@ -368,7 +368,7 @@ struct Json_key_comparator
+   Json_object class.
+ */
+ typedef std::map<std::string, Json_dom *, Json_key_comparator,
+-  Malloc_allocator<std::pair<std::string, Json_dom *> > > Json_object_map;
++  Malloc_allocator<std::pair<const std::string, Json_dom *> > > Json_object_map;
+ 
+ /**
+   Represents a JSON container value of type "object" (ECMA), type
+--- sql/json_dom.h.orig	2015-11-29 19:16:24 UTC
++++ sql/json_dom.h
+@@ -368,7 +368,7 @@ struct Json_key_comparator
+   Json_object class.
+ */
+ typedef std::map<std::string, Json_dom *, Json_key_comparator,
+-  Malloc_allocator<std::pair<std::string, Json_dom *> > > Json_object_map;
++  Malloc_allocator<std::pair<const std::string, Json_dom *> > > Json_object_map;
+ 
+ /**
+   Represents a JSON container value of type "object" (ECMA), type

Added: head/databases/mysql57-server/files/patch-storage_innobase_buf_buf0buf.cc
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/databases/mysql57-server/files/patch-storage_innobase_buf_buf0buf.cc	Thu Apr  7 22:23:19 2016	(r412695)
@@ -0,0 +1,22 @@
+--- storage/innobase/buf/buf0buf.cc.orig	2015-11-29 19:16:24 UTC
++++ storage/innobase/buf/buf0buf.cc
+@@ -300,7 +300,7 @@ typedef std::map<
+ 	const byte*,
+ 	buf_chunk_t*,
+ 	std::less<const byte*>,
+-	ut_allocator<std::pair<const byte*, buf_chunk_t*> > >
++	ut_allocator<std::pair<const byte* const, buf_chunk_t*> > >
+ 	buf_pool_chunk_map_t;
+ 
+ static buf_pool_chunk_map_t*			buf_chunk_map_reg;
+--- storage/innobase/buf/buf0buf.cc.orig	2015-11-29 19:16:24 UTC
++++ storage/innobase/buf/buf0buf.cc
+@@ -300,7 +300,7 @@ typedef std::map<
+ 	const byte*,
+ 	buf_chunk_t*,
+ 	std::less<const byte*>,
+-	ut_allocator<std::pair<const byte*, buf_chunk_t*> > >
++	ut_allocator<std::pair<const byte* const, buf_chunk_t*> > >
+ 	buf_pool_chunk_map_t;
+ 
+ static buf_pool_chunk_map_t*			buf_chunk_map_reg;

Added: head/databases/mysql57-server/files/patch-storage_innobase_dict_dict0stats.cc
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/databases/mysql57-server/files/patch-storage_innobase_dict_dict0stats.cc	Thu Apr  7 22:23:19 2016	(r412695)
@@ -0,0 +1,22 @@
+--- storage/innobase/dict/dict0stats.cc.orig	2015-11-29 19:16:24 UTC
++++ storage/innobase/dict/dict0stats.cc
+@@ -139,7 +139,7 @@ then we would store 5,7,10,11,12 in the 
+ typedef std::vector<ib_uint64_t, ut_allocator<ib_uint64_t> >	boundaries_t;
+ 
+ /** Allocator type used for index_map_t. */
+-typedef ut_allocator<std::pair<const char*, dict_index_t*> >
++typedef ut_allocator<std::pair<const char* const, dict_index_t*> >
+ 	index_map_t_allocator;
+ 
+ /** Auxiliary map used for sorting indexes by name in dict_stats_save(). */
+--- storage/innobase/dict/dict0stats.cc.orig	2015-11-29 19:16:24 UTC
++++ storage/innobase/dict/dict0stats.cc
+@@ -139,7 +139,7 @@ then we would store 5,7,10,11,12 in the 
+ typedef std::vector<ib_uint64_t, ut_allocator<ib_uint64_t> >	boundaries_t;
+ 
+ /** Allocator type used for index_map_t. */
+-typedef ut_allocator<std::pair<const char*, dict_index_t*> >
++typedef ut_allocator<std::pair<const char* const, dict_index_t*> >
+ 	index_map_t_allocator;
+ 
+ /** Auxiliary map used for sorting indexes by name in dict_stats_save(). */

Added: head/databases/mysql57-server/files/patch-storage_innobase_sync_sync0debug.cc
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/databases/mysql57-server/files/patch-storage_innobase_sync_sync0debug.cc	Thu Apr  7 22:23:19 2016	(r412695)
@@ -0,0 +1,22 @@
+--- storage/innobase/sync/sync0debug.cc.orig	2015-11-29 19:16:24 UTC
++++ storage/innobase/sync/sync0debug.cc
+@@ -1704,7 +1704,7 @@ private:
+ 		const void*,
+ 		File,
+ 		std::less<const void*>,
+-		ut_allocator<std::pair<const void*, File> > >
++		ut_allocator<std::pair<const void* const, File> > >
+ 		Files;
+ 
+ 	typedef OSMutex	Mutex;
+--- storage/innobase/sync/sync0debug.cc.orig	2015-11-29 19:16:24 UTC
++++ storage/innobase/sync/sync0debug.cc
+@@ -1704,7 +1704,7 @@ private:
+ 		const void*,
+ 		File,
+ 		std::less<const void*>,
+-		ut_allocator<std::pair<const void*, File> > >
++		ut_allocator<std::pair<const void* const, File> > >
+ 		Files;
+ 
+ 	typedef OSMutex	Mutex;



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